MediaWiki:Mobile.css: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
Line 541: | Line 541: | ||
.subpage-tabs-main { | .subpage-tabs-main { | ||
position: relative; | position: relative; | ||
top: - | top: -176px; | ||
margin-bottom: - | margin-bottom: -56px; | ||
z-index: 9000; | z-index: 9000; | ||
} | } |
Revision as of 08:10, 2 March 2024
/* All CSS here will be loaded for users of the mobile site */
/* =============================
Version 1.0 February 2024
=============================
The mobile skin, primarily designed by
[[User:SOTO]], with important early
additions by [[User:Bongolium500]],
uses Citizen as its base.
*/
/*
===================
CSS IMPORTS
=================== */
@import url("https://tardis.wiki/w/load.php?modules=ext.gadget.infoboxes-mobile&only=styles"); /* import infoboxes stylesheet */
@import url("https://tardis.wiki/w/load.php?modules=ext.gadget.modularStyles&only=styles"); /* import all other split-out stylesheet */
/*
===================
Font IMPORTS
=================== */
/* latin */
@font-face {
font-family: 'Della Respira';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/dellarespira/v22/RLp5K5v44KaueWI6iEJQBiGPdf4YuoMtXHs.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/mavenpro/v33/7Au9p_AqnyWWAxW2Wk3GwmQIAFg.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/mavenpro/v33/7Au9p_AqnyWWAxW2Wk3Gw2QIAFg.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/mavenpro/v33/7Au9p_AqnyWWAxW2Wk3GzWQI.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* vietnamese */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 700;
src: url(https://fonts.gstatic.com/s/mavenpro/v33/7Au9p_AqnyWWAxW2Wk3GwmQIAFg.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 700;
src: url(https://fonts.gstatic.com/s/mavenpro/v33/7Au9p_AqnyWWAxW2Wk3Gw2QIAFg.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Maven Pro';
font-style: normal;
font-weight: 700;
src: url(https://fonts.gstatic.com/s/mavenpro/v33/7Au9p_AqnyWWAxW2Wk3GzWQI.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
font-family: 'Nunito';
font-style: italic;
font-weight: 200 1000;
font-display: swap;
src: url(https://fonts.gstatic.com/s/nunito/v26/XRXX3I6Li01BKofIMNaORs71cA.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Nunito';
font-style: italic;
font-weight: 200 1000;
font-display: swap;
src: url(https://fonts.gstatic.com/s/nunito/v26/XRXX3I6Li01BKofIMNaHRs71cA.woff2) format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
font-family: 'Nunito';
font-style: italic;
font-weight: 200 1000;
font-display: swap;
src: url(https://fonts.gstatic.com/s/nunito/v26/XRXX3I6Li01BKofIMNaMRs71cA.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Nunito';
font-style: italic;
font-weight: 200 1000;
font-display: swap;
src: url(https://fonts.gstatic.com/s/nunito/v26/XRXX3I6Li01BKofIMNaNRs71cA.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Nunito';
font-style: italic;
font-weight: 200 1000;
font-display: swap;
src: url(https://fonts.gstatic.com/s/nunito/v26/XRXX3I6Li01BKofIMNaDRs4.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 200 1000;
font-display: swap;
src: url(https://fonts.gstatic.com/s/nunito/v26/XRXV3I6Li01BKofIOOaBXso.woff2) format('woff2');
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 200 1000;
font-display: swap;
src: url(https://fonts.gstatic.com/s/nunito/v26/XRXV3I6Li01BKofIMeaBXso.woff2) format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 200 1000;
font-display: swap;
src: url(https://fonts.gstatic.com/s/nunito/v26/XRXV3I6Li01BKofIOuaBXso.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 200 1000;
font-display: swap;
src: url(https://fonts.gstatic.com/s/nunito/v26/XRXV3I6Li01BKofIO-aBXso.woff2) format('woff2');
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Nunito';
font-style: normal;
font-weight: 200 1000;
font-display: swap;
src: url(https://fonts.gstatic.com/s/nunito/v26/XRXV3I6Li01BKofINeaB.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@font-face {
font-family: 'Mitr';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url(https://fonts.gstatic.com/s/mitr/v11/pxiEypw5ucZF8eMcJJfecnFHGPc.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/*================== =========
COLOUR VARIABLES
These work alongside, but
diverge from those set at
[[MediaWiki:Timeless.css]]
and
[[MediaWiki:Theme-light.css]]
==================== */
:root.skin-citizen-dark {
--text-color: #ffffff;
--primary-1: #0e2348;
--primary-2: #0f2651;
--primary-3: #1a2e53;
--primary-4: #0a1b3c;
--primary-5: #2f4065;
--primary-6: #2c406b;
--primary-7: #355086;
--primary-8: #25437e;
--primary-9: #192e53;
--primary-10: #1d3361;
--primary-11: #162e5e;
--accent-1: #c7b286;
--accent-2: #d5ac59;
--accent-3: #bfa773;
--accent-4: #e5c076;
--accent-5: #dcd697;
--accent-6: #506593;
--alt-text-color: #000000;
--contrast-color-1: #8595b5;
--contrast-color-1--rgb: 133,149,181;
--contrast-color-2: #e3e5e7;
--contrast-color-2--rgb: 227,229,231;
--contrast-color-3: #526586;
--contrast-color-3--rgb: 82,101,134;
--contrast-color-4: #aec2da;
--contrast-color-4--rgb: 174,194,218;
--border-shade: #b6c1d6;
--border-shade-2: #5d6b84;
--background-shade: #0a1b3c66;
--opacity-icon-base: 0.65;
}
:root.skin-citizen-light {
--text-color: #0e191a;
--primary-1: #fff4ef;
--primary-2: #90a2bf;
--primary-3: #4f6087;
--primary-4: #bec9da;
--primary-5: #c5d0e6;
--accent-1: #556375;
--accent-2: #47639E;
--accent-3: #46619b;
--accent-4: #334671;
--accent-5: #324b83;
--accent-6: #506593;
--accent-7: #3f5b96;
--accent-8: #5d6b84;
--accent-9: #2a498a;
--accent-10: #203c6e; /*192e53*/
--accent-11: #283f67;
--alt-text-color: #ffffff;
--alt-text-color-2: #dde2ed;
--contrast-color-1: #6b778f;
--contrast-color-1--rgb: 107,119,143;
--contrast-color-2: #e5dfdf;
--contrast-color-2--rgb: 229,223,223;
--contrast-color-3: #ccddff;
--contrast-color-3--rgb: 204,221,255;
--contrast-color-4: #ebebeb;
--contrast-color-4--rgb: 235,235,235;
--contrast-color-5: #687a99;
--contrast-color-5-rgb: 104,122,153;
--contrast-color-6: #bec7d9;
--contrast-color-6-rgb: 190,199,217;
--contrast-color-7: #4a628c;
--contrast-color-8: #b8c2d4;
--contrast-color-9: #3f4a5c;
--contrast-color-10: #4a628c;
--border-shade: #25499c;
--border-shade-2: #355086;
--opacity-icon-base: 0.65;
}
@media screen {
:root.skin-citizen-dark,
:root.skin-citizen-light {
--color-surface-0: var(--primary-1);
--color-surface-1: var(--primary-2);
--color-surface-2: var(--primary-3);
--color-surface-3: var(--primary-4);
--color-surface-4: var(--primary-5);
--color-primary: var(--accent-1);
--color-primary--hover: var(--accent-2);
--color-primary--active: var(--accent-3);
/*--background-color-primary--hover: hsl(var(--color-primary__h),var(--color-primary__s),15%);
--background-color-primary--active: hsl(var(--color-primary__h),var(--color-primary__s),20%);*/
--background-color-overlay: var(--primary-2);
--background-color-overlay--lighter: var(--primary-3);
/*--color-surface-2--hover: hsl(var(--color-primary__h),30%,19%);
--color-surface-2--active:*/
}
}
a {
--color-link: var(--accent-2);
--color-link--hover: var(--accent-1);
--color-link--active: var(--accent-1);
}
.mw-parser-output {
overflow: visible;
}
.skin-citizen-dark .mw-parser-output section.collapsible-block {
background: var(--background-shade);
}
/*==================
Font matters
==================== */
/*h1.firstHeading {
font-family: "Della Respira","Nunito","Rubik",sans-serif;
font-weight: 400;
}*/
body {
font-family: "Nunito","Rubik",sans-serif;
}
.mw-parser-output p {
font-size: 15.7px;
}
.mw-parser-output p b,
.portable-infobox b,
.navbox b {
font-weight: 800;
}
.mw-logo-wordmark,
h1.mw-first-heading {
font-family: "Maven Pro","Nunito","Rubik",sans-serif;
}
.citizen-body-header--sticky .mw-first-heading {
font-family: "Maven Pro","Nunito","Rubik",sans-serif;
font-weight: 800;
}
#tech {
font-family: "Maven Pro","Nunito","Rubik",sans-serif;
line-height: inherit;
}
.mw-editform .mw-ui-input {
font-family: monospace;
background: var(--primary-9)!important;
}
/*.citizen-footer {
font-family: "Maven Pro","Nunito","Rubik",sans-serif;
}*/
.citizen-page-container {
top: 45px;
position: relative;
}
/* =-=-=-=-=-=-=-=-=-=-=-=
HEADER
=-=-=-=-=-=-=-=-=-=-=-= */
.citizen-header {
background: var(--primary-3);
top: 0;
bottom: auto;
}
.citizen-header__logo .mw-logo-icon {
width: 60px;
height: 50px;
position: relative;
top: -5px;
left: -1px;
}
.skin-citizen-dark .citizen-header__logo .mw-logo-icon {
left: 4.87px;
}
.skin-citizen-dark .citizen-header {
padding-left: 7.8px;
}
.skin-citizen-light .citizen-header {
background: var(--accent-5);
}
@media screen and (min-width: 1120px) {
.citizen-header {
bottom: 0;
width: 70px;
padding-top: 27px;
}
.citizen-header__logo .mw-logo-icon {
left: -7px;
/* left: 0.665px; */
top: -6px;
width: 66px;
height: auto;
}
.skin-citizen-light .citizen-header {
padding-left: 8.76px;
}
}
@media screen and (max-width: 1119px) {
.citizen-scroll--down .citizen-header {
transform: translateY(-100%);
}
}
.citizen-header__button {
width: 50px;
contain: layout;
}
.skin-citizen-light .citizen-header__buttonIcon,
.skin-citizen-light .citizen-header .citizen-ui-icon {
filter: invert(1);
}
.skin-citizen-dark .citizen-header__button {
filter: brightness(110.55%);
opacity: 0.97;
}
.skin-citizen-light .citizen-header__button {
filter: brightness(129%);
}
#citizen-drawer__checkbox:checked ~ .citizen-drawer__button,
.citizen-header .citizen-menu-checkbox-checkbox ~ .citizen-header__button::before{
background: none;
}
.skin-citizen-light .citizen-search__card {
background: var(--contrast-color-4);
}
.skin-citizen-light .citizen-search-box .citizen-ui-icon {
filter: none;
}
.skin-citizen-dark .citizen-body-header--sticky .mw-body-header::before {
background: var(--primary-6);
}
.skin-citizen-light .citizen-body-header--sticky .mw-body-header::before {
background: var(--accent-3);
}
.skin-citizen-light .citizen-body-header--sticky .mw-body-header .mw-first-heading .mw-page-title-namespace,
.skin-citizen-light .citizen-body-header--sticky .mw-body-header .mw-first-heading .mw-page-title-parenthesis {
color: var(--alt-text-color-2)!important;
}
.skin-citizen-light .citizen-body-header--sticky .mw-body-header .mw-first-heading .mw-page-title-separator {
color: var(--primary-5)!important;
}
.citizen-body-header--sticky .mw-body-header .mw-first-heading {
color: white!important;
}
.mw-parser-output a.external::after {
content: none;
}
.citizen-userMenu__card,
#citizen-pref-panel,
.citizen-drawer__card {
bottom: unset !important;
top: 50px !important;
}
@media screen and (max-width: 1119px) {
.citizen-body-header--sticky .mw-body-header {
top: 33px;
max-height: 20px;
transform: translateY(66%);
}
}
.citizen-body-container .pullout-wrapper {
display: none;
}
/* =-=-=-=-=-=-=-=-=-=-=-=
FOOTER
=-=-=-=-=-=-=-=-=-=-=-= */
.skin-citizen-light .citizen-footer {
background: var(--contrast-color-2);
}
/* =-=-=-=-=-=-=-=-=-=-=-=
ARTICLE TITLE
=-=-=-=-=-=-=-=-=-=-=-= */
.skin-citizen-light .mw-first-heading .mw-page-title-namespace {
color: var(--contrast-color-9);
}
.skin-citizen-light .ns-12 .mw-first-heading .mw-page-title-namespace,
.skin-citizen-light .ns-2 .mw-first-heading .mw-page-title-namespace,
.skin-citizen-light .ns-1 .mw-first-heading .mw-page-title-namespace,
.skin-citizen-light .ns-5 .mw-first-heading .mw-page-title-namespace,
.skin-citizen-light .ns-15 .mw-first-heading .mw-page-title-namespace,
.skin-citizen-light .mw-first-heading .mw-page-title-parenthesis {
color: var(--contrast-color-10);
}
/* =-=-=-=-=-=-=-=-=-=-=-=
ARTICLE SPACE
=-=-=-=-=-=-=-=-=-=-=-= */
.smw-editpage-help,
#box {
border-color: var(--border-shade-2);
border-radius: 10px;
padding-bottom: 19px;
}
.skin-citizen-light .smw-editpage-help,
.skin-citizen-light #box {
background: var(--contrast-color-7);
border-color: var(--contrast-color-8);
border-width: 7px;
color: var(--contrast-color-6);
}
.skin-citizen-light .smw-editpage-help a,
.skin-citizen-light .smw-editpage-help b,
.skin-citizen-light #box a,
.skin-citizen-light #box b {
color: var(--primary-1);
}
.mobile-no-display,
#subpage-article #subpage-article-tab,
#subpage-article #subpage-talk-tab {
display: none;
}
/*.subpage-tabs-main {
border-collapse: collapse;
border: none;
background: none;
}
.subpage-tabs-main tr {
display: flex;
flex-wrap: wrap;
}
.subpage-tabs-tab {
font-size: .97em;
width: 32%!important;
border: 3px solid white !important;
margin-right: 2.6px;
margin-bottom: 3px;
padding: 9px 0px !important;
}
.skin-citizen-dark .subpage-tabs-tab {
background: var(--primary-7);
}*/
.subpage-tabs-main {
position: relative;
top: -176px;
margin-bottom: -56px;
z-index: 9000;
}
.portable-infobox .pi-data-label + p {
padding-top: 8.9px;
font-size: 14.8px;
}
.portable-infobox .pi-title + p {
margin-top: -16px;
padding-top: 7px;
}
.portable-infobox img.pi-image-thumbnail {
padding-top: 4px;
width: 320px;
}
.portable-infobox .pi-header + p {
margin-top: 5px;
margin-bottom: 4px;
padding: 2.4px;
}
.pi-data-value .embedvideo {
width: 324px!important;
height: 185px!important;
margin-top: 3px!important;
}
.embedvideo-wrapper {
height: 182px!important;
}
.embedvideo-loader__service {
font-weight: 300;
}
.skin-citizen-light .portable-infobox .story-nav {
background: var(--contrast-color-7);
}
.dabtag {
clear: right;
}
h2:first-of-type {
clear: left;
}
div#article-type {
border: 1px solid var(--accent-2);
padding: 5px;
letter-spacing: .5px;
text-align: left;
min-height: 55px;
min-width: 528.5px;
margin: 0px 0px 10px 0px;
}
div#article-type p {
margin-left: 205px;
line-height: 11px;
font-size: 11px;
text-align: left;
font-weight: normal;
font-style: normal;
}
@media screen and (max-width: 720px) {
div#article-type p {
margin-left: 0;
color: var(--alt-text-color);
}
div#article-type {
background: var(--contrast-color-3!important);
max-width: 100%;
}
}
.skin-citizen-light .portable-infobox .pi-title + p {
background: var(--accent-6);
}
/* =-=-=-=-=-=-=-=-=-=-=-=
ARCHIVE TOOL
=-=-=-=-=-=-=-=-=-=-=-= */
#archstrip table, .archstrip table,
#archstrip td, .archstrip td {
background-color:transparent;
color:#FFF;
}
#archstrip,
.archstrip {
background: #012c57;
overflow: visible;
padding: 10px 20px;
position: relative;
font-family:'Gill Sans', Verdana, sans-serif;
text-transform:uppercase;
letter-spacing:3px;
border:2px #fff solid;
float:right;
line-height:110%;
color:#fff;
max-width:250px;
}
/* =-=-=-=-=-=-=-=-=-=-=-=
Main page fixes
=-=-=-=-=-=-=-=-=-=-=-= */
.skin-citizen-light .mainpage-box-about .header,
.skin-citizen-light .mainpage-box-characters .header,
.skin-citizen-light .mainpage-box-how-to-DW .header,
.skin-citizen-light .mainpage-box-featured-videos .header,
.skin-citizen-light .mainpage-box-series .header {
color: var(--accent-9);
border-bottom-color: var(--accent-1);
}
.mainpage .gallerybox img {
width: auto;
margin: 0!important;
}
.mainpage-box-characters {
width: 458px;
margin-left: -5px;
}
.citizen-body-container .mainpage-box-characters .gallerytext {
left: -55px;
top: -15px;
}
.skin-citizen-light #ca-edit > a, .skin-citizen-light #ca-ve-edit > a {
background: var(--accent-6);
}
.citizen-overflow--left,
.citizen-overflow--right,
.citizen-overflow--left.citizen-overflow--right {
-webkit-mask-image: none;
mask-image: none;
}