huggingface.css 3.34 KB
Newer Older
LysandreJik's avatar
LysandreJik committed
1
2
3
4
5
6
7
8
/* 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;
9
    font-size: 20px;
LysandreJik's avatar
LysandreJik committed
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
}

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

/* The research field on top of the toc tree */
.wy-side-nav-search{
    background-color: #6670FF;
}

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

/* 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{
    background-color: #FB8D68;
}

/* When a list item that does NOT belong to the selected block from the toc tree is hovered. */
.wy-menu-vertical li a:hover{
    background-color: #FB8D68;
}

/* The text items on the toc tree */
.wy-menu-vertical a {
    color: #FFFFDD;
    font-family: Calibre-Light;
}
.wy-menu-vertical header, .wy-menu-vertical p.caption{
    color: white;
    font-family: Calibre-Light;
}

/* 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;
    font-family: Calibre-Light;
    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;
}

108
109
110
111
112
113
114
115
116

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

LysandreJik's avatar
LysandreJik committed
117
118
119
120
121
122
123
124
125
126
127
128
.footer {
    margin-top: 20px;
}

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

.footer__CustomImage {
    margin: 2px 5px 0 0;
}
129
130
131



LysandreJik's avatar
LysandreJik committed
132
133
134
/* FONTS */
body{
    font-family: Calibre;
135
    font-size: 16px;
LysandreJik's avatar
LysandreJik committed
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
}

h1 {
    font-family: Calibre-Thin;
    font-size: 70px;
}

h2, .rst-content .toctree-wrapper p.caption, h3, h4, h5, h6, legend{
    font-family: Calibre-Medium;
}

@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;
}