mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-15 18:40:05 +00:00
276 lines
4 KiB
Plaintext
276 lines
4 KiB
Plaintext
/*
|
|
* Framework
|
|
*/
|
|
html {
|
|
scroll-padding-top: ~'calc(var(--height-header) + 20px)'; // fixed header offset, supported by major browsers
|
|
}
|
|
|
|
html,
|
|
body {
|
|
min-height: 100%;
|
|
padding: 0;
|
|
margin: 0;
|
|
background: var( --background-color-dp-00 );
|
|
color: var( --color-base );
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
color: var( --color-base--emphasized );
|
|
}
|
|
|
|
table {
|
|
display: block;
|
|
overflow: auto;
|
|
max-width: 100vw;
|
|
}
|
|
|
|
hr {
|
|
display: none;
|
|
}
|
|
|
|
ul {
|
|
list-style-type: square;
|
|
}
|
|
|
|
ul,
|
|
ol {
|
|
padding: 0;
|
|
}
|
|
|
|
p,
|
|
ul,
|
|
ol,
|
|
dl {
|
|
margin: @content-margin-top 0 0 0;
|
|
}
|
|
|
|
pre,
|
|
code,
|
|
.mw-code {
|
|
border: 1px solid var( --border-color-base );
|
|
background-color: var( --background-color-framed );
|
|
}
|
|
|
|
code {
|
|
padding: 1px 4px;
|
|
}
|
|
|
|
pre,
|
|
.mw-code {
|
|
padding: 1rem;
|
|
/* Wrap lines in overflow. T2260, T103780 */
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea {
|
|
border: 1px solid var( --border-color-input );
|
|
background-color: var( --background-color-input );
|
|
color: inherit;
|
|
}
|
|
|
|
fieldset {
|
|
padding: @content-margin-top / 2 20px;
|
|
border: 1px solid var( --border-color-base );
|
|
margin: @content-margin-top 0;
|
|
}
|
|
|
|
fieldset > table {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
legend {
|
|
padding: 4px;
|
|
margin: 0;
|
|
color: var( --color-base--subtle );
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
}
|
|
|
|
blockquote {
|
|
margin: @content-margin-top var( --padding-page );
|
|
color: var( --color-base--subtle );
|
|
|
|
cite {
|
|
display: block;
|
|
margin-top: @content-margin-top * @content-scaling;
|
|
|
|
&:before {
|
|
content: '— ';
|
|
}
|
|
}
|
|
}
|
|
|
|
dd {
|
|
margin-bottom: 0.1rem;
|
|
margin-left: @content-margin-top * 2;
|
|
}
|
|
|
|
td {
|
|
> p,
|
|
> ul,
|
|
> ol {
|
|
&:first-child {
|
|
margin-top: 0; // Remove margin for the first element in td
|
|
}
|
|
}
|
|
}
|
|
|
|
a {
|
|
color: var( --color-link );
|
|
text-decoration: none !important;
|
|
|
|
&:not( [ href ] ) {
|
|
cursor: pointer;
|
|
/* Always cursor:pointer even without href */
|
|
}
|
|
|
|
&:hover {
|
|
color: var( --color-link--hover );
|
|
}
|
|
|
|
&:active {
|
|
color: var( --color-link--active );
|
|
}
|
|
|
|
&.new {
|
|
color: var( --color-link-new ) !important; // Override visited
|
|
|
|
&:hover {
|
|
color: var( --color-link-new--hover ) !important;
|
|
}
|
|
|
|
&:active {
|
|
color: var( --color-link-new--active ) !important;
|
|
}
|
|
}
|
|
|
|
&.mw-selflink {
|
|
color: inherit;
|
|
font-weight: bold;
|
|
text-decoration: inherit;
|
|
|
|
&:hover {
|
|
cursor: inherit;
|
|
text-decoration: inherit;
|
|
}
|
|
|
|
&:active {
|
|
color: inherit;
|
|
}
|
|
}
|
|
}
|
|
|
|
.error {
|
|
padding: 2px 4px;
|
|
background-color: var( --background-color-destructive );
|
|
}
|
|
|
|
.nowrap {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/*
|
|
* Content
|
|
*/
|
|
.mw-body,
|
|
.parsoid-body {
|
|
min-height: 80vh; // avoid footer being in the middle of the page
|
|
padding: 0 var( --padding-page );
|
|
margin-top: ~'calc(var( --height-header ) + 20px)';
|
|
direction: ltr;
|
|
}
|
|
|
|
.mw-body-content {
|
|
.plainlist ol,
|
|
.plainlist ul {
|
|
margin: 0;
|
|
line-height: inherit;
|
|
list-style: none none;
|
|
}
|
|
}
|
|
|
|
figcaption,
|
|
.thumbcaption {
|
|
margin: @content-margin-top / 2 0;
|
|
color: var( --color-base--subtle );
|
|
}
|
|
|
|
.thumb {
|
|
> .thumbinner {
|
|
> a {
|
|
transition: @transition-box-shadow-quick;
|
|
|
|
&:hover:not( .lazy ):not( .new ) {
|
|
.boxshadow(2);
|
|
|
|
img {
|
|
transform: scale( 1.1 );
|
|
}
|
|
}
|
|
|
|
&:before {
|
|
content: none;
|
|
}
|
|
|
|
&.new {
|
|
display: block;
|
|
padding: @margin-side / 2;
|
|
background-color: var( --background-color-framed );
|
|
transition: @transition-background-quick, @transition-color-quick;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// TODO: Think of better places to put indicators;
|
|
.mw-indicators {
|
|
padding-left: 10px;
|
|
border-left: 1px solid var( --border-color-base );
|
|
margin-left: 10px;
|
|
font-size: @ui-menu-text;
|
|
}
|
|
|
|
.printfooter {
|
|
display: none;
|
|
}
|
|
|
|
div.patrollink {
|
|
font-size: 75%;
|
|
text-align: right;
|
|
}
|
|
|
|
video {
|
|
max-width: 100%; // Prevent overflow
|
|
}
|
|
|
|
html.citizen-animations-ready {
|
|
// So that the delay scroll animation won't happen on load
|
|
scroll-behavior: smooth; // not supported by IE, Edge, Safari, and Opera, use JQuery as fallback
|
|
}
|
|
|
|
.skin-citizen-dark {
|
|
.mw-editsection > a:before {
|
|
filter: invert( 1 );
|
|
}
|
|
|
|
.mw-indicator {
|
|
filter: invert( 1 ) hue-rotate( 180deg );
|
|
}
|
|
}
|
|
|
|
@media ( min-width: @width-breakpoint-tablet ) {
|
|
table {
|
|
display: table;
|
|
}
|
|
}
|