Jump to content

Main Page.css: Difference between revisions

From Consumer Rights Wiki
Fen (talk | contribs)
m Fen moved page User:Main Page.css to Main Page.css without leaving a redirect: had it on the wrong mainspace
No edit summary
Line 6: Line 6:
.header-box p {
.header-box p {
   font-size: inherit;
   font-size: inherit;
  margin: 0.25em 0;
}
}


.header-box {
.header-box {
   background: #e3f2fd;
   background: #f7f9fc;
   border: 1px solid #ccc;
   border: 1px solid #d7dde6;
  border-left: 4px solid #004080;
   border-radius: 8px;
   border-radius: 8px;
   padding: 0.5em;
   padding: 0.75em 1em;
   color: #000;
   color: #111;
   text-align: center;
   text-align: center;
}
}
Line 20: Line 22:
   background: #004080;
   background: #004080;
   color: #fff;
   color: #fff;
   padding: 0.4em 0.8em;
   padding: 0.45em 0.9em;
   border-radius: 4px;
   border-radius: 6px;
   font-weight: bold;
   font-weight: bold;
   text-decoration: none;
   text-decoration: none;
   display: inline-block;
   display: inline-block;
}
.crw-button:hover,
.crw-button:focus {
  background: #0b5aa5;
  outline: none;
}
}


.crw-button.secondary {
.crw-button.secondary {
   background: #e0e0e0;
   background: #eef2f7;
   color: #000;
   color: #111;
  border: 1px solid #d7dde6;
}
 
.crw-button.secondary:hover,
.crw-button.secondary:focus {
  background: #e6edf6;
  outline: none;
}
}


Line 50: Line 65:
   font-size: 1.5em;
   font-size: 1.5em;
   font-weight: bold;
   font-weight: bold;
   color: #2f4770;
   color: #0f2e4d;
   border-bottom: 2px solid #9bb9df;
   border-bottom: 2px solid rgba(0, 64, 128, 0.22);
   padding-bottom: 0.2em;
   padding-bottom: 0.25em;
   margin-bottom: 0.5em;
   margin-bottom: 0.6em;
   margin-top: 0 !important;
   margin-top: 0 !important;
}
}


.content-section {
.content-section {
   background: #f9f9f9;
   background: #ffffff;
   border: 1px solid #ccc;
   border: 1px solid #d7dde6;
   border-radius: 6px;
   border-radius: 8px;
   padding: 1em;
   padding: 1em;
   box-sizing: border-box;
   box-sizing: border-box;
   overflow: hidden;
   overflow: hidden;
   min-width: 0;
   min-width: 0;
  color: #111;
}
}


Line 74: Line 90:
   font-size: 1.5em;
   font-size: 1.5em;
   font-weight: bold;
   font-weight: bold;
   color: #2f4770;
   color: #0f2e4d;
   border-bottom: 2px solid #9bb9df;
   border-bottom: 2px solid rgba(0, 64, 128, 0.22);
   padding-bottom: 0.2em;
   padding-bottom: 0.25em;
   margin-top: 1em;
   margin-top: 0.25em;
}
}


Line 83: Line 99:
@media screen {
@media screen {
   html.skin-theme-clientpref-night .header-box {
   html.skin-theme-clientpref-night .header-box {
     background: #5d68bb;
     background: #121c32;
     border-color: #444;
     border-color: #273244;
     color: #d0d8ff;
    border-left-color: #004080;
     color: #e5e7eb;
   }
   }


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


   html.skin-theme-clientpref-night .crw-button {
   html.skin-theme-clientpref-night .crw-button {
     background: #517bc0;
     background: #004080;
     color: #fff;
     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 {
   html.skin-theme-clientpref-night .crw-button.secondary {
     background: #333;
     background: transparent;
     color: #ccc;
     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 {
   html.skin-theme-clientpref-night .content-section > div:first-child {
     color: #8ba4d4;
     color: #eaf2ff;
     border-color: #536d9d;
     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 {
   html.skin-theme-clientpref-os .content-header {
     color: #aabbee;
     color: #eaf2ff;
     border-bottom-color: #7881c7;
     border-bottom-color: rgba(0, 64, 128, 0.35);
   }
   }
}
}


Line 119: Line 153:
@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 {
     background: #5d68bb;
     background: #121c32;
     border-color: #444;
     border-color: #273244;
     color: #d0d8ff;
    border-left-color: #004080;
     color: #e5e7eb;
   }
   }


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


   html.skin-theme-clientpref-os .crw-button {
   html.skin-theme-clientpref-os .crw-button {
     background: #517bc0;
     background: #004080;
     color: #fff;
     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 {
   html.skin-theme-clientpref-os .crw-button.secondary {
     background: #333;
     background: transparent;
     color: #ccc;
     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 {
   html.skin-theme-clientpref-os .content-section > div:first-child {
     color: #8ba4d4;
     color: #eaf2ff;
     border-color: #536d9d;
     border-color: rgba(0, 64, 128, 0.35);
   }
   }


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

Revision as of 15:48, 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;
  border-radius: 8px;
  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: 1rem;
  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-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;
  border-radius: 8px;
  padding: 1em;
  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;
}

/* 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);
  }
}