Jump to content

Main Page.css: Difference between revisions

From Consumer Rights Wiki
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
/* Light mode styles */
.header-box a.external {
.header-box a.external {
   background-image: none;
   background-image: none;
Line 12: Line 13:
   border: 1px solid #d7dde6;
   border: 1px solid #d7dde6;
   border-left: 4px solid #004080;
   border-left: 4px solid #004080;
   padding: 0.9em 1.1em;
   padding: 0.75em 1em;
   color: #111;
   color: #111;
   text-align: center;
   text-align: center;
  border-radius: 10px;
}
}


Line 21: Line 21:
   background: #004080;
   background: #004080;
   color: #fff;
   color: #fff;
   padding: 0.5em 0.95em;
   padding: 0.45em 0.9em;
   font-weight: 700;
  border-radius: 6px;
   font-weight: bold;
   text-decoration: none;
   text-decoration: none;
   display: inline-flex;
   display: inline-block;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  white-space: nowrap;
}
}


Line 59: Line 56:


.content-header {
.content-header {
   font-size: 1.4em;
   font-size: 1.5em;
   font-weight: 800;
   font-weight: bold;
   color: #0f2e4d;
   color: #0f2e4d;
   border-bottom: 2px solid rgba(0, 64, 128, 0.22);
   border-bottom: 2px solid rgba(0, 64, 128, 0.22);
   padding-bottom: 0.3em;
   padding-bottom: 0.25em;
   margin: 0 0 0.65em 0 !important;
   margin-bottom: 0.6em;
  margin-top: 0 !important;
}
}


Line 75: Line 73:
   min-width: 0;
   min-width: 0;
   color: #111;
   color: #111;
  border-radius: 12px;
}
}


Line 83: Line 80:


.content-section > div:first-child {
.content-section > div:first-child {
   font-size: 1.4em;
   font-size: 1.5em;
   font-weight: 800;
   font-weight: bold;
   color: #0f2e4d;
   color: #0f2e4d;
   border-bottom: 2px solid rgba(0, 64, 128, 0.22);
   border-bottom: 2px solid rgba(0, 64, 128, 0.22);
   padding-bottom: 0.3em;
   padding-bottom: 0.25em;
   margin-top: 0.15em;
   margin-top: 0.25em;
}
 
.content-section a {
  color: #004080;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 64, 128, 0.35);
}
 
.content-section a:hover,
.content-section a:focus {
  border-bottom-color: #004080;
}
 
.content-section ul,
.content-section ol {
  margin: 0.5em 0 0.2em 1.2em;
}
 
.content-section li {
  margin: 0.25em 0;
}
 
.content-section .mw-parser-output > p:first-child {
  margin-top: 0;
}
 
.content-section .mw-parser-output > p:last-child {
  margin-bottom: 0;
}
}


/* Forced dark mode */
@media screen {
@media screen {
   html.skin-theme-clientpref-night .header-box {
   html.skin-theme-clientpref-night .header-box {
Line 164: Line 134:
     color: #eaf2ff;
     color: #eaf2ff;
     border-bottom-color: rgba(0, 64, 128, 0.35);
     border-bottom-color: rgba(0, 64, 128, 0.35);
  }
  html.skin-theme-clientpref-night .content-section a {
    color: #eaf2ff;
    border-bottom-color: rgba(234, 242, 255, 0.35);
  }
  html.skin-theme-clientpref-night .content-section a:hover,
  html.skin-theme-clientpref-night .content-section a:focus {
    border-bottom-color: rgba(234, 242, 255, 0.65);
   }
   }


Line 182: Line 142:
}
}


/* OS dark mode */
@media screen and (prefers-color-scheme: dark) {
@media screen and (prefers-color-scheme: dark) {
   html.skin-theme-clientpref-os .header-box {
   html.skin-theme-clientpref-os .header-box {
Line 227: Line 188:
     color: #eaf2ff;
     color: #eaf2ff;
     border-bottom-color: rgba(0, 64, 128, 0.35);
     border-bottom-color: rgba(0, 64, 128, 0.35);
  }
  html.skin-theme-clientpref-os .content-section a {
    color: #eaf2ff;
    border-bottom-color: rgba(234, 242, 255, 0.35);
  }
  html.skin-theme-clientpref-os .content-section a:hover,
  html.skin-theme-clientpref-os .content-section a:focus {
    border-bottom-color: rgba(234, 242, 255, 0.65);
   }
   }
}
}


/* Category buttons */
.cat-but-grid {
.cat-but-grid {
   display: grid;
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(11em, 1fr));
   grid-template-columns: repeat(auto-fill, minmax(11em, 1fr));
   gap: 0.6em;
   gap: 0.5em;
}
}


Line 249: Line 201:
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   gap: 0.55em;
   gap: 0.5em;
   padding: 0.7em 0.95em;
   padding: 0.65em 0.9em;
   border-radius: 10px;
   border-radius: 8px;
   background: #ffffff;
   background: #ffffff;
   border: 1px solid #d6dbe3;
   border: 1px solid #d6dbe3;
   color: #004080;
   color: #004080;
   font-weight: 800;
   font-weight: 700;
   text-decoration: none;
   text-decoration: none;
   box-sizing: border-box;
   box-sizing: border-box;
  line-height: 1.15;
}
}


Line 270: Line 221:
}
}


/* Hover */
.cat-but:hover {
.cat-but:hover {
   background: #f3f6fb;
   background: #f3f6fb;
Line 275: Line 227:
}
}


/* Dark mode */
html.skin-theme-clientpref-night .cat-but,
html.skin-theme-clientpref-night .cat-but,
html.skin-theme-clientpref-os .cat-but {
html.skin-theme-clientpref-os .cat-but {

Revision as of 16:57, 26 January 2026

/* Light mode styles */
.header-box a.external {
  background-image: none;
}

.header-box p {
  font-size: inherit;
  margin: 0.25em 0;
}

.header-box {
  background: #f7f9fc;
  border: 1px solid #d7dde6;
  border-left: 4px solid #004080;
  padding: 0.75em 1em;
  color: #111;
  text-align: center;
}

.crw-button {
  background: #004080;
  color: #fff;
  padding: 0.45em 0.9em;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

.crw-button:hover,
.crw-button:focus {
  background: #0b5aa5;
  outline: none;
}

.crw-button.secondary {
  background: #eef2f7;
  color: #111;
  border: 1px solid #d7dde6;
}

.crw-button.secondary:hover,
.crw-button.secondary:focus {
  background: #e6edf6;
  outline: none;
}

.content-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1em;
  overflow: hidden;
  min-width: 0;
}

.content-header {
  font-size: 1.5em;
  font-weight: bold;
  color: #0f2e4d;
  border-bottom: 2px solid rgba(0, 64, 128, 0.22);
  padding-bottom: 0.25em;
  margin-bottom: 0.6em;
  margin-top: 0 !important;
}

.content-section {
  background: #ffffff;
  border: 1px solid #d7dde6;
  padding: 1.1em 1.25em;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
  color: #111;
}

.content-section.wide {
  grid-column: auto;
}

.content-section > div:first-child {
  font-size: 1.5em;
  font-weight: bold;
  color: #0f2e4d;
  border-bottom: 2px solid rgba(0, 64, 128, 0.22);
  padding-bottom: 0.25em;
  margin-top: 0.25em;
}

/* Forced dark mode */
@media screen {
  html.skin-theme-clientpref-night .header-box {
    background: #121c32;
    border-color: #273244;
    border-left-color: #004080;
    color: #e5e7eb;
  }

  html.skin-theme-clientpref-night .content-section {
    background: #121c32;
    border-color: #273244;
    color: #e5e7eb;
  }

  html.skin-theme-clientpref-night .crw-button {
    background: #004080;
    color: #fff;
  }

  html.skin-theme-clientpref-night .crw-button:hover,
  html.skin-theme-clientpref-night .crw-button:focus {
    background: #0b5aa5;
    outline: none;
  }

  html.skin-theme-clientpref-night .crw-button.secondary {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(229, 231, 235, 0.22);
  }

  html.skin-theme-clientpref-night .crw-button.secondary:hover,
  html.skin-theme-clientpref-night .crw-button.secondary:focus {
    background: rgba(229, 231, 235, 0.08);
    outline: none;
  }

  html.skin-theme-clientpref-night .content-section > div:first-child {
    color: #eaf2ff;
    border-color: rgba(0, 64, 128, 0.35);
  }

  html.skin-theme-clientpref-night .content-header {
    color: #eaf2ff;
    border-bottom-color: rgba(0, 64, 128, 0.35);
  }

  html.skin-theme-clientpref-os .content-header {
    color: #eaf2ff;
    border-bottom-color: rgba(0, 64, 128, 0.35);
  }
}

/* OS dark mode */
@media screen and (prefers-color-scheme: dark) {
  html.skin-theme-clientpref-os .header-box {
    background: #121c32;
    border-color: #273244;
    border-left-color: #004080;
    color: #e5e7eb;
  }

  html.skin-theme-clientpref-os .content-section {
    background: #121c32;
    border-color: #273244;
    color: #e5e7eb;
  }

  html.skin-theme-clientpref-os .crw-button {
    background: #004080;
    color: #fff;
  }

  html.skin-theme-clientpref-os .crw-button:hover,
  html.skin-theme-clientpref-os .crw-button:focus {
    background: #0b5aa5;
    outline: none;
  }

  html.skin-theme-clientpref-os .crw-button.secondary {
    background: transparent;
    color: #e5e7eb;
    border: 1px solid rgba(229, 231, 235, 0.22);
  }

  html.skin-theme-clientpref-os .crw-button.secondary:hover,
  html.skin-theme-clientpref-os .crw-button.secondary:focus {
    background: rgba(229, 231, 235, 0.08);
    outline: none;
  }

  html.skin-theme-clientpref-os .content-section > div:first-child {
    color: #eaf2ff;
    border-color: rgba(0, 64, 128, 0.35);
  }

  html.skin-theme-clientpref-os .content-header {
    color: #eaf2ff;
    border-bottom-color: rgba(0, 64, 128, 0.35);
  }
}

/* Category buttons */
.cat-but-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11em, 1fr));
  gap: 0.5em;
}

.cat-but {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 0.9em;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #d6dbe3;
  color: #004080;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
}

.cat-but-icon {
  font-size: 1.05em;
  line-height: 1;
}

.cat-but-label {
  line-height: 1.1;
}

/* Hover */
.cat-but:hover {
  background: #f3f6fb;
  border-color: #004080;
}

/* Dark mode */
html.skin-theme-clientpref-night .cat-but,
html.skin-theme-clientpref-os .cat-but {
  background: #0f1a2b;
  border-color: #24314a;
  color: #ffffff;
}

html.skin-theme-clientpref-night .cat-but:hover,
html.skin-theme-clientpref-os .cat-but:hover {
  background: #16223a;
  border-color: #3a5a9a;
}