Fix for navbar text
No edit summary
Tag: Manual revert
 
(96 intermediate revisions by the same user not shown)
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*/
 
.vector-page-titlebar::after {
  display: none;
}
 
@media (hover: hover) {
@media (hover: hover) {
   #learn-more-toggle:hover {
   #learn-more-toggle:hover {
Line 12: Line 14:
}
}


/*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 55:


@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 70:
   }
   }
}
}
@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 77:
}
}


/** -------------------------------- **/
/** 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 85:
}
}


/* 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 118:
   background-color: #2A4B8D;
   background-color: #2A4B8D;
}
}
/** -------------------------------- **/
/** Templates **/
/* Notices - Coloured boxes */


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


.infobox {
.infobox {
Line 162: Line 141:
   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 163:
}
}


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


@media screen {
@media screen {
Line 190: Line 175:


@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 197:
   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 232:


@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 257:
}
}


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


/* 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 314:
.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;
}
}
@media screen and (min-width: 1680px) {
 
   .mw-header {
#mw-panel a[href*="discord.gg"],
    display: flex !important;
#mw-panel a[href*="discord.com/invite"]{
   }
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  background: #5865F2;
  margin-bottom: 4px;
  color: #fff !important;
}
 
#mw-panel a[href*="discord.gg"]::before,
#mw-panel a[href*="discord.com/invite"]::before{
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url("/w/Special:FilePath/Discord-white-icon.png") center / contain no-repeat;
}
 
#mw-panel a[href*="discord.gg"]:hover,
#mw-panel a[href*="discord.com/invite"]:hover{
  filter: brightness(0.95);
}
 
#mw-panel a[href*="chromewebstore.google.com"] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  background: #1a73e8;
  color: #fff !important;
  margin-bottom: 4px;
}
 
#mw-panel a[href*="chromewebstore.google.com"]::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url("/w/Special:FilePath/Chrome-white-icon2.png") center / contain no-repeat;
}
 
#mw-panel a[href*="chromewebstore.google.com"]:hover {
  filter: brightness(0.95);
}
 
#mw-panel a[href*="addons.mozilla.org"] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  background: #ff6611;
  color: #fff !important;
}
 
#mw-panel a[href*="addons.mozilla.org"]::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url("/w/Special:FilePath/Firefox-white-icon3.png") center / contain no-repeat;
}
 
#mw-panel a[href*="addons.mozilla.org"]:hover {
   filter: brightness(0.95);
}
 
#mw-panel a[href*="zulip.consumerrights.wiki"]{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  background: #6492FE;
  color: #fff !important;
   margin-bottom: 4px;
}
 
#mw-panel a[href*="zulip.consumerrights.wiki"]::before{
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url("/w/Special:FilePath/Zulip-white-icon.png") center / contain no-repeat;
}
 
#mw-panel a[href*="zulip.consumerrights.wiki"]:hover{
  filter: brightness(0.95);
}
}