Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
keras-team
GitHub Repository: keras-team/keras-io
Path: blob/master/theme/css/nav.css
3281 views
1
nav {
2
background: var(--white);
3
border-bottom: 1px solid var(--border-grey);
4
position: sticky;
5
top: 0;
6
z-index: 99;
7
}
8
9
.nav__container {
10
box-shadow: 0 0 16px -11px #000;
11
display: flex;
12
box-sizing: border-box;
13
justify-content: space-between;
14
padding: 8px 16px;
15
position: fixed;
16
width: 100%;
17
}
18
19
.nav__logo--desktop {
20
display: none;
21
}
22
23
.nav__logo {
24
margin-top: 5px;
25
width: 47px;
26
}
27
28
.nav__wrapper {
29
display: flex;
30
height: 55px;
31
justify-content: space-between;
32
width: 100%;
33
}
34
35
.nav__controls--mobile {
36
align-items: center;
37
display: flex;
38
justify-content: space-between;
39
width: 100%;
40
}
41
42
.nav__search {
43
display: none;
44
max-width: 303px;
45
margin-left: 32px;
46
position: relative;
47
flex-grow: 1;
48
}
49
50
.nav__search-form--mobile {
51
max-width: unset;
52
padding-top: 10px;
53
width: 100%;
54
}
55
56
.nav__menu--button,
57
.nav__menu--close {
58
background: transparent;
59
border: none;
60
cursor: pointer;
61
padding: 11px 10px;
62
}
63
64
.nav__menu--close {
65
display: none;
66
}
67
68
.nav__menu {
69
display: none;
70
}
71
72
.nav__search--mobile {
73
background: transparent;
74
border: none;
75
padding: 11px;
76
}
77
78
.nav__search--input {
79
border: 1px solid var(--grey);
80
border-radius: 8px;
81
box-shadow: inset 2px 2px 8px 0 #dcdcdc80;
82
color: var(--dark-grey);
83
cursor: pointer;
84
font-family: 'Montserrat', 'Open Sans', sans-serif;
85
height: 36px;
86
padding-left: 8px;
87
transition: box-shadow 0.5s;
88
width: 100%;
89
}
90
91
.nav__search--input::placeholder {
92
color: var(--text-red);
93
font-size: 14px;
94
font-weight: 700;
95
line-height: 20px;
96
}
97
98
.nav__search--button {
99
background: transparent;
100
border: 0;
101
cursor: pointer;
102
display: inline-block;
103
height: fit-content;
104
padding: 5px;
105
position: absolute;
106
right: 8px;
107
top: 50%;
108
transform: translateY(-50%);
109
width: fit-content;
110
}
111
112
#dropdown-nav {
113
display: none;
114
}
115
116
.nav-link {
117
font-size: 16px;
118
font-weight: 700;
119
margin: 0 24px;
120
padding: 20px 0;
121
width: calc(100% - 48px);
122
}
123
124
.nav-link-chevron {
125
position: absolute;
126
left: 0;
127
}
128
129
.nav-link-chevron--expanded {
130
transform: rotate(90deg);
131
}
132
133
.nav-expanded-panel {
134
box-shadow: 2px 2px 8px 0 rgba(220, 220, 220, 0.50) inset;
135
display: flex;
136
flex-direction: column;
137
}
138
139
.nav.flex-column {
140
display: flex;
141
flex-direction: column;
142
}
143
144
.nav-sublink,
145
.nav-sublink2 {
146
font-size: 0.875rem;
147
font-weight: 500;
148
padding-block: 0.75rem;
149
}
150
151
.logo-small {
152
padding-bottom: 5%;
153
padding-left: 10%;
154
padding-right: 10%;
155
padding-top: 5%;
156
width: 100%;
157
}
158
159
.nav-pills .nav-sublink.active {
160
background-color: var(--light-grey);
161
color: var(--alternate-red);
162
}
163
164
.nav-pills .nav-sublink2.active {
165
background-color: var(--grey);
166
color: var(--alternate-red);
167
}
168
169
.nav-pills .nav-link {
170
border-bottom: 1px solid #ddd;
171
border-radius: 0;
172
color: #A30000;
173
}
174
175
.nav-pills .nav-sublink {
176
color: var(--dark-grey);
177
padding-left: 1.5rem;
178
padding-right: 0.8rem;
179
text-decoration: none;
180
}
181
182
.nav-pills .nav-sublink2 {
183
color: black;
184
padding-left: 3rem;
185
padding-right: 0.8rem;
186
text-decoration: none;
187
}
188
189
.nav-link:hover {
190
background-color: #eee;
191
color: #A30000;
192
}
193
194
.nav-pills .nav-link.active {
195
background-color: white;
196
color: var(--text-red);
197
}
198
199
.nav-pills .nav-sublink.active:hover,
200
.nav-pills .nav-sublink2.active:hover {
201
background-color: var(--grey);
202
}
203
204
.nav-sublink:hover,
205
.nav-sublink2:hover {
206
background-color: #eee;
207
color: black;
208
}
209
210
.nav-pills .nav-link.active:hover {
211
background-color: var(--light-grey);
212
}
213
214
.nav__mobile-menu,
215
.nav__side-nav {
216
background: white;
217
overflow-y: auto;
218
}
219
220
.nav__side-nav {
221
display: none;
222
}
223
224
.nav__mobile-menu {
225
border-bottom: 1px solid var(--grey);
226
bottom: 0;
227
display: none;
228
float: left;
229
left: 0;
230
position: fixed;
231
top: 62px;
232
width: 100vw;
233
}
234
235
.nav__side-nav .nav {
236
border-left: 1px solid var(--grey);
237
height: 100%;
238
}
239
240
.nav__side-nav .nav-link {
241
border-top: 1px solid var(--grey);
242
padding: 16px 24px 15px;
243
margin: 0;
244
position: relative;
245
}
246
247
.nav__side-nav .nav-link,
248
.nav__side-nav .nav-sublink,
249
.nav__side-nav .nav-sublink2 {
250
width: 100%;
251
}
252
253
.nav__mobile-nav {
254
display: none;
255
}
256
257
@media only screen and (min-width: 1200px) {
258
.nav__mobile-menu,
259
.nav__mobile-nav {
260
display: none !important;
261
}
262
263
.nav__side-nav {
264
display: block;
265
flex: 0 0 330px;
266
}
267
268
.nav__container {
269
padding: 18px 0;
270
position: fixed;
271
}
272
273
.nav__wrapper {
274
height: auto;
275
margin: auto;
276
max-width: 1440px;
277
padding: 0 64px;
278
}
279
280
.nav__logo {
281
margin-top: 0;
282
padding-right: 24px;
283
width: 169px;
284
}
285
286
.nav__logo--mobile {
287
display: none;
288
}
289
290
.nav__logo--desktop {
291
display: block;
292
}
293
294
.nav__controls--mobile {
295
display: none !important;
296
}
297
298
.nav__menu--button,
299
.nav__menu--close {
300
display: none !important;
301
}
302
303
.nav__search {
304
display: block;
305
}
306
307
.nav__search--mobile,
308
.nav__search-form--mobile {
309
display: none !important;
310
}
311
312
.nav__menu {
313
align-items: center;
314
display: flex;
315
justify-content: space-between;
316
width: 100%;
317
}
318
319
.nav__menu .nav__link:hover {
320
color: #A30000;
321
text-decoration: none;
322
}
323
324
.nav__item--container {
325
display: flex;
326
gap: 16px;
327
list-style-type: none;
328
margin: 0;
329
padding: 0;
330
white-space: nowrap;
331
}
332
333
.nav__item {
334
font-family: 'Montserrat', 'Open Sans', sans-serif;
335
font-size: 14px;
336
font-weight: 700;
337
line-height: 20px;
338
padding: 8px;
339
}
340
341
.nav__link {
342
color: var(--dark-grey);
343
font-family: 'Montserrat', 'Open Sans', sans-serif;
344
text-transform: uppercase;
345
}
346
347
.nav__link--active {
348
color: var(--text-red);
349
}
350
351
.footer__container {
352
margin: auto;
353
max-width: 1440px;
354
padding: 16px 64px;
355
}
356
}
357
358
footer {
359
background: var(--grey);
360
}
361
362
footer a {
363
color: var(--text-black);
364
font-size: 16px;
365
line-height: 25.6px;
366
font-weight: 500;
367
}
368
369
.footer__container {
370
display: flex;
371
gap: 6px;
372
padding: 24px;
373
}
374
375