/
custom.css
114 lines (93 loc) · 2.97 KB
/
custom.css
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* stylelint-disable docusaurus/copyright-header */
/**
* Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites.
*/
@import './prism.css';
/* You can override the default Infima variables here. */
:root {
--ifm-color-primary: #3578e5;
--ifm-color-primary-dark: #1b62d4;
--ifm-color-primary-darker: #1751af;
--ifm-color-primary-darkest: #123f89;
--ifm-color-primary-light: #1b62d4;
--ifm-color-primary-lighter: #80aaef;
--ifm-color-primary-lightest: #a5c3f3;
--ifm-code-font-size: 95%;
--ifm-color-info: var(--ifm-color-primary-dark);
--code-line-decoration: rgba(53, 120, 229, 0.1);
--code-editor-bg: #ffffff;
}
html[data-theme='dark'] {
--ifm-color-feedback-background: #f0f8ff;
--ifm-color-primary: #4e89e8;
--ifm-color-primary-dark: #144697;
--ifm-color-primary-darker: #0e336e;
--ifm-color-primary-darkest: #0b2652;
--ifm-color-primary-light: #699bec;
--ifm-color-primary-lighter: #77a4ed;
--ifm-color-primary-lightest: #a0c0f3;
--ifm-code-background: rgb(40, 42, 54);
--ifm-code-color: rgb(248, 248, 242);
--ifm-color-info: var(--ifm-color-primary-light);
--ifm-menu-color-active: var(--ifm-color-primary-light);
--ifm-navbar-link-hover-color: var(--ifm-color-primary-light);
--code-line-decoration: rgba(255, 255, 255, 0.1);
--code-editor-bg: #1e1e1e;
--ifm-toc-border-color: var(--ifm-background-surface-color);
--ifm-footer-background-color: var(--ifm-background-surface-color);
--ifm-color-secondary-contrast-background: var(
--ifm-background-surface-color
);
--ifm-color-secondary-dark: #2c2d2f;
--ifm-color-secondary-darker: rgb(200, 201, 204);
--ifm-color-secondary-darkest: rgb(164, 166, 168);
scrollbar-color: #454a4d #202324;
}
.docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.1);
display: block;
margin: 0 calc(-1 * var(--ifm-pre-padding));
padding: 0 var(--ifm-pre-padding);
}
html[data-theme='dark'] .docusaurus-highlight-code-line {
background-color: rgba(0, 0, 0, 0.3);
}
.header-github-link:hover {
opacity: 0.6;
}
.header-github-link:before {
content: '';
width: 24px;
height: 24px;
display: flex;
background: url('/img/github.svg') no-repeat;
}
html[data-theme='dark'] .header-github-link:before {
background: url('/img/github-dark.svg') no-repeat;
}
.theme-doc-sidebar-item-link-level-1 > a,
.theme-doc-sidebar-item-category-level-1 > .menu__list-item-collapsible > a {
font-size: 1em;
font-weight: var(--ifm-font-weight-bold);
}
.theme-doc-sidebar-item-link-level-2 > a,
.theme-doc-sidebar-item-category-level-2 > .menu__list-item-collapsible > a {
font-size: 0.9em;
}
.theme-doc-sidebar-item-link-level-3 > a,
.theme-doc-sidebar-item-category-level-3 > .menu__list-item-collapsible > a {
font-size: 0.8em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: var(--ifm-font-weight-semibold);
}
.myLineDecoration {
background-color: var(--code-line-decoration);
}