MediaWiki:Common.css: Difference between revisions
Appearance
mNo edit summary Tag: Manual revert |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
} | } | ||
/* style for displaying source code */ | /* style for displaying source code and terminal commands */ | ||
.code, .terminal { | |||
color: var(--rf-light-fg); | color: var(--rf-light-fg); | ||
background: var(--rf-light-bg); | background: var(--rf-light-bg); | ||
} | } | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
.code, .terminal { | |||
color: var(--rf-dark-fg); | color: var(--rf-dark-fg); | ||
background: var(--rf-dark-bg); | background: var(--rf-dark-bg); | ||
Line 39: | Line 24: | ||
} | } | ||
pre.code, pre.terminal { | |||
border: 0px; | |||
pre.terminal { | |||
border: 0px | |||
border-radius: 6px; | border-radius: 6px; | ||
} | } | ||
span.terminal { | span.code, span.terminal { | ||
border-radius: 6px; | border-radius: 6px; | ||
padding-left: 4px; | padding-left: 4px; | ||
padding-right: 4px; | padding-right: 4px; | ||
} | } |
Latest revision as of 2024-11-12T13:29:01
/* CSS placed here will be applied to all skins */
/* color definitions */
:root {
--rf-light-fg: white;
--rf-light-bg: #777;
--rf-dark-fg: #eee;
--rf-dark-bg: #004;
}
/* style for displaying source code and terminal commands */
.code, .terminal {
color: var(--rf-light-fg);
background: var(--rf-light-bg);
}
@media (prefers-color-scheme: dark) {
.code, .terminal {
color: var(--rf-dark-fg);
background: var(--rf-dark-bg);
}
}
pre.code, pre.terminal {
border: 0px;
border-radius: 6px;
}
span.code, span.terminal {
border-radius: 6px;
padding-left: 4px;
padding-right: 4px;
}