MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 68: | Line 68: | ||
.chhhp-search { | .chhhp-search { | ||
margin: 30px 0; | margin: 30px 0; | ||
} | |||
.chhhp-search-form { | |||
display: flex; | |||
justify-content: center; | |||
gap: 8px; | |||
max-width: 650px; | |||
margin: 0 auto; | |||
} | |||
.chhhp-search-input { | |||
flex: 1; | |||
padding: 14px 16px; | |||
font-size: 17px; | |||
border: 2px solid #111; | |||
border-radius: 8px; | |||
min-width: 300px; | |||
} | |||
.chhhp-search-button { | |||
padding: 14px 24px; | |||
font-size: 17px; | |||
font-weight: bold; | |||
background: #111; | |||
color: white; | |||
border: 2px solid #111; | |||
border-radius: 8px; | |||
cursor: pointer; | |||
transition: all .2s ease; | |||
} | |||
.chhhp-search-button:hover { | |||
background: #c59d2f; | |||
color: #000; | |||
border-color: #c59d2f; | |||
} | } | ||
| Line 120: | Line 155: | ||
.chhhp-wordmark { | .chhhp-wordmark { | ||
font-size: 32px; | font-size: 32px; | ||
} | |||
.chhhp-search-form { | |||
flex-direction: column; | |||
} | |||
.chhhp-search-input { | |||
min-width: auto; | |||
} | } | ||
} | } | ||
``` | ``` | ||
Revision as of 13:17, 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-search-form {
display: flex;
justify-content: center;
gap: 8px;
max-width: 650px;
margin: 0 auto;
}
.chhhp-search-input {
flex: 1;
padding: 14px 16px;
font-size: 17px;
border: 2px solid #111;
border-radius: 8px;
min-width: 300px;
}
.chhhp-search-button {
padding: 14px 24px;
font-size: 17px;
font-weight: bold;
background: #111;
color: white;
border: 2px solid #111;
border-radius: 8px;
cursor: pointer;
transition: all .2s ease;
}
.chhhp-search-button:hover {
background: #c59d2f;
color: #000;
border-color: #c59d2f;
}
.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;
}
.chhhp-search-form {
flex-direction: column;
}
.chhhp-search-input {
min-width: auto;
}
}
```