m Reverted edits by JakeL (talk) to last revision by Schang1146
Tag: Rollback
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/*Set font to be more legible.*/
body {
body {
   font-family:"Gill Sans Nova",Ubuntu,Calibri,"DejaVu Sans",source-sans-pro,Helvetica,sans-serif;
   font-family:"Gill Sans Nova",Ubuntu,Calibri,"DejaVu Sans",source-sans-pro,Helvetica,sans-serif;
   font-size:1.2rem;
   font-size:1.2rem;
}
}
/*see more collapsible in incomplete template*/
 
@media (hover: hover) {
@media (hover: hover) {
   #learn-more-toggle:hover {
   #learn-more-toggle:hover {
Line 12: Line 10:
}
}


/*css hackjob to fix chrome putting subsections vertically next to infobox on mobile size*/
.mw-parser-output :is(h1,h2,h3,h4,h5,h6) {
.mw-parser-output :is(h1,h2,h3,h4,h5,h6) {
     min-width: 1em;  
     min-width: 1em;  
}
}


/** CSS trick to fix page name**/
.mw-logo-container::before {
.mw-logo-container::before {
font-weight: bold;
font-weight: bold;
content: "Consumer Rights Wiki";
content: "Consumer Rights Wiki";
}
}
.mw-logo-wordmark{
.mw-logo-wordmark{
   display: none;
   display: none;
}
}


/** Hide extra footer notices **/
li#footer-info-license-notice,
li#footer-info-license-notice,
li#footer-info-privacy-notice{
li#footer-info-privacy-notice{
   display: none;
   display: none;
}
}
/** Category Page **/


.cat-but-grid{
.cat-but-grid{
Line 57: Line 51:


@media screen and (prefers-color-scheme: dark) {
@media screen and (prefers-color-scheme: dark) {
  /* automatic mode */
   html.skin-theme-clientpref-os .cat-but:active {
   html.skin-theme-clientpref-os .cat-but:active {
     border: 2px solid var( --color-base--hover, #404244 ) !important;
     border: 2px solid var( --color-base--hover, #404244 ) !important;
Line 73: Line 66:
   }
   }
}
}
@media (hover: hover) and (prefers-color-scheme: dark) {
@media (hover: hover) and (prefers-color-scheme: dark) {
   html.skin-theme-clientpref-os .cat-but:hover{
   html.skin-theme-clientpref-os .cat-but:hover{
Line 79: Line 73:
}
}


/** -------------------------------- **/
/** Extensions **/
/* Cargo */
/* Table - dark mode */
table.cargoTable.noMerge tr:nth-child(2n+1) {
table.cargoTable.noMerge tr:nth-child(2n+1) {
   background: var(--background-color-base, #fff);
   background: var(--background-color-base, #fff);
Line 94: Line 81:
}
}


/* Page Forms */
/* Input Type - tokens */
.select2-container--default .select2-selection--multiple {
.select2-container--default .select2-selection--multiple {
   background-color: var(--background-color-base, #fff);
   background-color: var(--background-color-base, #fff);
Line 130: Line 114:
   background-color: #2A4B8D;
   background-color: #2A4B8D;
}
}
/** -------------------------------- **/
/** Templates **/
/* Notices - Coloured boxes */


.cat-mw-box{
.cat-mw-box{
Line 154: Line 131:
   padding:0.2rem 1rem;
   padding:0.2rem 1rem;
}
}
/* Infobox */


.infobox {
.infobox {
Line 162: Line 137:
   border: 1px solid #aaa;
   border: 1px solid #aaa;
   float: right;
   float: right;
  clear: right;
   margin: 0 0 1em 1em;
   margin: 0 0 1em 1em;
   padding: 0.5em;
   padding: 0.5em;
   width: 24em;
   width: 24em;
  max-width: 100%;
  box-sizing: border-box;
}
}


Line 181: Line 159:
}
}


/*bg color to get visible transparent images in darkmode*/
.infobox-image img {
  max-width: 100%;
  height: auto;
}


@media screen {
@media screen {
Line 190: Line 171:


@media screen and (prefers-color-scheme: dark) {
@media screen and (prefers-color-scheme: dark) {
  /* automatic mode */
   html.skin-theme-clientpref-os .infobox-image{
   html.skin-theme-clientpref-os .infobox-image{
     background-color:#909590;  
     background-color:#909590;  
Line 213: Line 193:
   border-bottom: 0.1em solid #ccc;
   border-bottom: 0.1em solid #ccc;
   font-size:125%;
   font-size:125%;
}
/* Loosely based on https://en.wikipedia.org/wiki/Template:Infobox */
@media (min-width: 640px) {
  .infobox {
    float: right;
    clear: right;
  }
}
}


@media (max-width: 640px) {
@media (max-width: 640px) {
   .infobox {
   .infobox {
     width: 95%;
    float: none;
     padding-left:2.5%;
    clear: both;
     padding-right:2.5%
     width: 100%;
    margin: 0 0 1em 0;
     padding-left: 2.5%;
     padding-right: 2.5%;
   }
   }
}
}
/** -------------------------------- **/
/** Create page **/


.createPageInput {
.createPageInput {
Line 257: Line 228:


@media screen and (prefers-color-scheme: dark) {
@media screen and (prefers-color-scheme: dark) {
  /* automatic mode */
   html.skin-theme-clientpref-os .pageInputActive {
   html.skin-theme-clientpref-os .pageInputActive {
     border: 2px solid var( --color-base--hover, #404244 );
     border: 2px solid var( --color-base--hover, #404244 );
Line 283: Line 253:
}
}


/* Work in progress */
.create-page {
.create-page {
   position: relative;
   position: relative;
Line 331: Line 299:
}
}


/* Main page, new page summary */
.mainpage-contents .mw-contributions-list li{
.mainpage-contents .mw-contributions-list li{
   padding-bottom: 0.5rem;
   padding-bottom: 0.5rem;
   margin: 0;
   margin: 0;
}
}
.mainpage-contents a.mw-newpages-time,
.mainpage-contents a.mw-newpages-time,
.mainpage-contents span.mw-newpages-length,
.mainpage-contents span.mw-newpages-length,
Line 343: Line 310:
.mainpage-contents span.mw-tag-markers { display: none;}
.mainpage-contents span.mw-tag-markers { display: none;}


/** -------------------------------- **/
/* Utility classes */
/* Make an image span the full width of the page (should only be used for very narrow horizontal images) */
.cat-image-fullwidth img {
.cat-image-fullwidth img {
max-width: 100%;
max-width: 100%;
height: auto;
height: auto;
}
}