-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Expand file tree
/
Copy pathcustom.css
More file actions
220 lines (191 loc) Β· 5.07 KB
/
custom.css
File metadata and controls
220 lines (191 loc) Β· 5.07 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
/**
* FIX THE DESIGN OF THE RTD THEME
*/
body,
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Oxygen-Sans, Cantarell, Ubuntu, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
/* Visually hidden utility β element stays in the accessibility tree
but is not visible on screen. Satisfies WCAG 3.3.2 / BITV 9.3.3.2
for the search form label. */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Search input wrapper β positions the magnifying-glass icon inside
the input so sighted users can identify the field without a label. */
.wy-form-search {
position: relative;
}
.wy-form-search-icon {
position: absolute;
top: 50%;
left: 10px;
transform: translateY(-50%);
color: #555;
pointer-events: none;
}
.wy-form-search input[type="text"] {
padding-left: 30px;
}
/* NC blue */
.wy-side-nav-search {
background-color: #0082c9;
}
/* Content links β RTD default #2980b9 gives ~4.3:1 against white,
below the 4.5:1 required by WCAG AA / BITV 9.1.4.1 and 9.1.4.3.
#2474a4 yields ~5.1:1 while keeping the same blue visual style.
Keep underlines so links are not distinguished by color only. */
.rst-content a,
.rst-content a:visited {
color: #2474a4;
text-decoration: underline;
}
/* Reduce size of logo in top left */
.wy-side-nav-search > a img.logo {
max-width: 180px;
}
/* Remove unwanted background on top left logo on hover */
.wy-side-nav-search > a:hover {
background: none;
}
/* Remove unwanted data on the bottom left sidebar */
.rst-versions.shift-up .rst-other-versions > dl:not(:nth-child(1)),
.rst-versions.shift-up .rst-other-versions > a,
.rst-versions.shift-up .rst-other-versions > hr {
display:none
}
.rst-versions.shift-up .rst-other-versions {
color: transparent;
font-size: 0px;
}
.rst-versions.shift-up .rst-other-versions dt,.rst-versions.shift-up .rst-other-versions dl {
color: #808080;
font-size: 15px;
}
/* Remove readthedocs title in the sidebar bottom left section */
.rst-versions .rst-current-version .fa-book {
display: none;
}
/* The version toggle is now a <button> element. Reset default button
styling so it looks identical to the old <span>. */
button.rst-current-version {
background: none;
border: none;
padding: 12px;
font-family: inherit;
font-size: 90%;
width: 100%;
cursor: pointer;
}
.rst-versions .rst-current-version:before {
content: 'Nextcloud';
margin-right: auto;
}
.rst-versions .rst-current-version {
display: flex;
align-items: center;
/* Use white instead of #0082c9 β the NC blue at 3.7:1 on the dark
#272525 sidebar background fails WCAG AA (4.5:1 required). */
color: #fff;
}
.rst-versions .rst-current-version .fa-caret-down {
margin-left: 5px;
}
.rst-versions .rst-current-version .fa-caret-down:not(:last-of-type) {
margin-right: 10px;
}
/* Code blocks */
.highlight {
/* nc blue */
background: rgba(0, 130, 201, 0.1)
}
/* Inline code β RTD uses #e74c3c on white which gives ~3.82:1, below
the 4.5:1 required by WCAG AA / BITV 9.1.4.3. Use a darker shade. */
.rst-content code,
.rst-content tt,
code {
color: #c0392b !important;
}
/* Fix code within tables - remove too big margins */
.rst-content td {
div[class^="highlight"]:last-of-type,
pre.literal-block:last-of-type {
margin-block: 1px !important;
}
}
/* Screenshots β add subtle shadow to distinguish from page background */
.rst-content img {
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
html[data-theme="dark"] .rst-content img {
box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}
/* ICONS LIST */
div#list-of-available-icons > blockquote {
margin: 0;
}
div#list-of-available-icons > blockquote > div {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
div#list-of-available-icons > blockquote > div > div {
width: 120px;
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 30px;
}
div#list-of-available-icons > blockquote > div > div > a {
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
width: 60px;
height: 60px;
}
div#list-of-available-icons > blockquote > div > div > a.white-icon {
background-color: #343131;
}
div#list-of-available-icons > blockquote > div > div > p {
margin-top: 5px;
font-size: 90%;
font-style: normal;
text-align: center;
}
/* Focus ring β the sidebar nav container clips outline to one edge
(only bottom line visible). Use a negative outline-offset to draw
the ring inside the element so it is never clipped (BITV 9.2.4.7). */
.wy-menu-vertical a:focus-visible,
.wy-menu-vertical button:focus-visible,
.wy-side-nav-search a:focus-visible,
.rst-versions .rst-current-version:focus-visible {
outline: 2px solid #0082c9;
outline-offset: -2px;
}
.wy-nav-content {
max-width: clamp(800px, calc(100vw - 600px), 1200px) !important;
}
.wy-nav-content section {
max-width: 900px;
}
table.docutils {
min-width: 50%;
}
#code-style table.docutils {
width: 100%;
}