|
| 1 | +:root { |
| 2 | + --home-panel-heading-background: var(--background-color-neutral); |
| 3 | + --home-panel-border-color: var(--border-color-subtle); |
| 4 | + --table-border-color: var(--border-color-subtle); |
| 5 | + --table-header-background: var(--background-color-neutral-subtle); |
| 6 | + --table-even-background: var(--background-color-disabled-subtle); |
| 7 | +} |
| 8 | + |
| 9 | +/* Internal "external" links */ |
| 10 | +.mw-parser-output a.external[href^="https://wiki.nixos.org/"] { |
| 11 | + background-image: none !important; |
| 12 | + padding-right: initial !important; |
| 13 | +} |
| 14 | + |
| 15 | +/* Long quotes */ |
| 16 | +blockquote, |
| 17 | +blockquote + cite, |
| 18 | +blockquote + p cite { |
| 19 | + padding: 1ex 1em; |
| 20 | + font-size: inherit; |
| 21 | + margin: 0; |
| 22 | + margin-bottom: 1em; |
| 23 | + border-left: 1ex solid var(--border-color-muted); |
| 24 | +} |
| 25 | + |
| 26 | +blockquote + cite, |
| 27 | +blockquote + p cite { |
| 28 | + display: block; |
| 29 | + margin: 0; |
| 30 | + margin-top: -1em; |
| 31 | + font-size: inherit; |
| 32 | + padding-top: 1em; |
| 33 | +} |
| 34 | + |
| 35 | +blockquote + cite::before, |
| 36 | +blockquote + p cite::before { |
| 37 | + content: "— "; |
| 38 | + display: inline; |
| 39 | +} |
| 40 | + |
| 41 | +#catlinks { |
| 42 | + display: block; |
| 43 | +} |
| 44 | + |
| 45 | +#catlinks.catlinks-allhidden { |
| 46 | + display: none; |
| 47 | +} |
| 48 | + |
| 49 | +/* Fixes issue with headings in mediawiki "system" pages. */ |
| 50 | +.mw-headline { |
| 51 | + pointer-events: none; |
| 52 | +} |
| 53 | + |
| 54 | +/* Paragraph / text styles */ |
| 55 | +p { |
| 56 | + text-align: initial; |
| 57 | +} |
| 58 | + |
| 59 | +/* Infobox */ |
| 60 | + |
| 61 | +.infobox { |
| 62 | + margin: auto; |
| 63 | + max-width: 272px; |
| 64 | +} |
| 65 | + |
| 66 | +@media (min-width: 768px) { |
| 67 | + .infobox { |
| 68 | + float: right; |
| 69 | + min-width: 272px; |
| 70 | + margin-left: 1rem; |
| 71 | + margin-bottom: 1rem; |
| 72 | + } |
| 73 | +} |
| 74 | + |
| 75 | +.infobox > table { |
| 76 | + border: 1px solid var(--border-color-base); |
| 77 | + border-right-width: 5px; |
| 78 | + border-collapse: collapse; |
| 79 | +} |
| 80 | + |
| 81 | +.infobox > table tr:first-child th { |
| 82 | + text-align: center; |
| 83 | + background: var(--background-color-neutral); |
| 84 | +} |
| 85 | + |
| 86 | +.infobox > table th[colspan="2"] { |
| 87 | + text-align: center; |
| 88 | + background: var(--background-color-neutral); |
| 89 | +} |
| 90 | + |
| 91 | +.infobox .table > tbody > tr > td, |
| 92 | +.infobox .table > tbody > tr > th, |
| 93 | +.infobox .table > tfoot > tr > td, |
| 94 | +.infobox .table > tfoot > tr > th, |
| 95 | +.infobox .table > thead > tr > td, |
| 96 | +.infobox .table > thead > tr > th { |
| 97 | + border-bottom: 1px solid var(--table-border-color); |
| 98 | + border-top: 1px solid var(--table-border-color); |
| 99 | + padding: 0.1rem 0.4rem; |
| 100 | + vertical-align: top; |
| 101 | +} |
| 102 | + |
| 103 | +/* Ensures code-like stuff doesn't get hyphenated. */ |
| 104 | +code, |
| 105 | +pre { |
| 106 | + hyphens: none; |
| 107 | +} |
| 108 | + |
| 109 | +.mw-body img { |
| 110 | + max-width: 100%; |
| 111 | + height: auto; |
| 112 | +} |
| 113 | + |
| 114 | +.mw-highlight.mw-highlight { |
| 115 | + background-color: transparent; |
| 116 | +} |
| 117 | + |
| 118 | +/**/ |
| 119 | + |
| 120 | +/* After the move, without tweeki */ |
| 121 | + |
| 122 | +@media (min-width: 768px) { |
| 123 | + .row.home-panes { |
| 124 | + margin-left: -0.6rem; |
| 125 | + margin-right: -0.6rem; |
| 126 | + } |
| 127 | + |
| 128 | + .row.home-panes::after { |
| 129 | + clear: both; |
| 130 | + display: block; |
| 131 | + content: ""; |
| 132 | + } |
| 133 | +
|
| 134 | + .row.home-panes > * { |
| 135 | + float: left; |
| 136 | + max-width: 50%; |
| 137 | + } |
| 138 | +
|
| 139 | + .row.home-panes { |
| 140 | + clear: both; |
| 141 | + } |
| 142 | +
|
| 143 | + .row.home-panes .col-md-7 { |
| 144 | + max-width: 58%; |
| 145 | + } |
| 146 | +
|
| 147 | + .row.home-panes .col-md-5 { |
| 148 | + max-width: 42%; |
| 149 | + } |
| 150 | +
|
| 151 | + .row.home-panes > * > * { |
| 152 | + margin-left: 0.6rem; |
| 153 | + margin-right: 0.6rem; |
| 154 | + } |
| 155 | +} |
| 156 | + |
| 157 | +/* Hides the redirected from notice on the main page. */ |
| 158 | +.page-NixOS_Wiki .mw-redirectedfrom { |
| 159 | + display: none; |
| 160 | +} |
| 161 | + |
| 162 | +/* Override Vector's "transparent" image background on the main page */ |
| 163 | +body.page-NixOS_Wiki p > span.mw-default-size img { |
| 164 | + background-color: transparent; |
| 165 | +} |
| 166 | + |
| 167 | +/* Increase brightness for main page icons on dark mode */ |
| 168 | +@media (prefers-color-scheme: dark) { |
| 169 | + html.skin-theme-clientpref-os body.page-NixOS_Wiki p > span.mw-default-size img { |
| 170 | + filter: brightness(2.75); |
| 171 | + } |
| 172 | +} |
| 173 | +html.skin-theme-clientpref-night body.page-NixOS_Wiki p > span.mw-default-size img { |
| 174 | + filter: brightness(2.75); |
| 175 | +} |
| 176 | + |
| 177 | +.home-box { |
| 178 | + border: 1px solid var(--home-panel-border-color); |
| 179 | + margin-bottom: 1.6rem; |
| 180 | + border-radius: 0.16rem; |
| 181 | +} |
| 182 | + |
| 183 | +.home-box .panel-heading { |
| 184 | + margin: 0; |
| 185 | + background: var(--home-panel-heading-background); |
| 186 | + padding-left: 0.6rem; |
| 187 | + padding-right: 0.6rem; |
| 188 | + border-bottom: 1px solid var(--home-panel-border-color); |
| 189 | +} |
| 190 | + |
| 191 | +.home-box .panel-body { |
| 192 | + padding: 0.6rem; |
| 193 | +} |
| 194 | + |
| 195 | +.table .table { |
| 196 | + border: 1px solid var(--table-border-color); |
| 197 | +} |
| 198 | + |
| 199 | +.table .table th, |
| 200 | +.table .table td { |
| 201 | + text-align: left; |
| 202 | + border-bottom: 1px solid var(--table-border-color); |
| 203 | + border-top: 1px solid var(--table-border-color); |
| 204 | + vertical-align: top; |
| 205 | + padding: 0.2rem 0.4rem; |
| 206 | +} |
| 207 | + |
| 208 | +.table .table th { |
| 209 | + background-color: var(--table-header-background); |
| 210 | +} |
| 211 | + |
| 212 | +.table .table td { |
| 213 | +} |
| 214 | + |
| 215 | +.table .table { |
| 216 | + border-collapse: collapse; |
| 217 | +} |
| 218 | + |
| 219 | +.table .table tr:nth-child(odd) { |
| 220 | + background: var(--table-even-background); |
| 221 | +} |
0 commit comments