More actions
Content deleted Content added
wikitable box shadow none |
overflow wrapper |
||
(6 intermediate revisions by the same user not shown) | |||
Line 54: | Line 54: | ||
@media { |
@media { |
||
.citizen-overflow-wrapper { |
.citizen-overflow-wrapper { |
||
overflow-x: |
overflow-x: auto; |
||
max-width: none; |
|||
} |
} |
||
} |
} |
||
Line 367: | Line 368: | ||
background-color: var(--color-surface-2); |
background-color: var(--color-surface-2); |
||
} |
} |
||
/* The box-shadow looks like the border. Having border:none |
|||
still gives appearance of having a border. This will hide |
|||
⚫ | |||
the box-shadow of the wikitable so there are no outer edges */ |
|||
⚫ | |||
box-shadow: none; |
box-shadow: none; |
||
} */ |
|||
@media screen { |
|||
.citizen-overflow-wrapper:has.citizen-overflow-content > .wikitable { |
|||
margin-top: 0; /*var(--space-md);*/ |
|||
box-shadow: none; /*var(--box-shadow-border);*/ |
|||
} |
|||
} |
} |
||
Line 376: | Line 386: | ||
*******************************************************/ |
*******************************************************/ |
||
table.citizen-basictable { |
table.citizen-basictable { |
||
background-color: var(--color-surface-1); |
/*background-color: var(--color-surface-1);*/ |
||
border: 1px solid var(--border-color-base); |
border: 1px solid var(--border-color-base); |
||
color: var(--color-base-emphasized); |
color: var(--color-base-emphasized); |
||
Line 387: | Line 397: | ||
table.citizen-basictable > * > tr > th, |
table.citizen-basictable > * > tr > th, |
||
table.citizen-basictable > * > tr > td { |
table.citizen-basictable > * > tr > td { |
||
background-color: var(--color-surface-1); |
/*background-color: var(--color-surface-1);*/ |
||
/* border: 1px solid var(--border-color-base);*/ |
|||
padding: 0.2em 0.4em; |
padding: 0.2em 0.4em; |
||
text-align: left; |
text-align: left; |
||
Line 396: | Line 406: | ||
table.citizen-basictable > tr > th, |
table.citizen-basictable > tr > th, |
||
table.citizen-basictable > * > tr > th { |
table.citizen-basictable > * > tr > th { |
||
background-color: var(--color-surface-1); |
/*background-color: var(--color-surface-1);*/ |
||
text-align: center; |
text-align: center; |
||
} |
} |
Latest revision as of 20:50, 18 August 2024
/* All CSS here will be loaded for users of the Citizen skin */
/******************************************************
Headings colour and sizes
*******************************************************/
h1 {
font-size: 1.6rem;
color: var(--color-base--emphasized);
margin-top: 0.6em;
margin-bottom: 0.25em;
}
h2 {
font-size: 1.3rem;
color: var(--color-base--emphasized);
margin-top: 0.6em;
margin-bottom: 0.25em;
}
h3 {
font-size: 1.2rem;
color: var(--color-base--emphasized);
margin-top: 0.6em;
margin-bottom: 0.25em;
}
h4 {
font-size: 1.1rem;
color: var(--color-base--emphasized);
margin-top: 0.6em;
margin-bottom: 0.25em;
}
h5 {
font-size: 1rem;
color: var(--color-base--emphasized);
margin-top: 0.6em;
margin-bottom: 0.25em;
}
/******************************************************
Spacing from content around headings / bullets
*******************************************************/
.mw-content-ltr ul, .mw-content-rtl .mw-content-ltr ul {
margin: 2px 0 20px 20px;
}
/******************************************************
Allow text, tables and images to sit side by side
*******************************************************/
.citizen-table-wrapper {
overflow-x: initial;
}
@media {
.citizen-overflow-wrapper {
overflow-x: auto;
max-width: none;
}
}
/******************************************************
Styling for responsive cards - similar to flex boxes
Mostly from the awesome Star Citizen Wiki
*******************************************************/
#card-nav {
margin-top: 1rem;
}
.card-grid {
display: grid;
grid: auto-flow dense/repeat( auto-fit, minmax( 9.375rem, 1fr ) );
grid-auto-rows: minmax( 3rem, auto );
grid-gap: var( --space-xs );
}
.card-item {
position: relative;
padding: var( --space-md );
background: var( --color-surface-1 );
border: 1px solid var( --border-color-base );
border-radius: 8px;
box-shadow: 0 3px 6px rgba( 0, 0, 0, 0.04 ), 0 3px 6px rgba( 0, 0, 0, 0.0575 );
font-size: 0.925rem;
}
.card__background {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #242a31;
border-radius: 8px;
}
.card__background:after {
position: absolute;
pointer-events: none;
top: 0;
bottom: 0;
left: 0;
right: 0;
display: block;
background: linear-gradient(to right,#000,transparent);
content: "";
}
.card__background img {
width: 100%;
height: 100%;
object-fit: cover;
object-position: center;
}
.card__foreground {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
padding: var( --space-md );
display: flex;
flex-direction: column;
justify-content: center;
gap: var( --space-xxs );
color: #fff;
line-height: var( --line-height-xs );
pointer-events: none;
}
.card-item.card--button {
overflow: hidden;
padding: 0;
background: #242a31;
border: 0;
}
.card--button a {
display: flex;
height: 100%;
justify-content: center;
align-items: center;
padding: 0 var( --space-md );
background: transparent;
color: #fff;
font-weight: 500;
}
.card--button .card__background a {
padding: 0;
}
/*
.card--button img {
transition: transform 0.8s ease;
}*/
.card--button:hover img {
transform: scale(1.1);
}
/**************************************************
* Styling for Main Page header and search bar
From Star Citizen Wiki
*************************************************/
.home-header {
position: relative;
margin-top: -1rem;
margin-bottom: 2rem;
padding-top: 1rem;
line-height: var( --line-height-sm );
}
.home-header:before {
content: "";
position: absolute;
top: 1rem;
bottom: 3.5rem;
left: 0;
right: 0;
opacity: 0.1;
/*background-image: url(https://static.wikiforge.net/thegreatwarwikitide/0/00/Poppy_%28logo%29.png);*/
background-repeat: no-repeat;
background-position: right;
pointer-events: none;
}
.home-header__pretitle {
margin-bottom: var( --space-xs );
color: var( --color-base--subtle );
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.home-header__title {
margin: 0;
font-size: 3rem;
text-transform: uppercase;
letter-spacing: 0.025em;
line-height: 1;
}
.home-header__subtitle {
margin-top: var( --space-xs );
font-size: 0.875rem;
}
.home-header__search {
padding: var( --space-md );
margin-top: var( --space-lg );
margin-bottom: var( --space-md );
margin-left: auto;
margin-right: auto;
border: 1px solid;
border-color: var( --border-color-base--darker );
border-radius: 10px; /*var( --border-radius--pill );*/
cursor: pointer;
font-size: 0.875rem;
font-weight: var( --font-weight-medium );
text-align: center;
}
.home-header__search:hover {
background-color: var( --background-color-quiet--hover );
}
.home-header__searchIcon img {
margin-right: var( --space-md );
opacity: var( --opacity-icon-base );
}
/* Fix vertical alignment problem */
.home-header__search .keyboard-key {
display: inline;
padding-top: 0.1em;
padding-bottom: 0.1em;
}
html.skin-citizen-dark /*.home-header:before,*/
html.skin-citizen-dark .home-header__searchIcon img {
filter: invert( 1 );
}
@media ( hover: none ) {
.desktoponly {
display: none;
}
}
/**************************************************
* Styling for responsive flex boxes
*************************************************/
/* * {
box-sizing: border-box;
} */
.flex-container {
display: flex;
flex-direction: row;
}
.flex-item {
background-color:var(--color-surface-1);
border:1px solid var(--border-color-base);
color:var(--color-base-emphasized);
border-radius: var( --border-radius--medium ); /*8px*/
box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.03 ), 0 1px 2px rgba( 0, 0, 0, 0.06 );
transition: box-shadow 0.2s ease;
padding: 16px;
margin: 5px;
flex: 33.3%;
box-sizing: border-box;
font-size: 0.875em;
}
.flex-item:hover {
box-shadow: 0 10px 20px rgba( 0, 0, 0, 0.0475 ), 0 6px 6px rgba( 0, 0, 0, 0.0575 );
}
.flex-title {
margin-top: 0;
margin-bottom: 0.8rem;
color: var(--color-base--emphasized);
font-size: 1.25rem;
font-weight: 600;
line-height: 1.2;
}
.flex-button {
background: #2c9925; /*var( --color-base );*/
border-radius: var( --border-radius--medium );
transition: opacity 0.2s ease;
width: 40%;
margin-left:auto;
margin-right:auto;
}
.flex-button a {
display: block;
padding: 0.6rem;
background: none !important;
color: #fff;
font-size: 0.875rem;
font-weight: 600;
letter-spacing: 0.25px;
text-align: center;
transition: background 0.2s ease, color 0.2s ease;
}
.flex-button:hover {
opacity: 0.8;
}
/* Responsive layout - makes a one column-layout instead of two-column layout */
@media (max-width: 700px) {
.flex-container {
flex-direction: column;
}
}
/*********************************************************
* Styling for a responsive image gallery with 4 coloumns
*********************************************************/
.row {
display: flex;
flex-wrap: wrap;
padding: 0 5px;
}
/* Create four equal columns that sits next to each other */
.column {
flex: 23%;
max-width: 100%;
background-color:var(--color-surface-1);
border:1px solid var(--border-color-base);
color:var(--color-base-emphasized);
border-radius: 8px;
box-shadow: 0 3px 6px rgba(0,0,0,0.04),0 3px 6px rgba(0,0,0,0.0575);
padding: 5px 10px;
margin: 5px;
}
.column img {
margin-top: 8px;
vertical-align: middle;
}
/* Responsive layout - makes a two column-layout instead of four columns */
@media (max-width: 800px) {
.column {
flex: 48%;
max-width: 100%;
}
}
/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media (max-width: 600px) {
.column {
flex: 100%;
max-width: 100%;
}
}
/************************************************************
* Citizen wikitable adjustments
*******************************************************/
table.wikitable th {
background-color: var(--color-surface-2);
}
/* The box-shadow looks like the border. Having border:none
still gives appearance of having a border. This will hide
the box-shadow of the wikitable so there are no outer edges */
/*table.wikitable {
box-shadow: none;
} */
@media screen {
.citizen-overflow-wrapper:has.citizen-overflow-content > .wikitable {
margin-top: 0; /*var(--space-md);*/
box-shadow: none; /*var(--box-shadow-border);*/
}
}
/************************************************************
* citizen-basictable of plain white for clean look general use
*******************************************************/
table.citizen-basictable {
/*background-color: var(--color-surface-1);*/
border: 1px solid var(--border-color-base);
color: var(--color-base-emphasized);
text-align: left;
margin: 5px 0;
}
table.citizen-basictable > tr > th,
table.citizen-basictable > tr > td,
table.citizen-basictable > * > tr > th,
table.citizen-basictable > * > tr > td {
/*background-color: var(--color-surface-1);*/
/* border: 1px solid var(--border-color-base);*/
padding: 0.2em 0.4em;
text-align: left;
font-size: 90%;
}
table.citizen-basictable > tr > th,
table.citizen-basictable > * > tr > th {
/*background-color: var(--color-surface-1);*/
text-align: center;
}
table.citizen-basictable > caption {
font-weight: bold;
}
/********************************************************
* Blockquote styling for Citizen skin
*******************************************************/
blockquote {
color: var(--color-base--subtle);
padding: 8px 32px;
margin: 8px 40px;
font-style: normal;
}
/*********************************************************
* Main icon/logo to see on light and dark skin
********************************************************/
.citizen-header__logo img {
filter:invert(50%);
}
.citizen-drawer__logo img {
filter:invert(50%);
}
/*********************************************************
* Icon/logo after wordmark to see on light/dark skin
********************************************************/
.mw-logo-wordmark {
display: flex;
align-items: center;
gap: var( --space-sm );
}
.mw-logo-wordmark:after {
content: "";
width: 1em;
height: 1em;
display: block;
background-image: url( https://upload.wikimedia.org/wikipedia/commons/3/3c/OOjs_UI_icon_advanced_apex.svg );
filter: invert(50%);
background-size: 1.1em;
}
/* Make references smaller */
ol.references,
div.reflist,
div.refbegin {
font-size: 90%; /* Default font-size */
margin-bottom: 0.5em;
}
div.refbegin-100 {
font-size: 100%; /* Option for normal fontsize in {{refbegin}} */
}
div.reflist ol.references {
font-size: 100%; /* Reset font-size when nested in div.reflist */
list-style-type: inherit; /* Enable custom list style types */
}
/*********************************************************
* Hide page info in footer (last modified etc.) Copyright
can be added to Citizen footer instead.
********************************************************/
.page-info {
display: none;
}
/*
* Menu
* Rich format menu to have more hierarchy
*/
/* Remove bottom spacing as it is handled in footer portlet */
/*********************************************************
* Menu for horizontal links. Credit Star Citizen Wiki
********************************************************/
.citizen-drawer__menu {
margin-bottom: 0;
padding-bottom: 0;
}
.mw-portlet-External {
position: sticky;
bottom: 0;
margin-top: var( --space-md );
padding: var( --space-xs ) 0;
border-top: 1px solid var( --border-color-base );
background: var( --color-surface-1 );
font-size: var( --font-size-x-small );
grid-column: 1 / -1;
white-space: nowrap;
}
.mw-portlet-External .citizen-menu__heading {
display: none;
}
.mw-portlet-External ul {
display: flex;
overflow: auto;
}
.mw-portlet-External .mw-list-item a {
gap: 0;
}
/* Label */
.citizen-drawer__menu [id^="n-sidebar-label-"] a {
pointer-events: none;
margin-left: var( --space-xs );
padding-left: var( --space-md );
padding-right: var( --space-xs );
border-left: 1px solid var( --border-color-base );
border-radius: 0;
letter-spacing: 0.05em;
font-weight: var( --font-weight-normal );
color: var( --color-base--subtle ) !important;
}
/* Icons */
.citizen-drawer__menu [id^="n-sidebar-icon-"] a {
font-size: 0;
}
.citizen-drawer__menu [id^="n-sidebar-icon-"] a:before {
display: block;
content: "";
width: var( --size-icon );
height: var( --size-icon );
background: transparent center/contain no-repeat;
/*opacity: var( --opacity-icon-base );*/
/*filter: var( --filter-invert );*/
}
#n-sidebar-icon-poppy a:before {
background-image: url( https://static.miraheze.org/thelonsdalebattalionwiki/2/21/Poppy_135px.png )
}
/******************************************************
Hide the Managewiki links in the sidebar
*******************************************************/
#p-managewiki-sidebar-header {
display: none;
}