Jump to content

Main Page.css

From Consumer Rights Wiki
Revision as of 21:49, 28 January 2026 by JakeL (talk | contribs)
.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;
}

.header-box a:link,
.header-box a:visited {
  color: #7fb6ff;
}

a:hover,
a:focus,
.header-box a:hover,
.header-box a:focus {
  color: #b9dcff;
}

.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-section {
  background: #FDFDFD;
  border: 1px solid #004080;
  padding: 1.1em 1.25em;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
  color: #111;
  border-radius: 8px;
}

.content-header {
  background: #004080;
  color: #fff;
  font-size: 1.15em;
  font-weight: 800;
  padding: 0.65em 0.9em;
  margin: -1.1em -1.25em 0.9em -1.25em;
  border-radius: 7px 7px 0 0;
}

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

.content-section > div:first-child {
  background: #004080;
  color: #fff;
  font-size: 1.15em;
  font-weight: 800;
  padding: 0.65em 0.9em;
  margin: -1.1em -1.25em 0.9em -1.25em;
  border-radius: 7px 7px 0 0;
  border-bottom: 0;
}

@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 .content-header {
    background: #004080;
    color: #fff;
  }

  html.skin-theme-clientpref-night .content-section > div:first-child {
    background: #004080;
    color: #fff;
  }

  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-os .content-header {
    background: #004080;
    color: #fff;
  }

  html.skin-theme-clientpref-os .content-section > div:first-child {
    background: #004080;
    color: #fff;
  }
}

@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 .content-header {
    background: #004080;
    color: #fff;
  }

  html.skin-theme-clientpref-os .content-section > div:first-child {
    background: #004080;
    color: #fff;
  }

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

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

.crw-hero-actions{
  margin-top: 1.25em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75em;
  background: transparent;
  padding: 0;
}

.crw-hero-actions > span{
  display: inline-flex;
}

.crw-hero-actions p{
  margin: 0;
}

.crw-site-notice{
  margin: 1em auto 1.25em auto;
  padding: 3px 12px;
  max-width: 100%;
  background: #fff7e6;
  border: 1px solid #f0c36d;
  border-left: 6px solid #f0a500;
  border-radius: 0;
  color: #5a3b00;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
  font-size: 1.5em;
  line-height: 1.35;
}

.crw-site-notice{
  font-size: 1em;
  line-height: 1.35;
  padding-top: 4px;
  padding-bottom: 4px;
  border-radius:16px;
}

.crw-site-notice p{
  margin: 0;
}

.crw-site-notice a:visited{
  color: #003366;
}

.crw-site-notice:empty{
  display: none;
}

/* */
/* Main Page Cards */
.crw-card-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 240px));
  gap: 16px;
  justify-content: center;
  align-content: start;
  margin: 0;
  padding: 0;
}

.crw-card-grid > p{
  margin: 0;
  display: contents;
}

.crw-card{
  background: #fff;
  border: 1px solid #004080;
  border-radius: 0.375rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.crw-card-link{
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.crw-card-img{
  height: 140px;
  background: rgba(0,0,0,0.03);
  overflow: hidden;
}

.crw-card-img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.crw-card-img-placeholder{
  height: 100%;
  width: 100%;
}

.crw-card-body{
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.crw-card-title{
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.crw-card-title a{
  color: #0d6efd;
  text-decoration: none;
}

.crw-card-title a:hover,
.crw-card-title a:focus{
  text-decoration: underline;
}

.crw-card-desc{
  margin-top: 0.5rem;
  font-size: 0.95em;
  line-height: 1.35;
  color: #212529;
}

.crw-card-desc:empty{
  display: none;
}

.crw-card:hover{
  border-color: rgba(0,0,0,0.2);
}

/* Dark */
@media screen{
  html.skin-theme-clientpref-night .crw-card{
    background: #121c32;
    border-color: rgba(255,255,255,0.18);
  }
  html.skin-theme-clientpref-night .crw-card-img{
    background: rgba(255,255,255,0.06);
  }
  html.skin-theme-clientpref-night .crw-card-title a{
    color: #8ab4f8;
  }
  html.skin-theme-clientpref-night .crw-card-desc{
    color: #e5e7eb;
  }
  html.skin-theme-clientpref-night .crw-card:hover{
    border-color: rgba(255,255,255,0.28);
  }
}

@media screen and (prefers-color-scheme: dark){
  html.skin-theme-clientpref-os .crw-card{
    background: #121c32;
    border-color: rgba(255,255,255,0.18);
  }
  html.skin-theme-clientpref-os .crw-card-img{
    background: rgba(255,255,255,0.06);
  }
  html.skin-theme-clientpref-os .crw-card-title a{
    color: #8ab4f8;
  }
  html.skin-theme-clientpref-os .crw-card-desc{
    color: #e5e7eb;
  }
  html.skin-theme-clientpref-os .crw-card:hover{
    border-color: rgba(255,255,255,0.28);
  }
}

.crw-card-grid{
  display: flex !important;
  flex-wrap: nowrap;
  gap: 16px;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  overflow-x: auto;
}

.crw-card-grid > p{
  margin: 0;
  display: contents;
}

.crw-card-grid .crw-card-link{
  flex: 0 0 240px;
  width: 240px;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}

.crw-card-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  gap: 12px !important;

  max-width: 1500px;
  margin: 0 auto !important;
  padding: 0 !important;

  overflow: visible !important;
}

.crw-card-grid > p{
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.crw-card-img pre{
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  white-space: normal !important;
}