Jump to content

Template:Main page/styles.css: Difference between revisions

From Wikigama
PS (talk | contribs)
No edit summary
PS (talk | contribs)
No edit summary
Line 1: Line 1:
/* Save as: Template:Main page/styles.css  (content model: Sanitized CSS)
/* Save as: Template:Main page/styles.css  (content model: Sanitized CSS)
   Requires the TemplateStyles extension. */
   Fonts (Inter + Source Serif 4) must be loaded in MediaWiki:Common.css - see instructions. */


.wg-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 48px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #202122; }
.wg-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; color: #1f2328; }
.wg-wrap a { text-decoration: none; }
.wg-wrap a:hover { text-decoration: underline; }


/* HERO */
/* HERO */
.wg-hero { text-align: center; padding: 64px 20px 56px; margin: 0 -20px 40px; background: radial-gradient(circle at 20% 0%, #dbe8ff 0%, rgba(219,232,255,0) 55%), radial-gradient(circle at 85% 20%, #f1e4ff 0%, rgba(241,228,255,0) 50%), linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%); border-radius: 0 0 36px 36px; }
.wg-hero { padding: 56px 0 36px; }
.wg-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #1a5fb4; background: #fff; border: 1px solid #cfe0f5; border-radius: 999px; padding: 8px 20px; margin-bottom: 22px; }
.wg-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #59636e; }
.wg-title { font-size: 52px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; max-width: 860px; margin: 0 auto; }
.wg-title { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: 48px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 14px 0 0; max-width: 780px; }
.wg-title span { color: #1a5fb4; }
.wg-sub { font-size: 17px; color: #59636e; margin-top: 16px; max-width: 640px; line-height: 1.6; }
.wg-sub { font-size: 18px; color: #54595d; margin: 18px auto 0; max-width: 680px; line-height: 1.6; }
.wg-search { margin-top: 28px; max-width: 620px; }
.wg-search { margin: 32px auto 0; max-width: 640px; }
.wg-search form { display: flex; gap: 8px; }
.wg-search input[type=search], .wg-search input[type=text] { border-radius: 999px; padding: 14px 22px; border: 1px solid #c8ccd1; box-shadow: 0 6px 24px rgba(26,95,180,.10); font-size: 16px; }
.wg-search input[type=search], .wg-search input[type=text] { flex: 1; padding: 12px 14px; border: 1px solid #b8c0c8; border-radius: 6px; font-size: 15px; font-family: inherit; background: #fff; }
.wg-search input[type=submit], .wg-search button { border-radius: 999px; padding: 13px 26px; background: #1a5fb4; color: #fff; border: 0; font-weight: 600; cursor: pointer; }
.wg-search input[type=submit], .wg-search button { padding: 12px 22px; background: #0b4f8a; color: #fff; border: 1px solid #0b4f8a; border-radius: 6px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; }
.wg-try { margin-top: 10px; font-size: 13px; color: #72777d; }
.wg-try { margin-top: 12px; font-size: 13px; color: #59636e; }
.wg-pills { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.wg-pill { border: 1px solid #dfe3e8; background: #fff; border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 600; transition: all .15s; }
.wg-pill:hover { border-color: #1a5fb4; box-shadow: 0 4px 14px rgba(26,95,180,.15); transform: translateY(-1px); }
.wg-btn { margin-top: 26px; display: inline-block; background: #1a5fb4; border-radius: 999px; padding: 12px 30px; box-shadow: 0 8px 22px rgba(26,95,180,.30); }
.wg-btn a, .wg-btn a:visited { color: #fff !important; font-size: 15px; font-weight: 600; text-decoration: none; }


/* SECTION HEADINGS */
/* STATS STRIP */
.wg-sec { margin: 60px 0 22px; }
.wg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid #d1d9e0; border-bottom: 1px solid #d1d9e0; }
.wg-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 3px; color: #1a5fb4; }
.wg-stat { padding: 20px 20px; border-right: 1px solid #d1d9e0; }
.wg-h2 { font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing: -0.5px; }
.wg-stat:last-child { border-right: 0; }
.wg-h2sub { font-size: 15px; color: #72777d; margin-top: 6px; }
.wg-stat-n { font-family: "Source Serif 4", Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.1; }
.wg-stat-l { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #59636e; margin-top: 6px; }


/* GRIDS + CARDS */
/* SECTION HEADER */
.wg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.wg-sh { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #1f2328; margin: 56px 0 22px; padding-bottom: 10px; }
.wg-grid-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
.wg-sh-t { font-family: "Source Serif 4", Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.wg-card { background: #fff; border: 1px solid #e2e5e9; border-radius: 18px; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.wg-sh-l { font-size: 13px; font-weight: 500; }
.wg-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(16,24,40,.10); border-color: #cfe0f5; }
.wg-sh-l a { color: #0b4f8a; }
.wg-cat-top { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 46px; }
.wg-cat-body { padding: 18px 22px 22px; }
.wg-cat-name { font-size: 19px; font-weight: 800; }
.wg-cat-desc { font-size: 14px; color: #54595d; margin-top: 8px; line-height: 1.6; }
.wg-cat-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; }
.wg-count { font-size: 13px; font-weight: 700; color: #1a5fb4; background: #e8f0fe; border-radius: 999px; padding: 3px 11px; }


/* STATS */
/* GRIDS */
.wg-stat { background: #fff; border: 1px solid #e2e5e9; border-radius: 16px; padding: 24px; text-align: center; }
.wg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.wg-stat-n { font-size: 36px; font-weight: 800; color: #1a5fb4; }
.wg-split { display: grid; grid-template-columns: 3fr 2fr; gap: 36px; }
.wg-stat-l { font-size: 14px; color: #54595d; margin-top: 4px; }
.wg-cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.wg-stat-main { background: linear-gradient(135deg, #1a5fb4, #7c3aed); border: 0; }
.wg-stat-main .wg-stat-n { color: #fff; }
.wg-stat-main .wg-stat-l { color: #e3ebff; }


/* GALLERY TILE */
/* CATEGORY CARD */
.wg-tile-img { height: 150px; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 800; color: #1a5fb4; }
.wg-cat { background: #fff; border: 1px solid #d1d9e0; border-radius: 6px; padding: 20px 22px; }
.wg-tile-name { padding: 14px; font-size: 15px; font-weight: 700; text-align: center; }
.wg-cat:hover { border-color: #0b4f8a; }
.wg-cat-name { font-family: "Source Serif 4", Georgia, serif; font-size: 20px; font-weight: 600; }
.wg-cat-name a { color: #1f2328; }
.wg-cat-desc { font-size: 14px; color: #59636e; margin-top: 6px; line-height: 1.55; }
.wg-cat-count { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #0b4f8a; }
 
/* ENTITY CARD (used by Template:Entity card) */
.wg-ec { background: #fff; border: 1px solid #d1d9e0; border-radius: 6px; padding: 20px 22px; }
.wg-ec:hover { border-color: #0b4f8a; }
.wg-ec-top { display: flex; align-items: center; gap: 12px; }
.wg-ec-mono { display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; background: #eef2f6; color: #0b4f8a; border-radius: 4px; font-family: "Source Serif 4", Georgia, serif; font-size: 17px; font-weight: 700; }
.wg-ec-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #59636e; }
.wg-ec-title { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; font-weight: 600; margin-top: 14px; line-height: 1.25; }
.wg-ec-title a { color: #1f2328; }
.wg-ec-meta { font-size: 13px; color: #59636e; margin-top: 3px; }
.wg-ec-desc { font-size: 14px; line-height: 1.55; margin-top: 10px; }
.wg-ec-link { font-size: 13px; font-weight: 600; margin-top: 12px; }


/* CONNECTIONS */
/* CONNECTIONS */
.wg-conn { background: linear-gradient(135deg, #f6f9ff, #faf5ff); border: 1px solid #e2e5e9; border-radius: 20px; padding: 30px; }
.wg-rel { border: 1px solid #d1d9e0; border-radius: 6px; background: #fff; }
.wg-conn-title { font-size: 20px; font-weight: 800; }
.wg-rel-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e6eaee; font-size: 14px; }
.wg-conn-text { font-size: 15px; color: #54595d; margin-top: 8px; line-height: 1.6; }
.wg-rel-row:last-child { border-bottom: 0; }
.wg-chips { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; }
.wg-rel-role { color: #59636e; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.wg-chip { border: 1px solid #dfe3e8; background: #fff; border-radius: 999px; padding: 9px 20px; font-size: 14px; font-weight: 600; }
.wg-note { font-size: 14px; color: #59636e; margin-bottom: 14px; max-width: 640px; }
 
/* BROWSE LINKS */
.wg-browse { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 500; }
 
/* CONTRIBUTE */
.wg-act { border-top: 2px solid #1f2328; padding-top: 14px; }
.wg-act-t { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; font-weight: 600; }
.wg-act-d { font-size: 14px; color: #59636e; margin-top: 6px; }
.wg-act-l { font-size: 13px; font-weight: 600; margin-top: 10px; }


/* CONTRIBUTE / ABOUT */
/* ABOUT */
.wg-pad { padding: 26px; }
.wg-about { border-left: 3px solid #0b4f8a; padding: 4px 0 4px 24px; max-width: 820px; }
.wg-about { background: #fff; border: 1px solid #e2e5e9; border-radius: 20px; padding: 32px; }
.wg-about-text { font-size: 16px; line-height: 1.7; }
.wg-about-text { font-size: 16px; line-height: 1.7; max-width: 820px; }
.wg-links { margin-top: 12px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.wg-links { margin-top: 18px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }


@media (max-width: 640px) {
@media (max-width: 800px) {
  .wg-split { grid-template-columns: 1fr; }
   .wg-title { font-size: 34px; }
   .wg-title { font-size: 34px; }
   .wg-h2 { font-size: 24px; }
   .wg-hero { padding: 36px 0 28px; }
   .wg-hero { padding: 40px 16px 40px; }
  .wg-stat { border-right: 0; border-bottom: 1px solid #d1d9e0; }
   .wg-stat:last-child { border-bottom: 0; }
  .wg-search form { flex-direction: column; }
}
}

Revision as of 23:05, 2 October 2026

/* Save as: Template:Main page/styles.css  (content model: Sanitized CSS)
   Fonts (Inter + Source Serif 4) must be loaded in MediaWiki:Common.css - see instructions. */

.wg-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 64px; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; color: #1f2328; }
.wg-wrap a { text-decoration: none; }
.wg-wrap a:hover { text-decoration: underline; }

/* HERO */
.wg-hero { padding: 56px 0 36px; }
.wg-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #59636e; }
.wg-title { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: 48px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; margin: 14px 0 0; max-width: 780px; }
.wg-sub { font-size: 17px; color: #59636e; margin-top: 16px; max-width: 640px; line-height: 1.6; }
.wg-search { margin-top: 28px; max-width: 620px; }
.wg-search form { display: flex; gap: 8px; }
.wg-search input[type=search], .wg-search input[type=text] { flex: 1; padding: 12px 14px; border: 1px solid #b8c0c8; border-radius: 6px; font-size: 15px; font-family: inherit; background: #fff; }
.wg-search input[type=submit], .wg-search button { padding: 12px 22px; background: #0b4f8a; color: #fff; border: 1px solid #0b4f8a; border-radius: 6px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; }
.wg-try { margin-top: 12px; font-size: 13px; color: #59636e; }

/* STATS STRIP */
.wg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid #d1d9e0; border-bottom: 1px solid #d1d9e0; }
.wg-stat { padding: 20px 20px; border-right: 1px solid #d1d9e0; }
.wg-stat:last-child { border-right: 0; }
.wg-stat-n { font-family: "Source Serif 4", Georgia, serif; font-size: 30px; font-weight: 600; line-height: 1.1; }
.wg-stat-l { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #59636e; margin-top: 6px; }

/* SECTION HEADER */
.wg-sh { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid #1f2328; margin: 56px 0 22px; padding-bottom: 10px; }
.wg-sh-t { font-family: "Source Serif 4", Georgia, serif; font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.wg-sh-l { font-size: 13px; font-weight: 500; }
.wg-sh-l a { color: #0b4f8a; }

/* GRIDS */
.wg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.wg-split { display: grid; grid-template-columns: 3fr 2fr; gap: 36px; }
.wg-cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }

/* CATEGORY CARD */
.wg-cat { background: #fff; border: 1px solid #d1d9e0; border-radius: 6px; padding: 20px 22px; }
.wg-cat:hover { border-color: #0b4f8a; }
.wg-cat-name { font-family: "Source Serif 4", Georgia, serif; font-size: 20px; font-weight: 600; }
.wg-cat-name a { color: #1f2328; }
.wg-cat-desc { font-size: 14px; color: #59636e; margin-top: 6px; line-height: 1.55; }
.wg-cat-count { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #0b4f8a; }

/* ENTITY CARD (used by Template:Entity card) */
.wg-ec { background: #fff; border: 1px solid #d1d9e0; border-radius: 6px; padding: 20px 22px; }
.wg-ec:hover { border-color: #0b4f8a; }
.wg-ec-top { display: flex; align-items: center; gap: 12px; }
.wg-ec-mono { display: inline-block; width: 36px; height: 36px; line-height: 36px; text-align: center; background: #eef2f6; color: #0b4f8a; border-radius: 4px; font-family: "Source Serif 4", Georgia, serif; font-size: 17px; font-weight: 700; }
.wg-ec-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #59636e; }
.wg-ec-title { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; font-weight: 600; margin-top: 14px; line-height: 1.25; }
.wg-ec-title a { color: #1f2328; }
.wg-ec-meta { font-size: 13px; color: #59636e; margin-top: 3px; }
.wg-ec-desc { font-size: 14px; line-height: 1.55; margin-top: 10px; }
.wg-ec-link { font-size: 13px; font-weight: 600; margin-top: 12px; }

/* CONNECTIONS */
.wg-rel { border: 1px solid #d1d9e0; border-radius: 6px; background: #fff; }
.wg-rel-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid #e6eaee; font-size: 14px; }
.wg-rel-row:last-child { border-bottom: 0; }
.wg-rel-role { color: #59636e; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.wg-note { font-size: 14px; color: #59636e; margin-bottom: 14px; max-width: 640px; }

/* BROWSE LINKS */
.wg-browse { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 500; }

/* CONTRIBUTE */
.wg-act { border-top: 2px solid #1f2328; padding-top: 14px; }
.wg-act-t { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; font-weight: 600; }
.wg-act-d { font-size: 14px; color: #59636e; margin-top: 6px; }
.wg-act-l { font-size: 13px; font-weight: 600; margin-top: 10px; }

/* ABOUT */
.wg-about { border-left: 3px solid #0b4f8a; padding: 4px 0 4px 24px; max-width: 820px; }
.wg-about-text { font-size: 16px; line-height: 1.7; }
.wg-links { margin-top: 12px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }

@media (max-width: 800px) {
  .wg-split { grid-template-columns: 1fr; }
  .wg-title { font-size: 34px; }
  .wg-hero { padding: 36px 0 28px; }
  .wg-stat { border-right: 0; border-bottom: 1px solid #d1d9e0; }
  .wg-stat:last-child { border-bottom: 0; }
  .wg-search form { flex-direction: column; }
}