MediaWiki:Common.css: Difference between revisions

mNo edit summary
mNo edit summary
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */


/*
/* color definitions */
body.page-Main_Page .title, body.page-Main_Page #tagline
{
    display: none;
}


.tocnumber
:root {
{
    --rf-light-fg: white;
     display: none;
    --rf-light-bg: #777;
    --rf-dark-fg: #eee;
     --rf-dark-bg: #004;
}
}
*/


/* source code */
/* style for displaying source code and terminal commands */


pre.code {
.code, .terminal {
     color: black;
     color: var(--rf-light-fg);
     background: #eee;
     background: var(--rf-light-bg);
    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) {
@media (prefers-color-scheme: dark) {
     span.code {
     .code, .terminal {
         color: #eee;
         color: var(--rf-dark-fg);
         background: black;
         background: var(--rf-dark-bg);
     }
     }
}
}


/* terminal commands */
pre.code, pre.terminal {
 
     border: 0px;
pre.terminal {
    color: #ffe;
    background: #888;
     border: 0px solid #888;
     border-radius: 6px;
     border-radius: 6px;
}
@media (prefers-color-scheme: dark) {
    pre.terminal {
        color: #e0e0e0;
        background: #080808;
        border: 0px solid #080808;
    }
}
}


span.terminal {
span.code, span.terminal {
    color: #ffe;
    background: #888;
     border-radius: 6px;
     border-radius: 6px;
     padding-left: 4px;
     padding-left: 4px;
     padding-right: 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;
}
*/

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;
}