| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: 2021 GNOME Foundation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 |
*/ |
| 6 |
|
| 7 |
@import url("fonts.css"); |
| 8 |
|
| 9 |
/********************************* |
| 10 |
* LIGHT THEME |
| 11 |
*********************************/ |
| 12 |
:root { |
| 13 |
|
| 14 |
/* colors */ |
| 15 |
--text-color: #333; |
| 16 |
--text-color-muted: #999; |
| 17 |
--primary: rgb(28, 118, 228); |
| 18 |
--body-bg: #fff; |
| 19 |
--sidebar-primary: rgb(144, 194, 255); |
| 20 |
--sidebar-bg: #151515; |
| 21 |
--sidebar-selected-bg: var(--primary); |
| 22 |
--sidebar-text-color: #fafafa; |
| 23 |
--sidebar-padding: 1.5em; |
| 24 |
|
| 25 |
/* boxes, e.g. code blocks */ |
| 26 |
--box-bg: rgba(135, 135, 135, 0.085); |
| 27 |
--box-radius: 0.35rem; |
| 28 |
--box-padding: 0.75rem; |
| 29 |
--box-margin: 0.75rem 0; |
| 30 |
--box-text-color: #111; |
| 31 |
|
| 32 |
/* typography */ |
| 33 |
--body-font-family: "Noto Serif",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; |
| 34 |
--body-font-scale: 0.95; |
| 35 |
--body-font-size: calc(var(--body-font-scale) * clamp(16px, 1vw, 20px)); |
| 36 |
--body-font-weight: normal; |
| 37 |
|
| 38 |
--monospace-font-family: "Source Code Pro", monospace; |
| 39 |
--monospace-font-size: calc(0.86 * var(--body-font-size)); /* Monospace fonts are very different in terms of font-sizes. Adjust this value to scale it */ |
| 40 |
|
| 41 |
--heading-font-family: "Red Hat Display", var(--body-font-family); |
| 42 |
--heading-weight: 900; |
| 43 |
--heading-font-scale: 1.05; |
| 44 |
|
| 45 |
--heading-small-font-family: var(--heading-font-family); |
| 46 |
--heading-small-weight: 600; |
| 47 |
--heading-small-font-scale: 1; |
| 48 |
|
| 49 |
--heading-table-font-family: var(--heading-font-family); |
| 50 |
--heading-table-weight: 600; |
| 51 |
|
| 52 |
--heading-docblock-color: #6d6d6d; /* docblocks have headings from source comments. we want them to differ.*/ |
| 53 |
--heading-docblock-scale: 0.9; /* docblocks have headings from source comments. we want them to differ.*/ |
| 54 |
|
| 55 |
--symbol-font-family: var(--heading-font-family); |
| 56 |
--symbol-font-weight: 500; |
| 57 |
--symbol-font-scale: 1; |
| 58 |
|
| 59 |
--table-font-size: 0.92em; /* Tables often contain lots information. It's better to scale them down a big to get more sutff fitted inside */ |
| 60 |
|
| 61 |
/* misc */ |
| 62 |
--prefered-content-width: 90ch; /* The preferred width for the readable content */ |
| 63 |
--anchor-sign: "#"; |
| 64 |
|
| 65 |
} |
| 66 |
|
| 67 |
/********************************* |
| 68 |
* DARK THEME (overrides) |
| 69 |
*********************************/ |
| 70 |
@media (prefers-color-scheme: dark) { |
| 71 |
:root { |
| 72 |
--primary: rgb(144, 194, 255); |
| 73 |
--text-color: #f6f6f6; |
| 74 |
--text-color-muted: #686868; |
| 75 |
--body-bg: #121212; |
| 76 |
--sidebar-primary: rgb(144, 194, 255); |
| 77 |
--sidebar-bg: #1e1e1e; |
| 78 |
--sidebar-selected-bg: rgb(17, 112, 228); |
| 79 |
--sidebar-text-color: #fafafa; |
| 80 |
--box-bg: rgba(135, 135, 135, 0.1); |
| 81 |
--box-text-color: #fff; |
| 82 |
--heading-docblock-color: #b7b7b7; |
| 83 |
} |
| 84 |
|
| 85 |
/* fix dark theme syntax highlighting with a filter (for now) */ |
| 86 |
.highlight pre span { |
| 87 |
filter: brightness(6); |
| 88 |
} |
| 89 |
} |
| 90 |
|
| 91 |
/********************************* |
| 92 |
* GENERAL STYLING |
| 93 |
*********************************/ |
| 94 |
*, |
| 95 |
*:before, |
| 96 |
*:after { |
| 97 |
box-sizing: border-box; |
| 98 |
} |
| 99 |
|
| 100 |
::-moz-selection { |
| 101 |
color: white; |
| 102 |
background: var(--primary); |
| 103 |
} |
| 104 |
|
| 105 |
::selection { |
| 106 |
color: white; |
| 107 |
background: var(--primary); |
| 108 |
} |
| 109 |
|
| 110 |
::-webkit-scrollbar { |
| 111 |
width: 8px; |
| 112 |
height: 8px; |
| 113 |
} |
| 114 |
|
| 115 |
::-webkit-scrollbar-thumb { |
| 116 |
border-radius: 10px; |
| 117 |
background: rgba(128, 128, 128, 0.6); |
| 118 |
} |
| 119 |
|
| 120 |
::-webkit-scrollbar-thumb:hover { |
| 121 |
background: rgba(128, 128, 128, 1); |
| 122 |
} |
| 123 |
|
| 124 |
::-webkit-scrollbar-track { |
| 125 |
background: rgba(128, 128, 128, 0.15); |
| 126 |
} |
| 127 |
|
| 128 |
* { |
| 129 |
scrollbar-width: initial; |
| 130 |
} |
| 131 |
|
| 132 |
body { |
| 133 |
font: 16px/1.5 var(--body-font-family); |
| 134 |
font-weight: var(--body-font-weight); |
| 135 |
font-size: var(--body-font-size); |
| 136 |
margin: 0; |
| 137 |
padding: 0; |
| 138 |
position: relative; |
| 139 |
|
| 140 |
-webkit-font-feature-settings: "kern", "liga"; |
| 141 |
-moz-font-feature-settings: "kern", "liga"; |
| 142 |
font-feature-settings: "kern", "liga"; |
| 143 |
color: var(--text-color); |
| 144 |
background: var(--body-bg); |
| 145 |
} |
| 146 |
|
| 147 |
h1, h2, h3, h4, h5, h6 { |
| 148 |
font-family: var(--heading-font-family); |
| 149 |
font-weight: var(--heading-weight); |
| 150 |
margin: 1.75em 0 0.75em 0; |
| 151 |
display: flex; |
| 152 |
align-items: center; |
| 153 |
} |
| 154 |
|
| 155 |
h1 { |
| 156 |
font-size: calc(1.75em * var(--heading-font-scale)); |
| 157 |
} |
| 158 |
|
| 159 |
|
| 160 |
header h1 { |
| 161 |
margin-top: 0; |
| 162 |
} |
| 163 |
|
| 164 |
h2 { |
| 165 |
font-size: calc(1.4em * var(--heading-font-scale)); |
| 166 |
} |
| 167 |
|
| 168 |
h3 { |
| 169 |
font-size: calc(1.2em * var(--heading-font-scale)); |
| 170 |
} |
| 171 |
|
| 172 |
header h3 { |
| 173 |
color: var(--text-color-muted); |
| 174 |
margin-bottom: 0; |
| 175 |
} |
| 176 |
|
| 177 |
h4, h5 { |
| 178 |
font-size: calc(1em * var(--heading-font-scale)); |
| 179 |
} |
| 180 |
|
| 181 |
h6 { |
| 182 |
font-size: calc(1em * var(--heading-small-font-scale)); |
| 183 |
font-family: var(--heading-small-font-family); |
| 184 |
font-weight: var(--heading-small-weight); |
| 185 |
} |
| 186 |
|
| 187 |
ol, ul { |
| 188 |
padding-left: 1rem; |
| 189 |
} |
| 190 |
|
| 191 |
ul ul, ol ul, ul ol, ol ol { |
| 192 |
margin-bottom: .6em; |
| 193 |
} |
| 194 |
|
| 195 |
p { |
| 196 |
margin: 0 0 .6em 0; |
| 197 |
} |
| 198 |
|
| 199 |
a { |
| 200 |
color: var(--primary); |
| 201 |
text-decoration: none; |
| 202 |
} |
| 203 |
|
| 204 |
a:hover { |
| 205 |
text-decoration: underline; |
| 206 |
} |
| 207 |
|
| 208 |
summary { |
| 209 |
outline: none; |
| 210 |
} |
| 211 |
|
| 212 |
blockquote { |
| 213 |
border-left: 3px solid var(--primary); |
| 214 |
background: var(--box-bg); |
| 215 |
padding: var(--box-padding); |
| 216 |
border-radius: var(--box-radius); |
| 217 |
margin: var(--box--margin); |
| 218 |
} |
| 219 |
|
| 220 |
code, |
| 221 |
pre { |
| 222 |
font-family: var(--monospace-font-family); |
| 223 |
font-size: var(--monospace-font-size); |
| 224 |
color: var(--box-text-color); |
| 225 |
} |
| 226 |
|
| 227 |
pre { |
| 228 |
background: var(--box-bg); |
| 229 |
padding: var(--box-padding); |
| 230 |
border-radius: var(--box-radius); |
| 231 |
overflow: auto; |
| 232 |
} |
| 233 |
|
| 234 |
code { |
| 235 |
background: var(--box-bg); |
| 236 |
padding: 0 0.35em; |
| 237 |
border-radius: 0.35rem; |
| 238 |
word-break: break-word; |
| 239 |
} |
| 240 |
|
| 241 |
a > code { |
| 242 |
color: var(--primary); |
| 243 |
} |
| 244 |
|
| 245 |
|
| 246 |
pre pre, |
| 247 |
pre code { |
| 248 |
padding: 0; |
| 249 |
margin: 0; |
| 250 |
font-size: 1em; |
| 251 |
background: none; |
| 252 |
color: inherit; |
| 253 |
} |
| 254 |
|
| 255 |
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { |
| 256 |
font-family: inherit; |
| 257 |
font-weight: inherit; |
| 258 |
font-size: 0.85em; |
| 259 |
} |
| 260 |
|
| 261 |
strong, b { |
| 262 |
font-weight: 600; |
| 263 |
} |
| 264 |
|
| 265 |
/* fix unwanted margins in tables, code, lists and blockquotes */ |
| 266 |
li > *:first-child, |
| 267 |
li > *:first-child > *:first-child, |
| 268 |
li > *:first-child > *:first-child > *:first-child, |
| 269 |
td > *:first-child, |
| 270 |
td > *:first-child > *:first-child, |
| 271 |
td > *:first-child > *:first-child > *:first-child, |
| 272 |
pre > *:first-child, |
| 273 |
pre > *:first-child > *:first-child, |
| 274 |
pre > *:first-child > *:first-child > *:first-child, |
| 275 |
blockquote > *:first-child, |
| 276 |
blockquote > *:first-child > *:first-child, |
| 277 |
blockquote > *:first-child > *:first-child > *:first-child { |
| 278 |
margin-top: 0; |
| 279 |
} |
| 280 |
li > *:last-child, |
| 281 |
li > *:last-child > *:last-child, |
| 282 |
li > *:last-child > *:last-child > *:last-child, |
| 283 |
td > *:last-child, |
| 284 |
td > *:last-child > *:last-child, |
| 285 |
td > *:last-child > *:last-child > *:last-child, |
| 286 |
pre > *:last-child, |
| 287 |
pre > *:last-child > *:last-child, |
| 288 |
pre > *:last-child > *:last-child > *:last-child, |
| 289 |
blockquote > *:last-child, |
| 290 |
blockquote > *:last-child > *:last-child, |
| 291 |
blockquote > *:last-child > *:last-child > *:last-child { |
| 292 |
margin-bottom: 0; |
| 293 |
} |
| 294 |
|
| 295 |
/********************************* |
| 296 |
* PAGE STRUCTURE |
| 297 |
*********************************/ |
| 298 |
#body-wrapper { |
| 299 |
display: flex; |
| 300 |
flex-wrap: nowrap; |
| 301 |
flex-direction: row; |
| 302 |
} |
| 303 |
|
| 304 |
#body-wrapper:focus { |
| 305 |
outline: none; |
| 306 |
} |
| 307 |
|
| 308 |
#main { |
| 309 |
position: relative; |
| 310 |
flex-grow: 1; |
| 311 |
min-width: 0; |
| 312 |
box-shadow: 0 0 134px rgba(0, 0, 0, 0.1); |
| 313 |
} |
| 314 |
|
| 315 |
footer { |
| 316 |
width: 100%; |
| 317 |
display: none; |
| 318 |
} |
| 319 |
|
| 320 |
/********************************* |
| 321 |
* Button |
| 322 |
*********************************/ |
| 323 |
|
| 324 |
#btn-to-top { |
| 325 |
position: fixed; |
| 326 |
bottom: 12px; |
| 327 |
right: 32px; |
| 328 |
z-index: 1000; |
| 329 |
border-radius: 50%; |
| 330 |
width: 42px; |
| 331 |
height: 42px; |
| 332 |
border: 1px solid var(--primary); |
| 333 |
background: var(--box-bg); |
| 334 |
color: var(--text-color); |
| 335 |
cursor: pointer; |
| 336 |
text-transform: none; |
| 337 |
} |
| 338 |
|
| 339 |
#btn-to-top > .up-arrow:after { |
| 340 |
content: "🡅" |
| 341 |
} |
| 342 |
|
| 343 |
/********************************* |
| 344 |
* SIDEBAR |
| 345 |
*********************************/ |
| 346 |
.sidebar { |
| 347 |
scrollbar-width: thin; |
| 348 |
background: var(--sidebar-bg); |
| 349 |
border-right: 1px solid var(--sidebar-bg); |
| 350 |
min-width: 40ch; |
| 351 |
padding: var(--sidebar-padding); |
| 352 |
color: var(--sidebar-text-color); |
| 353 |
position: sticky; |
| 354 |
top: 0; |
| 355 |
z-index: 2; |
| 356 |
height: 100vh; |
| 357 |
overflow-y: auto; |
| 358 |
} |
| 359 |
|
| 360 |
.sidebar a, |
| 361 |
.sidebar a:hover { |
| 362 |
text-decoration: none; |
| 363 |
} |
| 364 |
|
| 365 |
.sidebar .logo { |
| 366 |
display: block; |
| 367 |
margin: 2rem auto 0 auto; |
| 368 |
width: 70%; |
| 369 |
} |
| 370 |
|
| 371 |
.sidebar .section > ul > li { |
| 372 |
margin-right: -10px; |
| 373 |
} |
| 374 |
|
| 375 |
.sidebar .section h3, .sidebar .section h5 { |
| 376 |
text-align: left; |
| 377 |
padding-left: 0.5rem; |
| 378 |
padding-right: 0.5rem; |
| 379 |
font-weight: var(--heading-weight); |
| 380 |
} |
| 381 |
|
| 382 |
.sidebar .section h5 { |
| 383 |
font-size: 1em; |
| 384 |
margin-bottom: 0.5em; |
| 385 |
} |
| 386 |
|
| 387 |
.sidebar .namespace > h3 { |
| 388 |
margin-bottom: 0; |
| 389 |
padding: 0; |
| 390 |
font-size: 1.5em; |
| 391 |
text-transform: uppercase; |
| 392 |
font-weight: 900; |
| 393 |
} |
| 394 |
|
| 395 |
.sidebar .namespace > p { |
| 396 |
font-size: 0.9em; |
| 397 |
opacity: 0.8; |
| 398 |
padding-left: 0.5rem; |
| 399 |
} |
| 400 |
|
| 401 |
.sidebar .section { |
| 402 |
padding-left: 0.5rem; |
| 403 |
padding-right: 0.5rem; |
| 404 |
} |
| 405 |
|
| 406 |
.sidebar .links { |
| 407 |
margin-bottom: 1rem; |
| 408 |
} |
| 409 |
|
| 410 |
.sidebar .section a { |
| 411 |
display: block; |
| 412 |
text-overflow: ellipsis; |
| 413 |
overflow: hidden; |
| 414 |
transition: background-color 150ms ease; |
| 415 |
color: var(--sidebar-primary); |
| 416 |
border-radius: var(--box-radius); |
| 417 |
padding: 0.2rem 0.5rem; |
| 418 |
margin-bottom: 0.15rem; |
| 419 |
} |
| 420 |
|
| 421 |
.sidebar .section a:hover { |
| 422 |
background-color: rgba(127, 127, 127, 0.2); |
| 423 |
color: var(--sidebar-text-color); |
| 424 |
} |
| 425 |
|
| 426 |
.sidebar .section a.current { |
| 427 |
background-color: var(--sidebar-selected-bg); |
| 428 |
color: white; |
| 429 |
} |
| 430 |
|
| 431 |
.sidebar .search { |
| 432 |
box-sizing: border-box; |
| 433 |
text-align: center; |
| 434 |
} |
| 435 |
|
| 436 |
.sidebar .search input[type="text"] { |
| 437 |
border-color: transparent; |
| 438 |
width: 100%; |
| 439 |
border: 1px solid #ccc; |
| 440 |
border-radius: 50px; |
| 441 |
padding: 6px 12px; |
| 442 |
display: inline-block; |
| 443 |
font-size: 80%; |
| 444 |
box-shadow: inset 0 1px 3px #ddd; |
| 445 |
transition: border .3s linear; |
| 446 |
} |
| 447 |
|
| 448 |
/********************************* |
| 449 |
* ANCHORS & TOGGLERS |
| 450 |
*********************************/ |
| 451 |
.anchor, |
| 452 |
.md-anchor { |
| 453 |
position: relative; |
| 454 |
z-index: 1; |
| 455 |
text-decoration: none; |
| 456 |
padding: 0 0.5em; |
| 457 |
color: var(--text-color-muted); |
| 458 |
} |
| 459 |
|
| 460 |
.anchor:hover, |
| 461 |
.md-anchor:hover { |
| 462 |
color: var(--primary); |
| 463 |
} |
| 464 |
|
| 465 |
.anchor:not([href]), |
| 466 |
.md-anchor:not([href]) { |
| 467 |
display: none; |
| 468 |
} |
| 469 |
|
| 470 |
.anchor:before, |
| 471 |
.md-anchor:before { |
| 472 |
content: var(--anchor-sign); /*'§'*/ |
| 473 |
} |
| 474 |
|
| 475 |
.toggle-wrapper { |
| 476 |
position: relative; |
| 477 |
} |
| 478 |
|
| 479 |
.collapse-toggle { |
| 480 |
position: absolute; |
| 481 |
right: 0; |
| 482 |
left: -2em; |
| 483 |
white-space: nowrap; |
| 484 |
text-decoration: none; |
| 485 |
font-size: 0.8em; |
| 486 |
color: transparent; |
| 487 |
} |
| 488 |
|
| 489 |
.collapse-toggle > .inner { |
| 490 |
width: 1rem; |
| 491 |
height: 1rem; |
| 492 |
border-radius: calc(0.75 * var(--box-radius)); |
| 493 |
display: inline-flex; |
| 494 |
justify-content: center; |
| 495 |
align-items: center; |
| 496 |
text-align: center; |
| 497 |
vertical-align: middle; |
| 498 |
color: var(--box-text-color); |
| 499 |
position: relative; |
| 500 |
left: -0.25rem; |
| 501 |
font-family: monospace; |
| 502 |
font-size: 0.7rem; |
| 503 |
font-weight: bold; |
| 504 |
background: var(--box-bg); |
| 505 |
} |
| 506 |
|
| 507 |
/********************************* |
| 508 |
* UTILITY |
| 509 |
*********************************/ |
| 510 |
.deprecated > h6 > a { |
| 511 |
opacity: 0.65; |
| 512 |
} |
| 513 |
|
| 514 |
.hidden { |
| 515 |
display: none !important; |
| 516 |
} |
| 517 |
|
| 518 |
/********************************* |
| 519 |
* CONTENT STYLING |
| 520 |
*********************************/ |
| 521 |
.content { |
| 522 |
padding: 2em 4em; |
| 523 |
overflow: visible; |
| 524 |
max-width: calc(var(--prefered-content-width) + 8em); |
| 525 |
} |
| 526 |
|
| 527 |
.content table:not(.table-display) { |
| 528 |
border-spacing: 0 0.25rem; |
| 529 |
} |
| 530 |
|
| 531 |
.content td { |
| 532 |
vertical-align: top; |
| 533 |
} |
| 534 |
|
| 535 |
.content td:first-child { |
| 536 |
padding-right: 1rem; |
| 537 |
} |
| 538 |
|
| 539 |
.content td p:first-child { |
| 540 |
margin-top: 0; |
| 541 |
} |
| 542 |
|
| 543 |
.content td h1, .content td h2 { |
| 544 |
margin-left: 0; |
| 545 |
font-size: 1.1em; |
| 546 |
} |
| 547 |
|
| 548 |
.content tr:first-child td { |
| 549 |
border-top: 0; |
| 550 |
} |
| 551 |
|
| 552 |
kbd { |
| 553 |
display: inline-block; |
| 554 |
padding: 3px 5px; |
| 555 |
font: 15px monospace; |
| 556 |
line-height: 10px; |
| 557 |
vertical-align: middle; |
| 558 |
border: solid 1px; |
| 559 |
border-radius: 3px; |
| 560 |
box-shadow: inset 0 -1px 0; |
| 561 |
cursor: default; |
| 562 |
} |
| 563 |
|
| 564 |
.content tr:first-child { |
| 565 |
border-bottom: 1px solid rgba(0, 0, 0, 0.35); |
| 566 |
} |
| 567 |
|
| 568 |
.content td { |
| 569 |
vertical-align: top; |
| 570 |
} |
| 571 |
|
| 572 |
.content td:first-child { |
| 573 |
padding-right: 1rem; |
| 574 |
} |
| 575 |
|
| 576 |
.content td p:first-child { |
| 577 |
margin-top: 0; |
| 578 |
} |
| 579 |
|
| 580 |
.content td h4, .content td h5 { |
| 581 |
margin-left: 0; |
| 582 |
font-size: 1.1em; |
| 583 |
} |
| 584 |
|
| 585 |
.content tr:first-child td { |
| 586 |
border-top: 0; |
| 587 |
} |
| 588 |
|
| 589 |
.srclink { |
| 590 |
color: var(--text-color-muted); |
| 591 |
font-size: 1rem; |
| 592 |
font-weight: var(--body-font-weight); |
| 593 |
flex-grow: 0; |
| 594 |
text-decoration: none; |
| 595 |
margin-left: auto; |
| 596 |
position: relative; |
| 597 |
z-index: 1; |
| 598 |
} |
| 599 |
|
| 600 |
.meta tr > td:not(:first-child) { |
| 601 |
width: 100%; |
| 602 |
} |
| 603 |
|
| 604 |
.meta tr > td:first-child { |
| 605 |
white-space: nowrap; |
| 606 |
} |
| 607 |
|
| 608 |
/********************************* |
| 609 |
* DOCBLOCK STYLING |
| 610 |
*********************************/ |
| 611 |
.docblock { |
| 612 |
position: relative; |
| 613 |
text-align: left; |
| 614 |
} |
| 615 |
|
| 616 |
.docblock h1 { |
| 617 |
font-size: calc(1.3em * var(--heading-docblock-scale) * var(--heading-font-scale)); |
| 618 |
} |
| 619 |
|
| 620 |
.docblock h2 { |
| 621 |
font-size: calc(1.2em * var(--heading-docblock-scale) * var(--heading-font-scale)); |
| 622 |
} |
| 623 |
|
| 624 |
.docblock h3 { |
| 625 |
font-size: calc(1.1em * var(--heading-docblock-scale) * var(--heading-font-scale)); |
| 626 |
} |
| 627 |
|
| 628 |
.docblock h4 { |
| 629 |
font-size: calc(1.05em * var(--heading-docblock-scale) * var(--heading-font-scale)); |
| 630 |
} |
| 631 |
|
| 632 |
.docblock h1, |
| 633 |
.docblock h2, |
| 634 |
.docblock h3, |
| 635 |
.docblock h4, |
| 636 |
.docblock h5, |
| 637 |
.docblock h6 { |
| 638 |
color: var(--heading-docblock-color) |
| 639 |
} |
| 640 |
|
| 641 |
.docblock table { |
| 642 |
margin: .25em 0; |
| 643 |
max-width: 100%; |
| 644 |
font-size: var(--table-font-size); |
| 645 |
} |
| 646 |
|
| 647 |
.docblock table td { |
| 648 |
padding: .25em; |
| 649 |
} |
| 650 |
|
| 651 |
.docblock table th { |
| 652 |
padding: .25em; |
| 653 |
text-align: left; |
| 654 |
font-family: var(--heading-table-font-family); |
| 655 |
font-weight: var(--heading-table-weight); |
| 656 |
} |
| 657 |
|
| 658 |
.docblock table tr th:first-child, |
| 659 |
.docblock table tr td:first-child { |
| 660 |
padding-left: 0; |
| 661 |
} |
| 662 |
|
| 663 |
.docblock table tr th:last-child, |
| 664 |
.docblock table tr td:last-child { |
| 665 |
padding-right: 0; |
| 666 |
} |
| 667 |
|
| 668 |
table.enum-members, |
| 669 |
table.results { |
| 670 |
border-radius: var(--box-radius); |
| 671 |
border: 1px solid var(--text-color-muted); |
| 672 |
border-spacing: 0 0 !important; |
| 673 |
font-size: 80%; |
| 674 |
} |
| 675 |
|
| 676 |
table.enum-members tr th, |
| 677 |
table.results tr th { |
| 678 |
border-top-color: var(--body-bg); |
| 679 |
background-color: var(--box-bg); |
| 680 |
border-bottom: 1px solid var(--text-color-muted); |
| 681 |
} |
| 682 |
|
| 683 |
table.enum-members tr th:first-child, |
| 684 |
table.enum-members tr td:first-child { |
| 685 |
min-width: 25em; |
| 686 |
padding-left: .5em; |
| 687 |
} |
| 688 |
|
| 689 |
table.results tr th:first-child, |
| 690 |
table.results tr td:first-child { |
| 691 |
padding-left: .5em; |
| 692 |
} |
| 693 |
|
| 694 |
table.enum-members tr th:last-child, |
| 695 |
table.enum-members tr td:last-child, |
| 696 |
table.results tr th:last-child, |
| 697 |
table.results tr td:last-child { |
| 698 |
max-width: 35em; |
| 699 |
padding-right: .5em; |
| 700 |
} |
| 701 |
|
| 702 |
table.results tr td code { |
| 703 |
font-size: 100%; |
| 704 |
} |
| 705 |
|
| 706 |
.docblock ul li, |
| 707 |
.docblock ol li { |
| 708 |
padding-top: 0.15rem; |
| 709 |
padding-bottom: 0.15rem; |
| 710 |
} |
| 711 |
|
| 712 |
.docblock ul.type { |
| 713 |
list-style: none; |
| 714 |
} |
| 715 |
|
| 716 |
.docblock ul.type li::before { |
| 717 |
content: "»"; |
| 718 |
color: var(--text-color); |
| 719 |
display: inline-block; |
| 720 |
width: 1em; |
| 721 |
margin-left: -1em; |
| 722 |
} |
| 723 |
|
| 724 |
/************************** |
| 725 |
RESPONSIVENESS |
| 726 |
**************************/ |
| 727 |
@media (max-width: 700px) { |
| 728 |
body { |
| 729 |
padding-top: 0px; |
| 730 |
} |
| 731 |
|
| 732 |
#body-wrapper { |
| 733 |
flex-direction: column; |
| 734 |
overflow: hidden; |
| 735 |
} |
| 736 |
|
| 737 |
#main { |
| 738 |
width: 100%; |
| 739 |
padding: 2rem; |
| 740 |
} |
| 741 |
|
| 742 |
.sidebar { |
| 743 |
position: static; |
| 744 |
height: initial; |
| 745 |
order: 1; |
| 746 |
} |
| 747 |
} |