MediaWiki:Common.css: Difference between revisions

From WargameChess

No edit summary
No edit summary
Line 3: Line 3:
/* Edit These Variables! */
/* Edit These Variables! */
:root{
:root{
    --text: #735751;
  --content-bg: #e7d7c1;
    --headings: #735751;
    --content-bg: #e7d7c1;


    --link: #A11B1B ;
    --link-visited: #A11B1B ;
    --link-hover: #06e;


  --light-text: #735751;
  --light-headings: #735751;
 
  --light-link: #A11B1B ;
  --light-link-visited: #A11B1B ;
  --light-link-hover: #06e;


  --dark-text: #E7D7C1;
  --dark-headings: #e7d7c1;
  --dark-link: #A78A7F  ;
  --dark-link-visited: #A78A7F ;
  --dark-link-hover: #BF4342;
}
}


Line 18: Line 26:
/*LightMode*/
/*LightMode*/
:root{
:root{
    --var-text-color: var(--text);
  --var-background-color: var(--content-bg);
    --var-headings : var(--headings);
    --var-background-color: var(--content-bg);


    --var-link: var(--link);
 
    --var-link-visited: var(--link-visited);
  --var-text-color: var(--light-text);
    --var-link-hover: var(--link-hover);
  --var-headings : var(--light-headings);
    --var-link-active: #000;
 
  --var-link: var(--light-link);
  --var-link-visited: var(--light-link-visited);
  --var-link-hover: var(--light-link-hover);
  --var-link-active: #000;
}
}
:root.skin-theme-clientpref-night{
  --var-text-color: var(--dark-text);
  --var-headings : var(--dark-headings);


.skin-theme-clientpref-night:not(.mw-invert), .client-darkmode:not(.mw-invert), .skin-theme-clientpref-night img:not(.mw-invert), .client-darkmode img:not(.mw-invert), .skin-theme-clientpref-night video:not(.mw-invert), .client-darkmode video:not(.mw-invert), .skin-theme-clientpref-night svg:not(.mw-invert), .client-darkmode svg:not(.mw-invert), .skin-theme-clientpref-night iframe:not(.mw-invert), .client-darkmode iframe:not(.mw-invert), .skin-theme-clientpref-night .mw-no-invert:not(.mw-invert), .client-darkmode .mw-no-invert:not(.mw-invert), .skin-theme-clientpref-night .cdx-no-invert:not(.mw-invert), .client-darkmode .cdx-no-invert:not(.mw-invert), .skin-theme-clientpref-night td .diffchange:not(.mw-invert), .client-darkmode td .diffchange:not(.mw-invert), .skin-theme-clientpref-night .skin-minerva .mw-notification-visible .mw-notification-content:not(.mw-invert), .client-darkmode .skin-minerva .mw-notification-visible .mw-notification-content:not(.mw-invert){
  --var-link: var(--dark-link);
  filter: invert(1);
  --var-link-visited: var(--dark-link-visited);
    -webkit-filter: invert(1);
  --var-link-hover: var(--dark-link-hover);
  --var-link-active: #000;
}
 
.skin-theme-clientpref-night:not(.mw-invert),  
.client-darkmode:not(.mw-invert),  
.skin-theme-clientpref-night img:not(.mw-invert),  
.client-darkmode img:not(.mw-invert),  
.skin-theme-clientpref-night video:not(.mw-invert),  
.client-darkmode video:not(.mw-invert),  
.skin-theme-clientpref-night svg:not(.mw-invert),  
.client-darkmode svg:not(.mw-invert),  
.skin-theme-clientpref-night iframe:not(.mw-invert),  
.client-darkmode iframe:not(.mw-invert),  
.skin-theme-clientpref-night .mw-no-invert:not(.mw-invert),  
.client-darkmode .mw-no-invert:not(.mw-invert),  
.skin-theme-clientpref-night .cdx-no-invert:not(.mw-invert),  
.client-darkmode .cdx-no-invert:not(.mw-invert),  
.skin-theme-clientpref-night td .diffchange:not(.mw-invert),  
.client-darkmode td .diffchange:not(.mw-invert),  
.skin-theme-clientpref-night .skin-minerva .mw-notification-visible .mw-notification-content:not(.mw-invert),  
.client-darkmode .skin-minerva .mw-notification-visible .mw-notification-content:not(.mw-invert){
filter: invert(1);
  -webkit-filter: invert(1);
}
}


Line 36: Line 72:


#footer #footer-icons{
#footer #footer-icons{
  float: left;
float: left;
}
}


Line 42: Line 78:


#toc {
#toc {
  max-height: calc(60vh - 20px);
max-height: calc(60vh - 20px);
  float: right;  
float: right;  
  margin:0 0 1em 1em;  
margin:0 0 1em 1em;  
  position:fixed !important;  
position:fixed !important;  
  bottom:10px !important;  
bottom:10px !important;  
  right:10px !important;
right:10px !important;
  z-index: 10000000;
z-index: 10000000;
  padding: 20px;
padding: 20px;
  transition: all 0.5s ease-out;
transition: all 0.5s ease-out;
};
};


#toc h2{
#toc h2{
  color: var(--var-text-color) !important;
color: var(--var-text-color) !important;
}
}




#content-container {
#content-container {
  transform: none !important;
transform: none !important;
}
}




/* unvisited links      */
/* unvisited links      */
  .skin-theme-clientpref-night a,
.skin-theme-clientpref-night a,
  .client-darkmode a,
.client-darkmode a,
  a{  
a{  
      color: var(--var-link) !important;
    color: var(--var-link) !important;
  }  
}  






  .client-darkmode a:link,
.client-darkmode a:link,
  .skin-theme-clientpref-night a:link,
.skin-theme-clientpref-night a:link,
  a:link{  
a:link{  
      color: var(--var-link) !important;
    color: var(--var-link) !important;
  }  
}  


/* visited links        */
/* visited links        */
.skin-theme-clientpref-night a:visited,
.skin-theme-clientpref-night a:visited,
a:visited{  
a:visited{  
    color: var(--var-link-visited);
  color: var(--var-link-visited);
}   
}   
/* user hovers, or focus */
/* user hovers, or focus */
Line 88: Line 124:
a:hover,  
a:hover,  
a:focus{  
a:focus{  
    color: var(--var-link-hover);  
  color: var(--var-link-hover);  
}   
}   
/* active links          */
/* active links          */
.skin-theme-clientpref-night a:active,
.skin-theme-clientpref-night a:active,
a:active{  
a:active{  
    color: var(--var-link-active);
  color: var(--var-link-active);
}   
}   


/* Hides links in Sidebar - Tools */
/* Hides links in Sidebar - Tools */
#t-whatlinkshere{
#t-whatlinkshere{
    display: none;
  display: none;
}
}
#t-recentchangeslinked{
#t-recentchangeslinked{
    display: none;
  display: none;
}
}
#t-upload{
#t-upload{
    display: none;
  display: none;
}
}
#t-specialpages{
#t-specialpages{
    display: none;
  display: none;
}
}
#t-permalink{
#t-permalink{
    display: none;
  display: none;
}
}
#t-info{
#t-info{
    display: none;
  display: none;
}
}
#t-cite{
#t-cite{
    display: none;
  display: none;
}
}


/* Hides links for Page and Discussion */
/* Hides links for Page and Discussion */
div#p-namespaces{
div#p-namespaces{
    display: none;
  display: none;
}
}




#content {  
#content {  
    background-color: var(--var-background-color);
  background-color: var(--var-background-color);
}
}
 
 
 
 
 
 


.mw-body h1,
.mw-body h1,
Line 141: Line 171:
.mw-body h6,
.mw-body h6,
.mw-body h5{
.mw-body h5{
  color: var(--var-headings);
color: var(--var-headings);
}
}


body {  
body {  
    color: var(--var-text-color);  
  color: var(--var-text-color);  
}
}


#footer{
#footer{
  z-index: 2;
z-index: 2;
}
}


table{
table{
    display: block;
  display: block;


    max-width: 100%;
  max-width: 100%;
    overflow-x: auto;
  overflow-x: auto;
    white-space:no-wrap;
  white-space:no-wrap;
}
}


@media screen and (max-width: 640px) {
@media screen and (max-width: 640px) {
  #header #p-banner{
#header #p-banner{
    padding: 0 0 0em 0.5em;
  padding: 0 0 0em 0.5em;
    margin: 0.75em 0 1.5em 0.5em;
  margin: 0.75em 0 1.5em 0.5em;
  }
}


  #header #p-search{
#header #p-search{
    top: auto;
  top: auto;
    bottom:0.5em;
  bottom:0.5em;
    padding:0 1.5em 0.5em 0.5em;
  padding:0 1.5em 0.5em 0.5em;
   
 
}
}
}
}
@media screen and (max-width: 420px) {
@media screen and (max-width: 420px) {
  #page-tools #p-actions{
#page-tools #p-actions{
    display:none;
  display:none;
  }
}
}
}


Line 192: Line 220:
.skin-theme-clientpref-night a,
.skin-theme-clientpref-night a,
.skin-theme-clientpref-night li{
.skin-theme-clientpref-night li{
    filter: invert( 1 ) !important;  
  filter: invert( 1 ) !important;  
    -webkit-filter: invert( 1 ) !important;
  -webkit-filter: invert( 1 ) !important;
    color:orange;
  color:orange;
}
}

Revision as of 21:38, 19 March 2025

/* CSS placed here will be applied to all skins */

/* Edit These Variables! */
:root{
  --content-bg: #e7d7c1;


  --light-text: #735751;
  --light-headings: #735751;
  
  --light-link: #A11B1B ;
  --light-link-visited: #A11B1B ;
  --light-link-hover: #06e;


  --dark-text: #E7D7C1;
  --dark-headings: #e7d7c1;

  --dark-link: #A78A7F   ;
  --dark-link-visited: #A78A7F ;
  --dark-link-hover: #BF4342;
}

/*Careful Below*/

/*LightMode*/
:root{
  --var-background-color: var(--content-bg);


  --var-text-color: var(--light-text);
  --var-headings : var(--light-headings);

  --var-link: var(--light-link);
  --var-link-visited: var(--light-link-visited);
  --var-link-hover: var(--light-link-hover);
  --var-link-active: #000;
}
:root.skin-theme-clientpref-night{
  --var-text-color: var(--dark-text);
  --var-headings : var(--dark-headings);

  --var-link: var(--dark-link);
  --var-link-visited: var(--dark-link-visited);
  --var-link-hover: var(--dark-link-hover);
  --var-link-active: #000;
}

.skin-theme-clientpref-night:not(.mw-invert), 
.client-darkmode:not(.mw-invert), 
.skin-theme-clientpref-night img:not(.mw-invert), 
.client-darkmode img:not(.mw-invert), 
.skin-theme-clientpref-night video:not(.mw-invert), 
.client-darkmode video:not(.mw-invert), 
.skin-theme-clientpref-night svg:not(.mw-invert), 
.client-darkmode svg:not(.mw-invert), 
.skin-theme-clientpref-night iframe:not(.mw-invert), 
.client-darkmode iframe:not(.mw-invert), 
.skin-theme-clientpref-night .mw-no-invert:not(.mw-invert), 
.client-darkmode .mw-no-invert:not(.mw-invert), 
.skin-theme-clientpref-night .cdx-no-invert:not(.mw-invert), 
.client-darkmode .cdx-no-invert:not(.mw-invert), 
.skin-theme-clientpref-night td .diffchange:not(.mw-invert), 
.client-darkmode td .diffchange:not(.mw-invert), 
.skin-theme-clientpref-night .skin-minerva .mw-notification-visible .mw-notification-content:not(.mw-invert), 
.client-darkmode .skin-minerva .mw-notification-visible .mw-notification-content:not(.mw-invert){
filter: invert(1);
  -webkit-filter: invert(1);
}



#footer #footer-icons{
float: left;
}

/* Table of Contents */

#toc {
max-height: calc(60vh - 20px);
float: right; 
margin:0 0 1em 1em; 
position:fixed !important; 
bottom:10px !important; 
right:10px !important;
z-index: 10000000;
padding: 20px;
transition: all 0.5s ease-out;
};

#toc h2{
color: var(--var-text-color) !important;
}


#content-container {
transform: none !important;
}


/* unvisited links       */
.skin-theme-clientpref-night a,
.client-darkmode a,
a{ 
    color: var(--var-link) !important;
} 



.client-darkmode a:link,
.skin-theme-clientpref-night a:link,
a:link{ 
    color: var(--var-link) !important;
} 

/* visited links         */
.skin-theme-clientpref-night a:visited,
a:visited{ 
  color: var(--var-link-visited);
}  
/* user hovers, or focus */
.skin-theme-clientpref-night a:hover,
.skin-theme-clientpref-night a:focus,
a:hover, 
a:focus{ 
  color: var(--var-link-hover); 
}  
/* active links          */
.skin-theme-clientpref-night a:active,
a:active{ 
  color: var(--var-link-active);
}  

/* Hides links in Sidebar - Tools */
#t-whatlinkshere{
  display: none;
}
#t-recentchangeslinked{
  display: none;
}
#t-upload{
  display: none;
}
#t-specialpages{
  display: none;
}
#t-permalink{
  display: none;
}
#t-info{
  display: none;
}
#t-cite{
  display: none;
}

/* Hides links for Page and Discussion */
div#p-namespaces{
  display: none;
}


#content { 
  background-color: var(--var-background-color);
}

.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h6,
.mw-body h5{
color: var(--var-headings);
}

body { 
  color: var(--var-text-color); 
}

#footer{
z-index: 2;
}

table{
  display: block;

  max-width: 100%;
  overflow-x: auto;
  white-space:no-wrap;
}

@media screen and (max-width: 640px) {
#header #p-banner{
  padding: 0 0 0em 0.5em;
  margin: 0.75em 0 1.5em 0.5em;
}

#header #p-search{
  top: auto;
  bottom:0.5em;
  padding:0 1.5em 0.5em 0.5em;
  
}
}
@media screen and (max-width: 420px) {
#page-tools #p-actions{
  display:none;
}
}



.skin-theme-clientpref-night p,
.skin-theme-clientpref-night h1,
.skin-theme-clientpref-night h2,
.skin-theme-clientpref-night h3,
.skin-theme-clientpref-night h4,
.skin-theme-clientpref-night h5,
.skin-theme-clientpref-night h6,
.skin-theme-clientpref-night a,
.skin-theme-clientpref-night li{
   filter: invert( 1 ) !important; 
   -webkit-filter: invert( 1 ) !important;
   color:orange;
}