Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/* All CSS here will be loaded for users of the Citizen skin */
/* All CSS here will be loaded for users of the Citizen skin */


/* ======================================================
/* ======================================================
   TREEVERSE WIKI — CLEAN DARK CITIZEN THEME
   TREEVERSE WIKI — CITIZEN DARK THEME
   ====================================================== */
   ====================================================== */


Line 12: Line 11:


body {
body {
  background-color: #0b0b0b;
    background-color: #0b0b0b;
}
}


Line 21: Line 20:


.citizen-page-container,
.citizen-page-container,
.citizen-page-container-inner {
.citizen-page-container-inner,
 
.citizen-body,
  background: transparent !important;
.citizen-content,
.citizen-card,
.mw-body,
.mw-body-content {


  border: none !important;
    background: transparent !important;
 
    border: none !important;
  box-shadow: none !important;
    box-shadow: none !important;


}
}


.citizen-page-container-inner {


  padding: 0 !important;
/* remove internal padding layers */


.citizen-page-container-inner,
.citizen-body,
.citizen-content {
    padding: 0 !important;
}
}


Line 44: Line 49:
.mw-parser-output {
.mw-parser-output {


  background: #0f1115;
    background: #0f1115;


  color: #e6e6e6;
    color: #e6e6e6;


  max-width: 950px;
    max-width: 950px;


  margin: auto;
    margin: auto;


  padding: 24px;
    padding: 24px;


  border-radius: 16px;
    border-radius: 16px;


  word-wrap: break-word;
    word-wrap: break-word;


}
}
Line 70: Line 75:
.mw-parser-output h4 {
.mw-parser-output h4 {


  color: #ffffff;
    color: #ffffff;


  margin-top: 1.6em;
    margin-top: 1.6em;
 
    margin-bottom: 0.6em;
  margin-bottom: 0.6em;


}
}
Line 85: Line 89:
.mw-parser-output p {
.mw-parser-output p {


  font-size: 1.05rem;
    font-size: 1.05rem;


  line-height: 1.6;
    line-height: 1.6;


}
}
Line 97: Line 101:


a {
a {
 
    color: #7fd3ff;
  color: #7fd3ff;
 
}
}


a:visited {
a:visited {
 
    color: #c49cff;
  color: #c49cff;
 
}
}


Line 115: Line 115:
.mw-parser-output img {
.mw-parser-output img {


  max-width: 100%;
    max-width: 100%;
 
    height: auto;
  height: auto;


  border-radius: 6px;
    border-radius: 6px;


}
}
Line 130: Line 129:
.wikitable {
.wikitable {


  background: #161a22;
    background: #161a22;


  border: 1px solid #2a2f38;
    border: 1px solid #2a2f38;


  border-radius: 10px;
    border-radius: 10px;


  overflow: hidden;
    overflow: hidden;


}
}
Line 142: Line 141:
.wikitable th {
.wikitable th {


  background: #1f2430;
    background: #1f2430;


  color: #ffffff;
    color: #ffffff;


}
}
Line 150: Line 149:
.wikitable td {
.wikitable td {


  background: #161a22;
    background: #161a22;


}
}
Line 161: Line 160:
.infobox {
.infobox {


  background: #161a22;
    background: #161a22;


  border: 1px solid #2a2f38;
    border: 1px solid #2a2f38;


  border-radius: 10px;
    border-radius: 10px;


}
}
Line 171: Line 170:
.infobox th {
.infobox th {


  background: #1f2430;
    background: #1f2430;


}
}
Line 183: Line 182:
code {
code {


  background: #111;
    background: #111;


  color: #e6e6e6;
    color: #e6e6e6;


  overflow-x: auto;
    overflow-x: auto;


  border-radius: 6px;
    border-radius: 6px;


}
}
Line 200: Line 199:
.thumbcaption {
.thumbcaption {


  color: #bbbbbb;
    color: #bbbbbb;


  font-size: 0.9rem;
    font-size: 0.9rem;


}
}
Line 213: Line 212:
.mw-body-content {
.mw-body-content {


  overflow-x: hidden;
    overflow-x: hidden;


}
}
Line 224: Line 223:
.mw-parser-output iframe {
.mw-parser-output iframe {


  max-width: 100%;
    max-width: 100%;
    width: 100%;


  width: 100%;
    border-radius: 10px;
 
  border-radius: 10px;


}
}
Line 238: Line 236:
.mw-parser-output .video-container {
.mw-parser-output .video-container {


  position: relative;
    position: relative;


  width: 100%;
    width: 100%;


  padding-bottom: 56.25%;
    padding-bottom: 56.25%;


  height: 0;
    height: 0;


}
}
Line 251: Line 249:
.mw-parser-output .video-container iframe {
.mw-parser-output .video-container iframe {


  position: absolute;
    position: absolute;


  top: 0;
    top: 0;
    left: 0;


  left: 0;
    width: 100%;
 
    height: 100%;
  width: 100%;
 
  height: 100%;


}
}
Line 270: Line 266:
@media (max-width: 720px) {
@media (max-width: 720px) {


    .mw-parser-output {


  .mw-parser-output {
        padding: 16px;
 
    padding: 16px;
 
    max-width: 100%;
 
  }


        max-width: 100%;


  /* tables scroll instead of breaking layout */
    }


  .mw-parser-output table {
    /* tables scroll horizontally */


     display: block;
     .mw-parser-output table {


    overflow-x: auto;
        display: block;


  }
        overflow-x: auto;


  .mw-parser-output table td,
    }
  .mw-parser-output table th {


     white-space: normal;
     .mw-parser-output table td,
    .mw-parser-output table th {


  }
        white-space: normal;


    }


  /* infobox stacks nicely */
    /* infobox stacks nicely */


  .infobox {
    .infobox {


    float: none;
        float: none;


    width: 100%;
        width: 100%;


    margin: 1em auto;
        margin: 1em auto;


  }
    }


}
}
Line 319: Line 312:
.citizen-page-header::before {
.citizen-page-header::before {


  background: rgba(0,0,0,0.35);
    background: rgba(0,0,0,0.35);


}
}

Latest revision as of 16:17, 8 March 2026

/* All CSS here will be loaded for users of the Citizen skin */

/* ======================================================
   TREEVERSE WIKI — CITIZEN DARK THEME
   ====================================================== */


/* ------------------------------------------------------
   Page background
------------------------------------------------------ */

body {
    background-color: #0b0b0b;
}


/* ------------------------------------------------------
   Remove ALL Citizen white containers
------------------------------------------------------ */

.citizen-page-container,
.citizen-page-container-inner,
.citizen-body,
.citizen-content,
.citizen-card,
.mw-body,
.mw-body-content {

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

}


/* remove internal padding layers */

.citizen-page-container-inner,
.citizen-body,
.citizen-content {
    padding: 0 !important;
}


/* ------------------------------------------------------
   Article panel
------------------------------------------------------ */

.mw-parser-output {

    background: #0f1115;

    color: #e6e6e6;

    max-width: 950px;

    margin: auto;

    padding: 24px;

    border-radius: 16px;

    word-wrap: break-word;

}


/* ------------------------------------------------------
   Headings
------------------------------------------------------ */

.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4 {

    color: #ffffff;

    margin-top: 1.6em;
    margin-bottom: 0.6em;

}


/* ------------------------------------------------------
   Paragraph readability
------------------------------------------------------ */

.mw-parser-output p {

    font-size: 1.05rem;

    line-height: 1.6;

}


/* ------------------------------------------------------
   Links
------------------------------------------------------ */

a {
    color: #7fd3ff;
}

a:visited {
    color: #c49cff;
}


/* ------------------------------------------------------
   Images
------------------------------------------------------ */

.mw-parser-output img {

    max-width: 100%;
    height: auto;

    border-radius: 6px;

}


/* ------------------------------------------------------
   Tables
------------------------------------------------------ */

.wikitable {

    background: #161a22;

    border: 1px solid #2a2f38;

    border-radius: 10px;

    overflow: hidden;

}

.wikitable th {

    background: #1f2430;

    color: #ffffff;

}

.wikitable td {

    background: #161a22;

}


/* ------------------------------------------------------
   Infobox
------------------------------------------------------ */

.infobox {

    background: #161a22;

    border: 1px solid #2a2f38;

    border-radius: 10px;

}

.infobox th {

    background: #1f2430;

}


/* ------------------------------------------------------
   Code blocks
------------------------------------------------------ */

pre,
code {

    background: #111;

    color: #e6e6e6;

    overflow-x: auto;

    border-radius: 6px;

}


/* ------------------------------------------------------
   Caption styling
------------------------------------------------------ */

.thumbcaption {

    color: #bbbbbb;

    font-size: 0.9rem;

}


/* ------------------------------------------------------
   Prevent layout overflow
------------------------------------------------------ */

.mw-body-content {

    overflow-x: hidden;

}


/* ======================================================
   RESPONSIVE YOUTUBE / VIDEO EMBEDS
   ====================================================== */

.mw-parser-output iframe {

    max-width: 100%;
    width: 100%;

    border-radius: 10px;

}


/* responsive video wrapper */

.mw-parser-output .embedvideo,
.mw-parser-output .video-container {

    position: relative;

    width: 100%;

    padding-bottom: 56.25%;

    height: 0;

}

.mw-parser-output .embedvideo iframe,
.mw-parser-output .video-container iframe {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

}


/* ======================================================
   MOBILE FIXES
   ====================================================== */

@media (max-width: 720px) {

    .mw-parser-output {

        padding: 16px;

        max-width: 100%;

    }

    /* tables scroll horizontally */

    .mw-parser-output table {

        display: block;

        overflow-x: auto;

    }

    .mw-parser-output table td,
    .mw-parser-output table th {

        white-space: normal;

    }

    /* infobox stacks nicely */

    .infobox {

        float: none;

        width: 100%;

        margin: 1em auto;

    }

}


/* ======================================================
   HERO IMAGE READABILITY
   ====================================================== */

.citizen-page-header::before {

    background: rgba(0,0,0,0.35);

}