MediaWiki:Common.css

From The Chicago Hip-Hop History Project
Revision as of 13:09, 18 June 2026 by Rdifaz2 (talk | contribs) (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; } ....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* 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;
}

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

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

.chhhp-nav {
  display: grid;
  gap: 18px;
  font-size: 17px;
}

.chhhp-nav a {
  font-weight: bold;
  color: #36c;
  text-decoration: none;
}

.chhhp-nav a:hover {
  text-decoration: underline;
}

.chhhp-nav-left {
  text-align: right;
}

.chhhp-nav-right {
  text-align: left;
}

.chhhp-search {
  margin: 20px auto;
}

.chhhp-search .mw-inputbox-centered {
  margin-left: auto;
  margin-right: auto;
}

.chhhp-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 35px;
}

.chhhp-buttons a {
  border: 1px solid #a2a9b1;
  border-radius: 3px;
  padding: 8px 14px;
  background: #f8f9fa;
  color: #36c;
  text-decoration: none;
  font-weight: bold;
}

.chhhp-buttons a:hover {
  background: #fff;
  border-color: #72777d;
}

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

.chhhp-card {
  border: 1px solid #a2a9b1;
  background: #f8f9fa;
  padding: 16px 18px;
  border-radius: 3px;
}

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

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

  .chhhp-hub {
    grid-template-columns: 1fr;
  }

  .chhhp-nav-left,
  .chhhp-nav-right {
    text-align: center;
  }

  .chhhp-sections {
    grid-template-columns: 1fr;
  }
}
```