MediaWiki:Common.css: Difference between revisions

From The Chicago Hip-Hop History Project
(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 Wikipedia-style main page */
/* CHHHP Homepage */


.chhhp-home {
.chhhp-home {
  max-width: 980px;
    max-width: 1200px;
  margin: 0 auto;
    margin: 0 auto;
  padding: 30px 20px 60px;
    padding: 30px 20px 60px;
  text-align: center;
    text-align: center;
  font-family: sans-serif;
}
 
.chhhp-title {
  margin-bottom: 24px;
}
}


.chhhp-wordmark {
.chhhp-wordmark {
  font-family: Georgia, 'Times New Roman', serif;
    font-family: Georgia, serif;
  font-size: 42px;
    font-size: 42px;
  line-height: 1.1;
    font-weight: bold;
  color: #202122;
    color: #111;
    margin-bottom: 8px;
}
}


.chhhp-tagline {
.chhhp-tagline {
  font-size: 16px;
    font-size: 16px;
  color: #54595d;
    color: #666;
  margin-top: 8px;
    margin-bottom: 30px;
}
}


.chhhp-hub {
.chhhp-hub {
  display: grid;
    display: grid;
  grid-template-columns: 1fr 260px 1fr;
    grid-template-columns: 240px 1fr 240px;
  align-items: center;
    align-items: center;
  gap: 20px;
    gap: 30px;
  margin: 20px auto 28px;
    margin-bottom: 35px;
}
}


.chhhp-logo img {
.chhhp-logo img {
  max-width: 220px;
    max-width: 100%;
  height: auto;
    height: auto;
}
}


.chhhp-nav {
.chhhp-nav {
  display: grid;
    display: flex;
  gap: 18px;
    flex-direction: column;
  font-size: 17px;
    gap: 12px;
}
 
.chhhp-nav a {
  font-weight: bold;
  color: #36c;
  text-decoration: none;
}
 
.chhhp-nav a:hover {
  text-decoration: underline;
}
}


.chhhp-nav-left {
.chhhp-button a {
  text-align: right;
    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-nav-right {
.chhhp-button a:hover {
  text-align: left;
    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: 20px auto;
    margin: 30px 0;
}
}


.chhhp-search .mw-inputbox-centered {
.chhhp-intro {
  margin-left: auto;
    max-width: 900px;
  margin-right: auto;
    margin: 0 auto 40px auto;
    font-size: 18px;
    line-height: 1.7;
}
}


.chhhp-buttons {
.chhhp-featured {
  display: flex;
    display: grid;
  justify-content: center;
    grid-template-columns: repeat(3, 1fr);
  flex-wrap: wrap;
    gap: 20px;
  gap: 12px;
    margin-top: 30px;
  margin: 24px 0 35px;
}
}


.chhhp-buttons a {
.chhhp-card {
  border: 1px solid #a2a9b1;
    background: #f8f8f8;
  border-radius: 3px;
    border: 1px solid #ddd;
  padding: 8px 14px;
    border-radius: 12px;
  background: #f8f9fa;
    padding: 20px;
  color: #36c;
    text-align: left;
  text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
  font-weight: bold;
}
}


.chhhp-buttons a:hover {
.chhhp-card h2 {
  background: #fff;
    margin-top: 0;
  border-color: #72777d;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
}


.chhhp-sections {
.chhhp-card a {
  display: grid;
    font-weight: bold;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
  margin-top: 30px;
}
}


.chhhp-card {
@media (max-width: 1000px) {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 16px 18px;
  border-radius: 3px;
}


.chhhp-card h2 {
    .chhhp-hub {
  margin-top: 0;
        grid-template-columns: 1fr;
  border-bottom: 1px solid #a2a9b1;
    }
  font-family: Georgia, 'Times New Roman', serif;
}


@media screen and (max-width: 750px) {
    .chhhp-nav {
  .chhhp-wordmark {
        max-width: 400px;
    font-size: 32px;
        margin: 0 auto;
  }
    }


  .chhhp-hub {
    .chhhp-featured {
    grid-template-columns: 1fr;
        grid-template-columns: 1fr;
  }
     }
 
  .chhhp-nav-left,
  .chhhp-nav-right {
     text-align: center;
  }


  .chhhp-sections {
    .chhhp-wordmark {
    grid-template-columns: 1fr;
        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;
    }
}
```