File: custom.css

package info (click to toggle)
python-scrapy 2.13.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,664 kB
  • sloc: python: 52,028; xml: 199; makefile: 25; sh: 7
file content (56 lines) | stat: -rw-r--r-- 1,687 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* Move lists closer to their introducing paragraph */
.rst-content .section ol p, .rst-content .section ul p {
    margin-bottom: 0px;
}
.rst-content p + ol, .rst-content p + ul {
    margin-top: -18px; /* Compensates margin-top: 24px of p  */
}
.rst-content dl p + ol, .rst-content dl p + ul {
    margin-top: -6px; /* Compensates margin-top: 12px of p  */
}

/*override some styles in
sphinx-rtd-dark-mode/static/dark_mode_css/general.css*/
.theme-switcher {
    right: 0.4em !important;
    top: 0.6em !important;
    -webkit-box-shadow: 0px 3px 14px 4px rgba(0, 0, 0, 0.30) !important;
    box-shadow: 0px 3px 14px 4px rgba(0, 0, 0, 0.30) !important;
    height: 2em !important;
    width: 2em !important;
}

/*place the toggle button for dark mode
at the bottom right corner on small screens*/
@media (max-width: 768px) {
    .theme-switcher {
        right: 0.4em !important;
        bottom: 2.6em !important;
        top: auto !important;
    }
}

/*persist blue color at the top left used in
default rtd theme*/
html[data-theme="dark"] .wy-side-nav-search,
html[data-theme="dark"] .wy-nav-top {
    background-color: #1d577d !important;
}

/*all the styles below used to present
API objects nicely in dark mode*/
html[data-theme="dark"] .sig.sig-object {
    border-left-color: #3e4446 !important;
    background-color: #202325 !important
}

html[data-theme="dark"] .sig-name,
html[data-theme="dark"] .sig-prename,
html[data-theme="dark"] .property,
html[data-theme="dark"] .sig-param,
html[data-theme="dark"] .sig-paren,
html[data-theme="dark"] .sig-return-icon,
html[data-theme="dark"] .sig-return-typehint,
html[data-theme="dark"] .optional {
    color: #e8e6e3 !important
}