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 |
||
| (5 intermediate revisions by the same user not shown) | |||
| 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; | |||
gap: 10px; | |||
column-gap: 0px; | |||
} | |||
.chhhp-logo { | |||
text-align: center; | |||
} | } | ||
.chhhp-logo img { | .chhhp-logo img { | ||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
.chhhp-nav { | .chhhp-nav { | ||
display: flex; | |||
flex-direction: column; | |||
gap: 14px; | |||
} | } | ||
.chhhp-nav a { | .chhhp-nav a { | ||
color: #3366cc !important; | |||
text-decoration: none; | |||
font-size: 18px; | |||
font-weight: 600; | |||
line-height: 1.4; | |||
} | } | ||
.chhhp-nav a:hover { | .chhhp-nav a:hover { | ||
text-decoration: underline; | |||
color: #447ff5 !important; | |||
} | } | ||
.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: #f8f9fa; | |||
border: 1px solid #d8dde3; | |||
border-radius: 6px; | |||
padding: 20px; | |||
text-align: left; | |||
} | } | ||
.chhhp- | .chhhp-card h2 { | ||
margin-top: 0; | |||
border-bottom: 1px solid #d8dde3; | |||
padding-bottom: 10px; | |||
font-size: 1.3em; | |||
} | } | ||
.chhhp- | .chhhp-card a { | ||
color: #3366cc; | |||
font-weight: bold; | |||
text-decoration: none; | |||
} | } | ||
.chhhp- | .chhhp-card a:hover { | ||
text-decoration: underline; | |||
} | } | ||
@media (max-width: 1000px) { | |||
.chhhp- | .chhhp-hub { | ||
grid-template-columns: 1fr; | |||
} | |||
} | |||
.chhhp- | .chhhp-nav { | ||
max-width: 400px; | |||
margin: 0 auto; | |||
} | |||
.chhhp-featured { | |||
grid-template-columns: 1fr; | |||
} | |||
.chhhp-wordmark { | |||
font-size: 32px; | |||
} | |||
} | } | ||
``` | ``` | ||
Latest revision as of 23:02, 2 September 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;
gap: 10px;
column-gap: 0px;
}
.chhhp-logo {
text-align: center;
}
.chhhp-logo img {
max-width: 100%;
height: auto;
}
.chhhp-nav {
display: flex;
flex-direction: column;
gap: 14px;
}
.chhhp-nav a {
color: #3366cc !important;
text-decoration: none;
font-size: 18px;
font-weight: 600;
line-height: 1.4;
}
.chhhp-nav a:hover {
text-decoration: underline;
color: #447ff5 !important;
}
.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: #f8f9fa;
border: 1px solid #d8dde3;
border-radius: 6px;
padding: 20px;
text-align: left;
}
.chhhp-card h2 {
margin-top: 0;
border-bottom: 1px solid #d8dde3;
padding-bottom: 10px;
font-size: 1.3em;
}
.chhhp-card a {
color: #3366cc;
font-weight: bold;
text-decoration: none;
}
.chhhp-card a:hover {
text-decoration: underline;
}
@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;
}
}
```