Jump to content

Main Page.css: Difference between revisions

From Consumer Rights Wiki
No edit summary
No edit summary
Line 1: Line 1:
/* Light mode styles */
.header-box a.external {
.header-box a.external {
   background-image: none;
   background-image: none;
Line 85: Line 84:
   background: #ffffff;
   background: #ffffff;
   border: 1px solid #004080;
   border: 1px solid #004080;
  border-left-width: 4px;
   padding: 1.1em 1.25em;
   padding: 1.1em 1.25em;
   box-sizing: border-box;
   box-sizing: border-box;
Line 106: Line 104:
}
}


/* Forced dark mode */
@media screen {
@media screen {
   html.skin-theme-clientpref-night .header-box {
   html.skin-theme-clientpref-night .header-box {
Line 160: Line 157:
}
}


/* 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 209: Line 205:
}
}


/* Category buttons */
.cat-but-grid {
.cat-but-grid {
   display: grid;
   display: grid;
Line 223: Line 218:
   border-radius: 8px;
   border-radius: 8px;
   background: #ffffff;
   background: #ffffff;
   border: 1px solid #004080;
   border: 1px solid #d6dbe3;
  border-left-width: 4px;
   color: #004080;
   color: #004080;
   font-weight: 700;
   font-weight: 700;
Line 240: Line 234:
}
}


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


/* 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 {
   background: #0f1a2b;
   background: #0f1a2b;
   border-color: #004080;
   border-color: #24314a;
   color: #ffffff;
   color: #ffffff;
}
}
Line 257: Line 249:
html.skin-theme-clientpref-os .cat-but:hover {
html.skin-theme-clientpref-os .cat-but:hover {
   background: #16223a;
   background: #16223a;
   border-color: #0b5aa5;
   border-color: #3a5a9a;
}
}

Revision as of 17:06, 26 January 2026

.header-box a.external {
  background-image: none;
}

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

.header-box {
  background: #f7f9fc;
  border: 1px solid #004080;
  border-left-width: 4px;
  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;
}

@media screen and (min-width: 720px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.content-grid > .content-section {
  grid-column: 1 / -1;
}

@media screen and (min-width: 720px) {
  .content-grid > .content-section:nth-child(1),
  .content-grid > .content-section:nth-child(2) {
    grid-column: auto;
  }
}

.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 #004080;
  padding: 1.1em 1.25em;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
  color: #111;
}

.content-section.wide {
  grid-column: 1 / -1;
}

.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;
}

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

  html.skin-theme-clientpref-night .content-section {
    background: #121c32;
    border-color: #004080;
    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);
  }
}

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

  html.skin-theme-clientpref-os .content-section {
    background: #121c32;
    border-color: #004080;
    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);
  }
}

.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;
}

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

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;
}