Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
You must create an account or log in to edit.

Module:Documentation/styles.css: Difference between revisions

From Amaranth Legacy, available at amaranth-legacy.community
Content deleted Content added
use the text color from design tokens. Use fixed, as our backgrounds are always light blue.
Star Citizen Wiki>Alistar Bot
m top: deprecate old Citizen variables, replaced: --color-base--emphasized → --color-emphasized, --border-radius--medium → --border-radius-medium, --color-base--subtle → --color-subtle
Line 1: Line 1:
.documentation {
.ts-doc-sandbox .mbox-image {
margin-top: var( --space-md );
padding:.75em 0 .75em .75em;
padding-top: var( --space-md );
}
border-top: 1px solid;
border-color: var( --border-color-base );
.ts-doc-doc {
font-size: var( --font-size-small );
clear: both;
background-color: #eaf3ff;
color: var(--color-fixed, #333);
border: 1px solid #a3caff;
margin-top: 1em;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
}


.ts-doc-header {
.documentation-header {
display: flex;
background-color: #c2dcff;
align-items: center;
color: var(--color-fixed, #333 );
justify-content: space-between;
padding: .642857em 1em .5em;
flex-wrap: wrap;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
}


.documentation-title {
.ts-doc-heading {
color: var( --color-emphasized );
display: inline-block;
font-size: var( --font-size-x-large );
padding-left: 30px;
font-weight: var( --font-weight-semibold );
background: center left / 24px 24px no-repeat;
line-height: var( --line-height-xs );
/* @noflip */
background-image: url( //upload.wikimedia.org/wikipedia/commons/f/fb/OOjs_UI_icon_puzzle-ltr.svg );
height: 24px;
line-height: 24px;
font-size: 13px;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
}
}


.documentation-links {
.ts-doc-header .ts-tlinks-tlinks {
font-family: var( --font-family-monospace );
line-height: 24px;
margin-left: 0;
}
}


.documentation-subheader {
.ts-doc-header .ts-tlinks-tlinks a.external {
color: #0645ad;
color: var( --color-subtle );
font-size: var( --font-size-x-small );
line-height: var( --line-height-sm );
}
}


.documentation-content {
.ts-doc-header .ts-tlinks-tlinks a.external:visited {
margin-top: var( --space-xl );
color: #0b0080;
}
}


.documentation-modulestats {
.ts-doc-header .ts-tlinks-tlinks a.external:active {
padding: var( --space-xxs );
color: #faa700;
background: var( --color-surface-2 );
border-radius: var( --border-radius-medium );
display: flex;
align-items: center;
justify-content: space-between;
}
}


.documentation-modulestats > * {
.ts-doc-content {
margin: 0 !important;
padding: .214286em 1em;
}

.ts-doc-content:after {
content: '';
clear: both;
display: block;
}

.ts-doc-content > :first-child {
margin-top: .5em;
}

.ts-doc-content > :last-child {
margin-bottom: .5em;
}

.ts-doc-footer {
background-color: #eaf3ff;
color: var(--color-fixed, #333);
border: 1px solid #a3caff;
padding: .214286em 1em;
margin-top: .214286em;
font-style: italic;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}

@media all and (min-width: 720px) {
.ts-doc-header .ts-tlinks-tlinks {
float: right;
}
}

/* fix headers in dark mode */
.ts-doc-content .mw-heading {
color: var(--color-fixed, #222);
}
.mw-templatedata-caption,
.mw-templatedata-format {
color: var(--color-fixed, #222);
}
/* fix icon for templatedata params (inline/block) in dark mode */
.mw-templatedata-doc-params .oo-ui-widget {
filter: unset !important;
}
}

Revision as of 18:17, October 15, 2024

.documentation {
    margin-top: var( --space-md );
    padding-top: var( --space-md );
    border-top: 1px solid;
    border-color: var( --border-color-base );
    font-size: var( --font-size-small );
}

.documentation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.documentation-title {
    color: var( --color-emphasized );
    font-size: var( --font-size-x-large );
    font-weight: var( --font-weight-semibold );
    line-height: var( --line-height-xs );
}

.documentation-links {
    font-family: var( --font-family-monospace );
}

.documentation-subheader {
    color: var( --color-subtle );
    font-size: var( --font-size-x-small );
    line-height: var( --line-height-sm );
}

.documentation-content {
    margin-top: var( --space-xl );
}

.documentation-modulestats {
    padding: var( --space-xxs );
    background: var( --color-surface-2 );
    border-radius: var( --border-radius-medium );
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.documentation-modulestats > * {
    margin: 0 !important;
}