MediaWiki:Common.css: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 14: | Line 14: | ||
/* source code */ | /* source code */ | ||
pre.code | |||
{ | pre.code { | ||
color: black; | color: black; | ||
background: #eee; | background: #eee; | ||
border: 0px | border: 0px | ||
border-radius: 6px; | border-radius: 6px; | ||
} | } | ||
span.code | @media (prefers-color-scheme: dark) { | ||
{ | pre.code { | ||
color: #eee; | |||
background: black; | |||
} | |||
} | |||
span.code { | |||
color: black; | color: black; | ||
background: #eee; | background: #eee; | ||
Line 28: | Line 34: | ||
padding-left: 4px; | padding-left: 4px; | ||
padding-right: 4px; | padding-right: 4px; | ||
} | |||
@media (prefers-color-scheme: dark) { | |||
span.code { | |||
color: #eee; | |||
background: black; | |||
} | |||
} | } | ||
/* terminal commands */ | /* terminal commands */ | ||
pre.terminal { | pre.terminal { | ||
color: #ffe; | color: #ffe; | ||
Line 37: | Line 50: | ||
border-radius: 6px; | border-radius: 6px; | ||
} | } | ||
@media (prefers-color-scheme: dark) { | |||
pre.terminal { | |||
color: #e0e0e0; | |||
background: #080808; | |||
border: 0px solid #080808; | |||
} | |||
} | |||
span.terminal { | span.terminal { | ||
color: #ffe; | color: #ffe; | ||
Line 45: | Line 66: | ||
} | } | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
span.terminal { | span.terminal { | ||
color: #888; | color: #888; |
Revision as of 2024-11-12T06:09:03
/* CSS placed here will be applied to all skins */ /* body.page-Main_Page .title, body.page-Main_Page #tagline { display: none; } .tocnumber { display: none; } */ /* source code */ pre.code { color: black; background: #eee; border: 0px border-radius: 6px; } @media (prefers-color-scheme: dark) { pre.code { color: #eee; background: black; } } span.code { color: black; background: #eee; border-radius: 6px; padding-left: 4px; padding-right: 4px; } @media (prefers-color-scheme: dark) { span.code { color: #eee; background: black; } } /* terminal commands */ pre.terminal { color: #ffe; background: #888; border: 0px solid #888; border-radius: 6px; } @media (prefers-color-scheme: dark) { pre.terminal { color: #e0e0e0; background: #080808; border: 0px solid #080808; } } span.terminal { color: #ffe; background: #888; border-radius: 6px; padding-left: 4px; padding-right: 4px; } @media (prefers-color-scheme: dark) { span.terminal { color: #888; background: #ffe; } } /* side note area div.sidenote { background: #f8f8f0; margin-left: 1em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em; padding-bottom: 0.5em; border-radius: 6px; } */