MediaWiki:Common.css: Difference between revisions
(Created page with "→CSS placed here will be applied to all skins: ```css →CHHHP Wikipedia-style main page: .chhhp-home { max-width: 980px; margin: 0 auto; padding: 30px 20px 60px; text-align: center; font-family: sans-serif; } .chhhp-title { margin-bottom: 24px; } .chhhp-wordmark { font-family: Georgia, 'Times New Roman', serif; font-size: 42px; line-height: 1.1; color: #202122; } .chhhp-tagline { font-size: 16px; color: #54595d; margin-top: 8px; } ....") |
No edit summary |
||
| Line 2: | Line 2: | ||
```css | ```css | ||
/* CHHHP | /* CHHHP Homepage */ | ||
.chhhp-home { | .chhhp-home { | ||
max-width: 1200px; | |||
margin: 0 auto; | |||
padding: 30px 20px 60px; | |||
text-align: center; | |||
} | } | ||
.chhhp-wordmark { | .chhhp-wordmark { | ||
font-family: Georgia, serif; | |||
font-size: 42px; | |||
font-weight: bold; | |||
color: #111; | |||
margin-bottom: 8px; | |||
} | } | ||
.chhhp-tagline { | .chhhp-tagline { | ||
font-size: 16px; | |||
color: #666; | |||
margin-bottom: 30px; | |||
} | } | ||
.chhhp-hub { | .chhhp-hub { | ||
display: grid; | |||
grid-template-columns: 240px 1fr 240px; | |||
align-items: center; | |||
gap: 30px; | |||
margin-bottom: 35px; | |||
} | } | ||
.chhhp-logo img { | .chhhp-logo img { | ||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
.chhhp-nav { | .chhhp-nav { | ||
display: flex; | |||
flex-direction: column; | |||
gap: 12px; | |||
} | } | ||
.chhhp- | .chhhp-button a { | ||
display: block; | |||
padding: 14px 18px; | |||
background: #111; | |||
color: #fff !important; | |||
text-decoration: none !important; | |||
border-radius: 10px; | |||
font-weight: 600; | |||
font-size: 16px; | |||
border: 2px solid #111; | |||
transition: all .2s ease; | |||
box-shadow: 0 3px 8px rgba(0,0,0,.12); | |||
} | } | ||
.chhhp- | .chhhp-button a:hover { | ||
background: #c59d2f; | |||
border-color: #c59d2f; | |||
color: #000 !important; | |||
transform: translateY(-2px); | |||
box-shadow: 0 6px 16px rgba(0,0,0,.20); | |||
} | } | ||
.chhhp-search { | .chhhp-search { | ||
margin: 30px 0; | |||
} | } | ||
.chhhp- | .chhhp-intro { | ||
max-width: 900px; | |||
margin: 0 auto 40px auto; | |||
font-size: 18px; | |||
line-height: 1.7; | |||
} | } | ||
.chhhp- | .chhhp-featured { | ||
display: grid; | |||
grid-template-columns: repeat(3, 1fr); | |||
gap: 20px; | |||
margin-top: 30px; | |||
} | } | ||
.chhhp- | .chhhp-card { | ||
background: #f8f8f8; | |||
border: 1px solid #ddd; | |||
border-radius: 12px; | |||
padding: 20px; | |||
text-align: left; | |||
box-shadow: 0 2px 6px rgba(0,0,0,.05); | |||
} | } | ||
.chhhp- | .chhhp-card h2 { | ||
margin-top: 0; | |||
border-bottom: 1px solid #ddd; | |||
padding-bottom: 10px; | |||
} | } | ||
.chhhp- | .chhhp-card a { | ||
font-weight: bold; | |||
} | } | ||
@media (max-width: 1000px) { | |||
.chhhp- | .chhhp-hub { | ||
grid-template-columns: 1fr; | |||
} | |||
} | |||
.chhhp-nav { | |||
max-width: 400px; | |||
margin: 0 auto; | |||
} | |||
.chhhp-featured { | |||
grid-template-columns: 1fr; | |||
} | |||
.chhhp-wordmark { | |||
font-size: 32px; | |||
} | |||
} | } | ||
``` | ``` | ||
Revision as of 13:15, 18 June 2026
/* CSS placed here will be applied to all skins */
```css
/* CHHHP Homepage */
.chhhp-home {
max-width: 1200px;
margin: 0 auto;
padding: 30px 20px 60px;
text-align: center;
}
.chhhp-wordmark {
font-family: Georgia, serif;
font-size: 42px;
font-weight: bold;
color: #111;
margin-bottom: 8px;
}
.chhhp-tagline {
font-size: 16px;
color: #666;
margin-bottom: 30px;
}
.chhhp-hub {
display: grid;
grid-template-columns: 240px 1fr 240px;
align-items: center;
gap: 30px;
margin-bottom: 35px;
}
.chhhp-logo img {
max-width: 100%;
height: auto;
}
.chhhp-nav {
display: flex;
flex-direction: column;
gap: 12px;
}
.chhhp-button a {
display: block;
padding: 14px 18px;
background: #111;
color: #fff !important;
text-decoration: none !important;
border-radius: 10px;
font-weight: 600;
font-size: 16px;
border: 2px solid #111;
transition: all .2s ease;
box-shadow: 0 3px 8px rgba(0,0,0,.12);
}
.chhhp-button a:hover {
background: #c59d2f;
border-color: #c59d2f;
color: #000 !important;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(0,0,0,.20);
}
.chhhp-search {
margin: 30px 0;
}
.chhhp-intro {
max-width: 900px;
margin: 0 auto 40px auto;
font-size: 18px;
line-height: 1.7;
}
.chhhp-featured {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
margin-top: 30px;
}
.chhhp-card {
background: #f8f8f8;
border: 1px solid #ddd;
border-radius: 12px;
padding: 20px;
text-align: left;
box-shadow: 0 2px 6px rgba(0,0,0,.05);
}
.chhhp-card h2 {
margin-top: 0;
border-bottom: 1px solid #ddd;
padding-bottom: 10px;
}
.chhhp-card a {
font-weight: bold;
}
@media (max-width: 1000px) {
.chhhp-hub {
grid-template-columns: 1fr;
}
.chhhp-nav {
max-width: 400px;
margin: 0 auto;
}
.chhhp-featured {
grid-template-columns: 1fr;
}
.chhhp-wordmark {
font-size: 32px;
}
}
```