MediaWiki:Citizen.css: Difference between revisions

MediaWiki interface page
mNo edit summary
mNo edit summary
Line 36: Line 36:


     --font-family-base: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
     --font-family-base: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
}
.mw-parser-output ul,
.mw-parser-output ol{
  margin-top: 0;
  margin-bottom: 0;
}
}



Revision as of 10:41, 1 June 2023

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

/* START BASIC STYLES */
@import 'https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap';

/* default full width */
:root {
    --width-layout: 100vw;
}

/* colors for dark mode */
:root.skin-citizen-dark {
    --color-surface-0: #121c25;
    --color-surface-1: #2b3b42;
    --color-surface-2: #23313c;
    --color-surface-3: #1b262e;
    --color-surface-4: #23313c;

    --color-base: #c1c5c5;
    --color-base--emphasized:#edeff0;
    --color-base--subtle: #ff820d;

    --color-primary__h: 202;
    --color-primary__s: 82%;
    --color-primary__l: 71%;

    --color-destructive: #ee3355;
    --color-success: #4cb31b;
    --color-warning: #ff820d;

    --color-link-new: #ee3355;

    --border-color-base: rgba(255,255,255,0.2);

    --shadow-strength: 0.3;

    --font-family-base: 'Atkinson Hyperlegible', system-ui, -apple-system, sans-serif;
}

.mw-parser-output ul, 
.mw-parser-output ol{
  margin-top: 0;
  margin-bottom: 0;
}

:root.skin-citizen-dark a {
  --color-link: #79c6f2 ;
}

/* base header styling */
h2 {
  border-bottom: 1px solid var(--border-color-base)
}

/* base list styling */
ul {
  list-style-image: url(https://cdn.wikimg.net/en/tcfwiki/images/e/ef/Bullet-icon.png);
}

/* base kbd styling */
kbd {
    padding: 0 5px;
    border: 1px solid var(--border-color-base);
    margin: 0 2px;
    border-radius: 4px;
}

/* base img styling */
.mw-parser-output .image img {
    max-width: calc(100vw - calc(2 * var(--padding-page)));
    height: auto;
}
/* END BASIC STYLES */

/* START WIKITABLES */
table.wikitable tr th,
table.wikitable th td,
table.wikitable tr td {
  font-size: unset;
}


:root.skin-citizen-dark table.wikitable {
  --color-base--subtle: #edeff0;
}

:root.skin-citizen-dark table.wikitable tr th, 
:root.skin-citizen-dark table.wikitable tr td, 
:root.skin-citizen-dark table.wikitable tbody tr th, 
:root.skin-citizen-dark table.wikitable tbody tr td {
  padding: .2rem .4rem .2rem .4rem;
  margin: auto;
  vertical-align: middle;
  border: 1px solid var(--border-color-base)
}

:root.skin-citizen-dark table.wikitable.more-padding tr th, 
:root.skin-citizen-dark table.wikitable.more-padding tr td, 
:root.skin-citizen-dark table.wikitable.more-padding tbody tr th, 
:root.skin-citizen-dark table.wikitable.more-padding tbody tr td {
  padding: .3rem .5rem .3rem .5rem;
}

:root.skin-citizen-dark table.wikitable tr th, 
:root.skin-citizen-dark table.wikitable tbody tr th {
  font-weight: bold;
  text-align: center;
  background-color: var(--color-surface-2);
}

table.wikitable.left-align tr th, table.wikitable.left-align tbody tr th {
  text-align: left;
}

table.wikitable.center-align tr td, table.wikitable.center-align tbody tr td {
  text-align: center;
}

table.wikitable.cell-hover tr:hover, table.wikitable.cell-hover tbody tr:hover {
  background-color: transparent;
}

table.wikitable.cell-hover tr td:hover, table.wikitable.cell-hover tbody tr td:hover {
  background-color: var(--background-color-quiet--hover);
}

:root.skin-citizen-light table.wikitable tr th, 
:root.skin-citizen-light table.wikitable tbody tr th {
  color: var(--color-base)
}

.jquery-tablesorter.jquery-tablesorter th.headerSort.headerSort {
  background-image: none;
  position: relative
}
 th.headerSort::after {
  content: '_';
  color: rgba(0, 0, 0, 0);
  background-image: url(https://cdn.wikimg.net/en/tcfwiki/images/3/38/Dark_Mode_Sort_both.svg);
  background-position: center ;
  background-repeat: no-repeat;
  user-select: none;
  float: right;
  margin-left: 1px;
}

/* END WIKITABLES */

/* START VARIOUS BUTTONS */
:root.skin-citizen-dark #p-views #ca-ve-edit > a {
  color: var(--color-surface-0)
}

:root.skin-citizen-dark #ca-edit .citizen-ui-icon::before {
  filter: invert(0);
}

:root.skin-citizen-dark #ca-ve-edit > a::before {
  filter: invert(0);
}
:root.skin-citizen-dark #p-views #ca-ve-edit > a:after {
  filter: invert(0) hue-rotate(180deg)
}

:root.skin-citizen-dark #p-views #ca-edit > a {
  color: var(--color-surface-0)
}

:root.skin-citizen-dark #p-views #ca-ve-edit:not(.selected) + #ca-edit {
  border-left-color: var(--color-surface-0)
}

:root.skin-citizen-dark #p-views #ca-edit a:after {
  filter: invert(0) hue-rotate(180deg)
}

:root.skin-citizen-dark .oo-ui-buttonElement-framed.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive > .oo-ui-buttonElement-button {
  color: var(--color-surface-0)
}

:root.skin-citizen-dark .oo-ui-tool.oo-ui-widget-enabled.oo-ui-flaggedElement-primary.oo-ui-flaggedElement-progressive > .oo-ui-tool-link {
  color: var(--color-surface-0);
}

/* END VARIOUS BUTTONS */

/* START INFOBOXES */
.infobox {
background:var(--color-surface-2);
border: 1px solid var(--border-color-base);
padding: var(--space-md);
width: fit-content;
}

.infobox-title {
font-size:1.7em;
line-height: 1 !important;
text-align:center;
font-weight: bold;
}

.infobox-image {
text-align:center;
}

.infobox th {
text-align: left;
vertical-align:top;
width:fit-content;
padding: 0 var(--space-sm)
   
}

.infobox td {
vertical-align:top;
width:fit-content;
text-align:right;
padding: 0 var(--space-sm)
}

.infobox table {
width:100%;
background:transparent!important;
border-spacing:0
}

.infobox tr:nth-child(odd) td,.infobox tr:nth-child(odd) th {
background: var(--color-surface-3)
}

/* END INFOBOXES */

/* START PAGE TOOLS */
:root.skin-citizen-dark #ca-cargo-purge a::after {
  background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.0' width='512.000000pt' height='512.000000pt' viewBox='0 0 512.000000 512.000000' preserveAspectRatio='xMidYMid meet' xmlns='http://www.w3.org/2000/svg'%3E%3Cg transform='translate(0.000000,512.000000) scale(0.100000,-0.100000)' fill='%23000000' stroke='none'%3E%3Cpath d='M 2855 5075 C 2630 5021 2501 4977 2335 4896 C 1577 4529 1143 3710 1102 2570 L 1095 2376 L 964 2505 C 858 2610 813 2664 729 2787 C 673 2871 623 2937 619 2932 C 611 2923 526 2600 506 2500 C 470 2321 458 2028 480 1850 C 569 1131 1019 509 1672 201 C 1876 104 2138 30 2325 15 L 2395 10 L 2725 10 L 2795 15 C 2907 24 3098 66 3226 111 C 3543 221 3808 386 4040 620 C 4378 960 4582 1379 4641 1860 C 4653 1954 4646 2402 4631 2549 L 4625 2613 L 4500 2450 C 4388 2304 4283 2184 4274 2193 C 4272 2195 4275 2212 4280 2231 C 4328 2393 4344 2696 4315 2880 C 4277 3114 4197 3327 4069 3532 C 4018 3614 3819 3889 3810 3890 C 3807 3890 3776 3822 3740 3738 C 3667 3565 3607 3467 3529 3394 C 3387 3261 3238 3257 3106 3381 C 3031 3451 2989 3519 2946 3641 C 2836 3948 2850 4348 2990 4890 C 3018 4997 3043 5093 3046 5103 C 3049 5112 3048 5120 3043 5119 C 3039 5119 2954 5099 2855 5075 Z'/%3E%3C/g%3E%3C/svg%3E ");
}

/* END PAGE TOOLS */

/* START FRONT PAGE */
/* Hide main page default header */
.page-Main_Page.action-view .mw-body-header {
	display: none;
}
@media screen and (hover: none) {
  .nomobile {
    display: none;
  }
}

.home-header {
  text-align: center;
  background: url(https://www.datocms-assets.com/57394/1646331661-tcf_ws_home_02_gameoverview_slide_06.jpg);
  background-size: cover;
  background-position-y: 63%;
  z-index: 1;
  text-align: center;
  position: relative;
  margin-bottom: 1rem;
  margin-top: 4rem;
  border-radius: var(--space-sm);
  padding-top: 1rem;
  padding-bottom: .5rem
}

.home-header__title.home-header__title {
  margin-top: 0rem;
}

.home-header::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background: rgba(0, 0, 0, 0.2);
    left: 0;
    top: 0;
    z-index: -1;
}
.home-header__title {
	margin-top: 0;
	font-size: 1.5rem;
}

.home-header .home-header__subtitle {
	margin-top: 0.4rem;
	color: var( --color-base--subtle );
	font-size: 0.875rem;
}

.home-header__search {
	max-width: 600px;
	padding: 0.6rem 0.8rem;
	margin: 0.8rem auto 0 auto;
	background: var( --color-surface-1 );
	border-radius: 100px;
	box-shadow: var( --box-shadow-card );
	color: var( --color-base--subtle );
	cursor: pointer;
	font-size: 0.875rem;
}

.home-header__searchIcon img {
	margin-right: 0.5rem;
    opacity: var( --opacity-icon-base );
}

.keyboard-text {
	padding: 0 5px;
	border: 1px solid;
	margin: 0 2px;
	border-radius: 4px;
}

html.skin-citizen-dark .home-header__searchIcon img {
	filter: invert(1) hue-rotate(180deg);
}

#home-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 60%;
  margin: auto;
  gap: 1rem;
}

@media screen and (hover: none) {
  .home-card a img {
  display: none;
  }
  
  #home-nav {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    max-width: 90%;

  }
  
  .home-card {
    background-color: var(--color-surface-3);
    border: 1px solid var(--border-color-base)
      width: 100%;
    text-align: center;
    vertical-align: center;
  }
}

@media screen and (hover: hover) {
  .home-card.home-card a img {
	  height: 100%;
    width: 100%;
  }
  
  .home-card {
    border: 1px solid var(--border-color-base);
    border-radius: var(--space-xl);
    height: 8rem;
    width: 8rem;
    position: relative;
    overflow: hidden;
}
  .home-card::before {
    position: absolute;
    pointer-events: none;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    background: rgba(0, 0, 0, .4);
    content: "";
    width: 100%;
    height: 100%;
    border-radius: var(--space-xl);
    z-index: 0;
}

.home-card__foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  font-weight: bold;
  font-size: 1.2rem;

  text-align: center;
  justify-content: center;
  align-items: center;
  display: flex;
  
  pointer-events: none;
  z-index: 1;
}
  .home-card__foreground a {
    color: #edeff0;
  }
}

.home-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
    max-width: 90%;
  margin: auto
}

.cells-3 {
  grid-template-columns: 1fr;
}

.home-grid .grid-cell {
    border: 1px solid var(--border-color-base);
  text-align: left;
  padding: 0 var(--space-xl) var(--space-xl);
  margin-bottom: var(--space-xl);
}

/* double up on specifity */
.grid-header__title.grid-header__title {
  font-size: 2rem;
  margin-top: var(--space-sm);
  text-align: center;
}

@media screen and (hover: hover) {
  .cells-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .home-grid {
    max-width: 80%;
  }
}

.grid-cell iframe {
  border-radius: 12px;
}

/* END FRONT PAGE */

/* START SITENOTICE */
#localNotice {
  border-bottom: 2px solid var(--color-base--subtle);
  padding: 0 var(--space-md);
}

@media screen and (hover: none){
  #localNotice table {
    border-right: none
  }
}
/* END SITENOTICE */

/* START WIKIEDITOR */
.wikiEditor-ui-toolbar {
  background-color: var(--color-surface-2)
}

/* START SEARCH SUGGESTIONS */
.citizen-typeahead-suggestion__thumbnail {
  background-color: transparent;
}

/* END SEARCH SUGGESTIONS */

/* START REPLACETEXT EXTENSION */
.ext-replacetext-searchoptions {
  background-color: var(--color-surface-1);
}

/* END REPLACETEXT EXTENSION */

/* START DISCUSSIONTOOLS EXTENSION */
.ext-discussiontools-ui-replyWidget-preview {
  background-color: var(--color-surface-3);
}
/* END DISCUSSIONTOOLS EXTENSION */

/* START SIDEBAR */
#p-Wiki_Tools ul li#n-Interactive-Map > a::after {
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3C!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --%3E%3Cpath d='M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152V422.8c0 9.8-6 18.6-15.1 22.3L416 503V200.4zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6V451.8L32.9 502.7C17.1 509 0 497.4 0 480.4V209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77V504.3L192 449.4V255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40s17.9 40 40 40z'/%3E%3C/svg%3E%0A");;
}

#p-Wiki_Tools ul li#n-Item-Tracker > a::after {
background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2220%22 height=%2220%22 viewBox=%220 0 20 20%22%3E%3Ctitle%3E recent changes %3C/title%3E%3Cg fill=%22%23000%22%3E %3Ccircle cx=%222%22 cy=%224%22 r=%222%22/%3E %3Ccircle cx=%222%22 cy=%2210%22 r=%222%22/%3E %3Ccircle cx=%222%22 cy=%2216%22 r=%222%22/%3E %3Cpath d=%22M6 3h11v2H6zm0 6h6v2H6zm0 6h2v2H6zm12.76-3.11 1.078-1.112a.556.556 0 0 0 0-.783l-1.855-1.833a.556.556 0 0 0-.783 0l-1.09 1.077 2.65 2.65zm-3.227-2.062L10 15.361V18h2.639l5.533-5.533z%22/%3E %3C/g%3E%3C/svg%3E");
}


#p-Wiki_Tools ul li#n-Progress-Tracker > a::after {
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3C!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --%3E%3Cpath d='M448 160H320V128H448v32zM48 64C21.5 64 0 85.5 0 112v64c0 26.5 21.5 48 48 48H464c26.5 0 48-21.5 48-48V112c0-26.5-21.5-48-48-48H48zM448 352v32H192V352H448zM48 288c-26.5 0-48 21.5-48 48v64c0 26.5 21.5 48 48 48H464c26.5 0 48-21.5 48-48V336c0-26.5-21.5-48-48-48H48z'/%3E%3C/svg%3E%0A");;
}


#p-Wiki_Tools ul li#n-Forge-Simulator > a::after {
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3C!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --%3E%3Cpath d='M413.5 237.5c-28.2 4.8-58.2-3.6-80-25.4l-38.1-38.1C280.4 159 272 138.8 272 117.6V105.5L192.3 62c-5.3-2.9-8.6-8.6-8.3-14.7s3.9-11.5 9.5-14l47.2-21C259.1 4.2 279 0 299.2 0h18.1c36.7 0 72 14 98.7 39.1l44.6 42c24.2 22.8 33.2 55.7 26.6 86L503 183l8-8c9.4-9.4 24.6-9.4 33.9 0l24 24c9.4 9.4 9.4 24.6 0 33.9l-88 88c-9.4 9.4-24.6 9.4-33.9 0l-24-24c-9.4-9.4-9.4-24.6 0-33.9l8-8-17.5-17.5zM27.4 377.1L260.9 182.6c3.5 4.9 7.5 9.6 11.8 14l38.1 38.1c6 6 12.4 11.2 19.2 15.7L134.9 484.6c-14.5 17.4-36 27.4-58.6 27.4C34.1 512 0 477.8 0 435.7c0-22.6 10.1-44.1 27.4-58.6z'/%3E%3C/svg%3E%0A");
}


#p-Wiki_Tools ul li#n-Weapon-Calculator > a::after {
background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3C!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --%3E%3Cpath d='M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM96 64H288c17.7 0 32 14.3 32 32v32c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM64 224c0-17.7 14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32s-32-14.3-32-32zm32 64c17.7 0 32 14.3 32 32s-14.3 32-32 32s-32-14.3-32-32s14.3-32 32-32zM64 416c0-17.7 14.3-32 32-32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32zM192 192c17.7 0 32 14.3 32 32s-14.3 32-32 32s-32-14.3-32-32s14.3-32 32-32zM160 320c0-17.7 14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32s-32-14.3-32-32zM288 192c17.7 0 32 14.3 32 32s-14.3 32-32 32s-32-14.3-32-32s14.3-32 32-32zM256 320c0-17.7 14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32s-32-14.3-32-32zm32 64c17.7 0 32 14.3 32 32s-14.3 32-32 32s-32-14.3-32-32s14.3-32 32-32z'/%3E%3C/svg%3E%0A");
}

#p-Wiki_Tools ul li#n-Loadout-Generator > a::after {
background-image: linear-gradient(transparent,transparent),url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2224%22 height=%2224%22 viewBox=%220 0 24 24%22%3E%3Cg fill=%22%23000%22%3E %3Cpath fill-rule=%22evenodd%22 d=%22M17 9a2 2 0 1 1 .001-4.001A2 2 0 0 1 17 9m0 10a2 2 0 1 1 .001-4.001A2 2 0 0 1 17 19m-5-5a2 2 0 1 1 .001-4.001A2 2 0 0 1 12 14M7 9a2 2 0 1 1 .001-4.001A2 2 0 0 1 7 9m0 10a2 2 0 1 1 .001-4.001A2 2 0 0 1 7 19M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2%22/%3E %3C/g%3E%3C/svg%3E");;
}

/* END SIDEBAR */

/* BEGIN ACE EDITOR */
.ace-tm .ace_keyword {
  color: orange
}

.ace-tm .ace_constant.ace_numeric {
  color: red;
}

.ace-tm .ace_support.ace_function {
  color: pink
}
/* END ACE EDITOR */

/* BEGIN CATEGORY BUTTONS */
:root.skin-citizen-dark .catlinks li > a:hover {
  color: var(--color-surface-0);
}

/* END CATEGORY BUTTONS */
Cookies help us deliver our services. By using our services, you agree to our use of cookies.