MediaWiki:Timeless.css: Difference between revisions

MediaWiki interface page
(Making the viewbox wider. This should be how it is in newer versions of the skin as well.)
(Swap RPCN page for Vblank page in TOC columns)
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will affect users of the Timeless skin */
/* CSS placed here will affect users of the Timeless skin */


/* Header strip */
/* Hide the title on the main page */
#mw-header-hack .color-middle-container, #mw-header-nav-hack .color-bar .color-middle-container,
.action-view.page-Main_Page #siteSub, .action-submit.page-Main_Page #siteSub,
#mw-header-hack .color-left, #mw-header-nav-hack .color-bar .color-left,
.action-view.page-Main_Page #contentSub, .action-submit.page-Main_Page #contentSub,
#mw-header-hack .color-right, #mw-header-nav-hack .color-bar .color-right {
.action-view.page-Main_Page .firstHeading, .action-submit.page-Main_Page .firstHeading {
   display: none;
   display: none;
}
}


#mw-header-hack, #mw-header-nav-hack .color-bar {
/* Flexbox used in the Main page */
   background: linear-gradient(to right, rgb(166, 0, 217), rgb(0, 196, 255));
.flexbox-row-wrap {
   height: 0.35em;
   display: flex;
  flex-direction: row;
   flex-wrap: wrap;
}
}


/* Footer */
.flexchild-stretch {
#mw-content-container {
   flex-grow: 1;
   border-bottom: 0px;
}
}


body {
.flexchild-border {
   background: linear-gradient(to right, rgb(79, 0, 103), rgb(0, 81, 105));
   background-color: #f8f9fa;
  border-style: solid;
  border-width: 1px;
  border-color: #eaecf0;
  border-radius: 10px;
  padding: 15px;
  margin: 5px;
  box-shadow:
    1px 2px 2px hsl(238deg 66% 65% / 0.3),
    2px 4px 4px hsl(238deg 66% 65% / 0.3),
    4px 8px 8px hsl(238deg 66% 65% / 0.3);
}
 
.flexheading3 {
  margin-top: 0em !important;
}
 
.flexheading4 {
  margin-top: 0em !important;
}
 
@media screen and ( max-width: 850px ) {
  .flexheading4 {
    margin-top: 0.5em;
  }
}
 
.text-bottomline {
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-bottom-color: #c8ccd1;
}
}


/* Maximum width for Content box */
/* Video game infobox */
.ts-inner {
.vginfobox {
   max-width: 115em;
  float: right;
   max-width: 365px;
  margin-left: 15px;
  margin-bottom: 15px;
  font-size: 90%;
  background-color: #f8f9fa;
  border-style: solid;
  border-width: 1px;
  border-color: #eaecf0;
  border-spacing: 0px;
  border-radius: 10px;
  box-shadow:
    1px 2px 2px hsl(238deg 66% 65% / 0.3),
    2px 4px 4px hsl(238deg 66% 65% / 0.3),
    4px 8px 8px hsl(238deg 66% 65% / 0.3);
}
}


/* Flexbox properties */
@media screen and ( max-width: 850px ) {
.flexchild-border {
  .vginfobox {
    float: none;
    font-size: 100%;
    margin: auto !important;
  }
}
 
.vginfobox > * > tr > th, .vginfobox > * > tr > td {
  padding: 10px 15px;
}
 
/* TOC */
.toc {
  background-color: #f8f9fa;
  border-style: solid;
  border-width: 1px;
  border-color: #eaecf0;
  border-radius: 10px;
  box-shadow:
    1px 2px 2px hsl(238deg 66% 65% / 0.3),
    2px 4px 4px hsl(238deg 66% 65% / 0.3),
    4px 8px 8px hsl(238deg 66% 65% / 0.3);
}
 
/** Add columns to TOC in certain pages **/
.page-Help_Game_Patches_Main #toc > ul:nth-child(3),
.page-Vblank_compatible_games_list #toc > ul:nth-child(3) {
  column-count: 3;
}
 
@media screen and ( max-width: 850px ) {
  .page-Help_Game_Patches_Main #toc > ul:nth-child(3),
  .page-Vblank_compatible_games_list #toc > ul:nth-child(3) {
    column-count: 2;
  }
}
 
@media screen and ( max-width: 550px ) {
  .page-Help_Game_Patches_Main #toc > ul:nth-child(3),
  .page-Vblank_compatible_games_list #toc > ul:nth-child(3) {
    column-count: 1;
  }
}
 
.page-Help_Game_Patches_Main #toc > ul > .toclevel-1,
.page-Vblank_compatible_games_list #toc > ul > .toclevel-1 {
  page-break-inside: avoid;
}
 
/* Disclaimer box */
#disclaimer-box {
  background-color: #f8f9fa;
   border-style: solid;
   border-style: solid;
   border-width: 1px;
   border-width: 1px;
   border-color: #cccccc;
   border-color: #eaecf0;
   border-radius: 10px;
   border-radius: 10px;
   padding-left: 15px;
   padding-left: 1em;
   padding-right: 15px;
   padding-right: 1em;
   padding-top: 8px;
   box-shadow:
   padding-bottom: 13px;
    1px 2px 2px hsl(238deg 66% 65% / 0.3),
   margin-right: 10px;
    2px 4px 4px hsl(238deg 66% 65% / 0.3),
   margin-bottom: 10px;
    4px 8px 8px hsl(238deg 66% 65% / 0.3);
}
 
/* Add background and color to user message notifications */
.usermessage {
  background-color: #fef6e7;
  border-color: #fc3;
  border-width: 1px !important;
  border-style: solid !important;
   padding: 0.5em 1em !important;
   margin-bottom: 0.2em;
}
 
@media screen and ( min-width: 1100px ) {
   .usermessage {
    margin-bottom: 1em;
  }
}
}


.flexheading3 {
/* Formatting for configuration tables */
   font-size: 1.4em;
.config-table {
   margin-top: 0em;
   width: 100%;
}
 
.config-table-first-column {
   width: 220px;
}
}


.flexheading4 {
@media screen and ( max-width: 850px ) {
   font-size: 1.2em;
   .config-table-first-column {
  margin-top: 0em;
    width: auto;
   margin-bottom: 0.5em;
   }
}
}

Latest revision as of 17:23, 26 February 2022

/* CSS placed here will affect users of the Timeless skin */

/* Hide the title on the main page */
.action-view.page-Main_Page #siteSub, .action-submit.page-Main_Page #siteSub,
.action-view.page-Main_Page #contentSub, .action-submit.page-Main_Page #contentSub,
.action-view.page-Main_Page .firstHeading, .action-submit.page-Main_Page .firstHeading {
  display: none;
}

/* Flexbox used in the Main page */
.flexbox-row-wrap {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.flexchild-stretch {
  flex-grow: 1;
}

.flexchild-border {
  background-color: #f8f9fa;
  border-style: solid;
  border-width: 1px;
  border-color: #eaecf0;
  border-radius: 10px;
  padding: 15px;
  margin: 5px;
  box-shadow:
    1px 2px 2px hsl(238deg 66% 65% / 0.3),
    2px 4px 4px hsl(238deg 66% 65% / 0.3),
    4px 8px 8px hsl(238deg 66% 65% / 0.3);
}

.flexheading3 {
  margin-top: 0em !important;
}

.flexheading4 {
  margin-top: 0em !important;
}

@media screen and ( max-width: 850px ) {
  .flexheading4 {
    margin-top: 0.5em;
  }
}

.text-bottomline {
  border-bottom-style: solid; 
  border-bottom-width: 2px;
  border-bottom-color: #c8ccd1;
}

/* Video game infobox */
.vginfobox {
  float: right;
  max-width: 365px;
  margin-left: 15px;
  margin-bottom: 15px;
  font-size: 90%;
  background-color: #f8f9fa;
  border-style: solid;
  border-width: 1px;
  border-color: #eaecf0;
  border-spacing: 0px;
  border-radius: 10px;
  box-shadow:
    1px 2px 2px hsl(238deg 66% 65% / 0.3),
    2px 4px 4px hsl(238deg 66% 65% / 0.3),
    4px 8px 8px hsl(238deg 66% 65% / 0.3);
}

@media screen and ( max-width: 850px ) {
  .vginfobox {
    float: none;
    font-size: 100%;
    margin: auto !important;
  }
}

.vginfobox > * > tr > th, .vginfobox > * > tr > td {
  padding: 10px 15px;
}

/* TOC */
.toc {
  background-color: #f8f9fa;
  border-style: solid;
  border-width: 1px;
  border-color: #eaecf0;
  border-radius: 10px;
  box-shadow:
    1px 2px 2px hsl(238deg 66% 65% / 0.3),
    2px 4px 4px hsl(238deg 66% 65% / 0.3),
    4px 8px 8px hsl(238deg 66% 65% / 0.3);
}

/** Add columns to TOC in certain pages **/
.page-Help_Game_Patches_Main #toc > ul:nth-child(3),
.page-Vblank_compatible_games_list #toc > ul:nth-child(3) {
  column-count: 3;
}

@media screen and ( max-width: 850px ) {
  .page-Help_Game_Patches_Main #toc > ul:nth-child(3),
  .page-Vblank_compatible_games_list #toc > ul:nth-child(3) {
    column-count: 2;
  }
}

@media screen and ( max-width: 550px ) {
  .page-Help_Game_Patches_Main #toc > ul:nth-child(3),
  .page-Vblank_compatible_games_list #toc > ul:nth-child(3) {
    column-count: 1;
  }
}

.page-Help_Game_Patches_Main #toc > ul > .toclevel-1,
.page-Vblank_compatible_games_list #toc > ul > .toclevel-1 {
  page-break-inside: avoid;
}

/* Disclaimer box */
#disclaimer-box {
  background-color: #f8f9fa;
  border-style: solid;
  border-width: 1px;
  border-color: #eaecf0;
  border-radius: 10px;
  padding-left: 1em;
  padding-right: 1em;
  box-shadow:
    1px 2px 2px hsl(238deg 66% 65% / 0.3),
    2px 4px 4px hsl(238deg 66% 65% / 0.3),
    4px 8px 8px hsl(238deg 66% 65% / 0.3);
}

/* Add background and color to user message notifications */
.usermessage {
  background-color: #fef6e7;
  border-color: #fc3;
  border-width: 1px !important;
  border-style: solid !important;
  padding: 0.5em 1em !important;
  margin-bottom: 0.2em;
}

@media screen and ( min-width: 1100px ) {
  .usermessage {
    margin-bottom: 1em;
  }
}

/* Formatting for configuration tables */
.config-table {
  width: 100%;
}

.config-table-first-column {
  width: 220px;
}

@media screen and ( max-width: 850px ) {
  .config-table-first-column {
    width: auto;
  }
}