huggingface.css 7.09 KB
Newer Older
1
2
/* Our DOM objects */

Sylvain Gugger's avatar
Sylvain Gugger committed
3
4
/* Colab dropdown */

Sylvain Gugger's avatar
Sylvain Gugger committed
5
6
7
8
9
10
11
12
13
table.center-aligned-table td {
    text-align: center;
}

table.center-aligned-table th {
    text-align: center;
    vertical-align: middle;
}

Sylvain Gugger's avatar
Sylvain Gugger committed
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
.colab-dropdown {
    position: relative;
    display: inline-block;
}
  
.colab-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 117px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
  
.colab-dropdown-content button {
    color: #6670FF;
    background-color: #f9f9f9;
    font-size: 12px;
    border: none;
    min-width: 117px;
    padding: 5px 5px;
    text-decoration: none;
    display: block;
}
  
.colab-dropdown-content button:hover {background-color: #eee;}
  
.colab-dropdown:hover .colab-dropdown-content {display: block;}

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
/* Version control */

.version-button {
    background-color: #6670FF;
    color: white;
    border: none;
    padding: 5px;
    font-size: 15px;
    cursor: pointer;
}

.version-button:hover, .version-button:focus {
    background-color: #A6B0FF;
}
 
.version-dropdown {
    display: none;
    background-color: #6670FF;
    min-width: 160px;
    overflow: auto;
    font-size: 15px;
}
  
.version-dropdown a {
    color: white;
    padding: 3px 4px;
    text-decoration: none;
    display: block;
}
  
.version-dropdown a:hover {
    background-color: #A6B0FF;
}
  
.version-show {
    display: block;
}

/* Framework selector */

83
84
85
86
.framework-selector {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
87
    margin-right: 30px;
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
}

.framework-selector > button {
    background-color: white;
    color: #6670FF;
    border: 1px solid #6670FF;
    padding: 5px;
}

.framework-selector > button.selected{
    background-color: #6670FF;
    color: white;
    border: 1px solid #6670FF;
    padding: 5px;
}

104
105
106
107
108
109
/* Copy button */

a.copybtn {
    margin: 3px;
}

LysandreJik's avatar
LysandreJik committed
110
111
112
113
114
115
116
117
/* The literal code blocks */
.rst-content tt.literal, .rst-content tt.literal, .rst-content code.literal {
    color: #6670FF;
}

/* To keep the logo centered */
.wy-side-scroll {
    width: auto;
118
    font-size: 20px;
LysandreJik's avatar
LysandreJik committed
119
120
121
122
123
124
125
126
127
}

/* The div that holds the Hugging Face logo */
.HuggingFaceDiv {
    width: 100%
}

/* The research field on top of the toc tree */
.wy-side-nav-search{
128
    padding-top: 0;
LysandreJik's avatar
LysandreJik committed
129
130
131
132
133
134
135
136
    background-color: #6670FF;
}

/* The toc tree */
.wy-nav-side{
    background-color: #6670FF;
}

137
138
139
140
141
142
/* The section headers in the toc tree */
.wy-menu-vertical p.caption{
    background-color: #4d59ff;
    line-height: 40px;
}

LysandreJik's avatar
LysandreJik committed
143
144
145
146
147
148
149
/* The selected items in the toc tree */
.wy-menu-vertical li.current{
    background-color: #A6B0FF;
}

/* When a list item that does belong to the selected block from the toc tree is hovered */
.wy-menu-vertical li.current a:hover{
150
    background-color: #B6C0FF;
LysandreJik's avatar
LysandreJik committed
151
152
153
154
}

/* When a list item that does NOT belong to the selected block from the toc tree is hovered. */
.wy-menu-vertical li a:hover{
155
    background-color: #A7AFFB;
LysandreJik's avatar
LysandreJik committed
156
157
158
159
160
}

/* The text items on the toc tree */
.wy-menu-vertical a {
    color: #FFFFDD;
161
    font-family: Calibre-Light, sans-serif;
LysandreJik's avatar
LysandreJik committed
162
163
164
}
.wy-menu-vertical header, .wy-menu-vertical p.caption{
    color: white;
165
    font-family: Calibre-Light, sans-serif;
LysandreJik's avatar
LysandreJik committed
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
}

/* The color inside the selected toc tree block */
.wy-menu-vertical li.toctree-l2 a, .wy-menu-vertical li.toctree-l3 a, .wy-menu-vertical li.toctree-l4 a {
    color: black;
}

/* Inside the depth-2 selected toc tree block */
.wy-menu-vertical li.toctree-l2.current>a {
    background-color: #B6C0FF
}
.wy-menu-vertical li.toctree-l2.current li.toctree-l3>a {
    background-color: #C6D0FF
}

/* Inside the depth-3 selected toc tree block */
.wy-menu-vertical li.toctree-l3.current li.toctree-l4>a{
    background-color: #D6E0FF
}

/* Inside code snippets */
.rst-content dl:not(.docutils) dt{
    font-size: 15px;
}

/* Links */
a {
    color: #6670FF;
}

/* Content bars */
.rst-content dl:not(.docutils) dt {
    background-color: rgba(251, 141, 104, 0.1);
    border-right: solid 2px #FB8D68;
    border-left: solid 2px #FB8D68;
    color: #FB8D68;
202
    font-family: Calibre-Light, sans-serif;
LysandreJik's avatar
LysandreJik committed
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
    border-top: none;
    font-style: normal !important;
}

/* Expand button */
.wy-menu-vertical li.toctree-l2 span.toctree-expand,
.wy-menu-vertical li.on a span.toctree-expand, .wy-menu-vertical li.current>a span.toctree-expand,
.wy-menu-vertical li.toctree-l3 span.toctree-expand{
    color: black;
}

/* Max window size */
.wy-nav-content{
    max-width: 1200px;
}

/* Mobile header */
.wy-nav-top{
    background-color: #6670FF;
}

224
225
226
227
228
229
230
231
232

/* Source spans */
.rst-content .viewcode-link, .rst-content .viewcode-back{
    color: #6670FF;
    font-size: 110%;
    letter-spacing: 2px;
    text-transform: uppercase;
}

233
234
235
236
237
/* It would be better for table to be visible without horizontal scrolling */
.wy-table-responsive table td, .wy-table-responsive table th{
    white-space: normal;
}

LysandreJik's avatar
LysandreJik committed
238
239
240
241
242
243
244
245
246
247
248
249
.footer {
    margin-top: 20px;
}

.footer__Social {
    display: flex;
    flex-direction: row;
}

.footer__CustomImage {
    margin: 2px 5px 0 0;
}
250

251
252
/* class and method names in doc */
.rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) tt.descclassname, .rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) code.descname, .rst-content dl:not(.docutils) tt.descclassname, .rst-content dl:not(.docutils) code.descclassname{
253
    font-family: Calibre, sans-serif;
254
255
256
257
258
259
    font-size: 20px !important;
}

/* class name in doc*/
.rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) tt.descname, .rst-content dl:not(.docutils) code.descname{
    margin-right: 10px;
260
    font-family: Calibre-Medium, sans-serif;
261
262
263
264
265
266
267
268
269
270
271
272
}

/* Method and class parameters */
.sig-param{
    line-height: 23px;
}

/* Class introduction "class" string at beginning */
.rst-content dl:not(.docutils) .property{
    font-size: 18px;
    color: black;
}
273
274


LysandreJik's avatar
LysandreJik committed
275
276
/* FONTS */
body{
277
    font-family: Calibre, sans-serif;
278
    font-size: 16px;
LysandreJik's avatar
LysandreJik committed
279
280
281
}

h1 {
282
    font-family: Calibre-Thin, sans-serif;
LysandreJik's avatar
LysandreJik committed
283
284
285
286
    font-size: 70px;
}

h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend{
287
    font-family: Calibre-Medium, sans-serif;
LysandreJik's avatar
LysandreJik committed
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
}

@font-face {
    font-family: Calibre-Medium;
    src: url(./Calibre-Medium.otf);
    font-weight:400;
}

@font-face {
    font-family: Calibre;
    src: url(./Calibre-Regular.otf);
    font-weight:400;
}

@font-face {
    font-family: Calibre-Light;
    src: url(./Calibre-Light.ttf);
    font-weight:400;
}

@font-face {
    font-family: Calibre-Thin;
    src: url(./Calibre-Thin.otf);
    font-weight:400;
}
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327


/**
 * Nav Links to other parts of huggingface.co
 */
 div.menu {
    position: absolute;
    top: 0;
    right: 0;
    padding-top: 20px;
    padding-right: 20px;
    z-index: 1000;
}
div.menu a {
    font-size: 14px;
Julien Chaumond's avatar
Oopsie  
Julien Chaumond committed
328
    letter-spacing: 0.3px;
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
    text-transform: uppercase;
    color: white;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(0deg, #6671ffb8, #9a66ffb8 50%);
    padding: 10px 16px 6px 16px;
    border-radius: 3px;
    margin-left: 12px;
    position: relative;
}
div.menu a:active {
    top: 1px;
}
@media (min-width: 768px) and (max-width: 1750px) {
    .wy-breadcrumbs {
        margin-top: 32px;
    }
}
@media (max-width: 768px) {
    div.menu {
        display: none;
    }
}