-
Notifications
You must be signed in to change notification settings - Fork 113
/
Copy pathstyles.css
218 lines (181 loc) · 6.74 KB
/
styles.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
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
.redocusaurus-styles {
display: none;
}
.redocusaurus .redoc-wrap {
border-bottom: 1px solid var(--ifm-toc-border-color);
}
/* ------ Headings Overrides ------- */
.redocusaurus h2,
.redocusaurus h3,
.redocusaurus h4 {
color: var(--ifm-font-color-base);
}
.redocusaurus h5 {
color: var(--ifm-font-color-secondary) !important;
}
.redocusaurus h5 > span {
color: var(--ifm-font-color-secondary) !important;
}
/* Fixes https://github.com/rohit-gohri/redocusaurus/issues/18 */
html[data-theme='dark'] .redocusaurus h1 > a:nth-child(1)::before {
background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIj8+Cjxzdmcgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CgogPGcgY2xhc3M9ImxheWVyIj4KICA8dGl0bGU+TGF5ZXIgMTwvdGl0bG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oiIGZpbGw9IiNmZmZmZmYiIGlkPSJzdmdfMSIvPgogPC9nPgo8L3N2Zz4=');
}
/* ------- Sidebar Overrides (Left Panel) ------- */
.redocusaurus .menu-content {
border-right: 1px solid var(--ifm-toc-border-color);
}
/**
* Hide Logo as already in navbar
* @see https://github.com/rohit-gohri/redocusaurus/issues/123
*/
.redocusaurus-has-logo .menu-content > div:first-child {
display: none;
}
.redocusaurus .operation-type {
margin-top: 6px;
font-size: 8px;
}
/* ------- Right Panel Overrides ------- */
.redocusaurus code {
padding: 0px;
/* Fix weird overlay on curly braces */
background-color: transparent;
}
.redocusaurus
ul
> li.react-tabs__tab--selected:not(.tab-error):not(.tab-success) {
color: #303846 !important;
}
/** Fixes https://github.com/rohit-gohri/redocusaurus/issues/65 */
html:not([data-theme='dark'])
.redocusaurus
.redoc-wrap
.api-content
> div
> div:nth-child(1)
> div:nth-child(2)
h3 {
color: var(--ifm-font-color-base-inverse);
}
/* Background of server selection dropdown */
html[data-theme='dark']
.redocusaurus
div[id^='operation']
> div
> div:nth-child(2)
> div:nth-child(1)
> div:nth-child(2) {
background-color: rgb(27, 32, 40);
color: var(--ifm-font-color-secondary);
}
html[data-theme='dark']
.redocusaurus
div[id^='operation']
> div
> div:nth-child(2)
> div:nth-child(1)
> div:nth-child(2)
> div
> div:nth-child(2)
> div {
background-color: var(--ifm-background-color);
}
/* Fixes https://github.com/rohit-gohri/redocusaurus/issues/8 */
html[data-theme='dark']
.redocusaurus
div[id^='tag']
> div
> div:nth-child(2)
> div:nth-child(1)
> div:nth-child(2) {
background-color: rgb(27, 32, 40);
color: var(--ifm-font-color-secondary);
}
html[data-theme='dark']
.redocusaurus
div[id^='tag']
> div
> div:nth-child(2)
> div:nth-child(1)
> div:nth-child(2)
> div
> div:nth-child(2)
> div {
background-color: var(--ifm-background-color);
}
/* Fixes https://github.com/rohit-gohri/redocusaurus/issues/306 */
html[data-theme='dark']
.redocusaurus
div[id^='tag']
button:has(span):has(.operation-type) {
background-color: var(--ifm-color-gray-800);
}
html[data-theme='dark']
.redocusaurus
div[id^='tag']
button + div {
background-color: var(--ifm-color-emphasis-0);
}
/* Padding above Response Samples heading */
.redocusaurus .react-tabs__tab-panel--selected {
margin-bottom: 10px;
}
/*
* Code Samples
* @see https://github.com/rohit-gohri/redocusaurus/issues/217
*/
html:not([data-theme='dark'])
.redocusaurus
[role='tabpanel']
pre {
background-color: transparent;
}
/** https://github.com/rohit-gohri/redocusaurus/issues/45 */
html:not([data-theme='dark'])
.redocusaurus
[role='tabpanel']
code {
color: var(--ifm-color-emphasis-0);
}
/* ------ Schema Styling Overrides ------- */
.redocusaurus table th {
border: none;
}
.redocusaurus table td {
border-top: none;
border-right: none;
}
.redocusaurus table td:nth-child(1) {
border-bottom: none;
}
.redocusaurus table td:nth-child(2) {
border-left: none;
}
.redocusaurus table tr {
background-color: var(--ifm-background-color);
}
.redocusaurus table > tbody > tr {
color: var(--ifm-font-color-base);
}
.redocusaurus table tbody tr table {
background-color: var(--ifm-background-surface-color);
}
.redocusaurus table tbody tr table tbody tr {
background-color: var(--ifm-background-surface-color);
}
.redocusaurus tr.last + tr > td > div {
background-color: var(--ifm-background-color) !important;
}
.redocusaurus span.dropdown-selector-value {
color: var(--ifm-font-color-secondary);
}
/* Authentication tables */
.redocusaurus table.security-details tr:nth-child(2n + 1) {
background-color: var(--ifm-background-surface-color);
}
[data-theme='dark'] .redocusaurus .api-content div h5 + svg polygon {
filter: invert(1);
}