Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
keras-team
GitHub Repository: keras-team/keras-io
Path: blob/master/theme/css/docs.css
3282 views
1
@import url("nav.css");
2
@import url("icons.css");
3
@import url("colors.css");
4
5
body {
6
font-family: 'Montserrat', 'Open Sans', sans-serif;
7
font-size: 0.95rem
8
}
9
10
h1,
11
h2,
12
h3,
13
h4,
14
h5,
15
h6 {
16
color: #040404;
17
}
18
19
h1 {
20
font-size: 2.5rem;
21
font-weight: 400;
22
line-height: 1.3;
23
margin-bottom: 2rem;
24
}
25
26
h2 {
27
font-size: 1.5rem;
28
font-weight: 700;
29
line-height: 1.3;
30
letter-spacing: 1.2px;
31
margin-bottom: 1rem;
32
}
33
34
h3 {
35
font-size: 1.2rem;
36
font-weight: 700;
37
margin-bottom: 0.6rem;
38
}
39
40
h3:not(:has(code)) {
41
font-size: 1.5rem;
42
font-weight: 400;
43
line-height: 1.3;
44
margin-bottom: 0.5rem;
45
}
46
47
h4 {
48
font-size: 1.1rem;
49
font-weight: 700;
50
margin-bottom: 0.5rem;
51
}
52
53
a {
54
color: #A30000;
55
}
56
57
a:hover {
58
color: var(--text-red);
59
}
60
61
b, strong {
62
font-weight: 700;
63
}
64
65
pre {
66
font-size: 100%;
67
}
68
69
hr {
70
margin-top: 2rem;
71
margin-bottom: 2rem;
72
}
73
74
code {
75
color: #A30000;
76
}
77
78
blockquote {
79
font-size: 0.8rem;
80
padding: 1rem;
81
}
82
83
.k-page {
84
min-width: 375px;
85
width: 100%;
86
}
87
88
.flex__container {
89
display: flex;
90
justify-content: center;
91
margin-inline: auto;
92
margin-top: 72px;
93
max-width: 1568px;
94
width: 100%;
95
}
96
97
.flex__container * {
98
box-sizing: border-box;
99
}
100
101
.k-main {
102
background: #fff;
103
border: 1px solid var(--grey);
104
margin-left: 0;
105
min-height: 1000px;
106
min-width: 0;
107
width: 100%;
108
}
109
110
.k-content {
111
border-bottom: 1px solid var(--grey);
112
border-right: 1px solid var(--grey);
113
flex-grow: 1;
114
min-width: 0;
115
padding: 0 1rem 1rem;
116
width: 100%;
117
}
118
119
.k-search-form {
120
padding: 1rem;
121
width: 100%;
122
}
123
124
.k-main-inner {
125
display: flex;
126
}
127
128
.k-outline {
129
background: white;
130
border-bottom: 1px solid var(--grey);
131
box-shadow: 6px 2px 10px 0px rgba(220, 220, 220, 0.50) inset;
132
color: var(--text-red);
133
flex: 0 0 286px;
134
height: 100%;
135
max-height: 80vh;
136
overflow: auto;
137
padding: 1.5rem;
138
position: sticky;
139
top: 86px;
140
}
141
142
.k-content img {
143
max-width: 90%;
144
}
145
146
.k-inline-icon {
147
height: 1rem;
148
padding-right: 0.5rem;
149
}
150
151
.k-dot {
152
padding-left: 1rem;
153
padding-right: 1rem;
154
}
155
156
.k-search-btn {
157
background-color: #333333;
158
background-image: none;
159
border: 1px solid #000;
160
border-radius: 2px;
161
filter: none;
162
font-size: 0px;
163
margin-left: 0.8rem;
164
padding: 6px 27px;
165
vertical-align: middle;
166
width: auto;
167
}
168
169
.k-search-btn svg {
170
fill: white;
171
}
172
173
.k-search-input {
174
background-clip: padding-box;
175
background-color: #fff;
176
border: 1px solid #ced4da;
177
border-radius: .1rem;
178
color: #495057;
179
display: block;
180
font-size: 0.8rem;
181
font-weight: 300;
182
height: 1.8rem;
183
line-height: 1.5;
184
outline: none;
185
padding: .375rem .75rem;
186
transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
187
width: 100%;
188
}
189
190
.k-search-input:focus {
191
border-color: #d00000;
192
box-shadow: 0 0 5px rgb(173 25 25 / 50%);
193
}
194
195
.k-location-slug {
196
border-bottom: 1px solid #ccc;
197
float: left;
198
font-size: 14px;
199
font-weight: 700;
200
margin-left: -1rem;
201
margin-bottom: .5rem;
202
padding: 1rem;
203
width: calc(100% + 2rem);
204
}
205
206
.k-location-slug a {
207
color: var(--text-red);
208
}
209
210
.k-location-slug-pointer {
211
margin-right: 0.3em;
212
color: var(--text-red);
213
font-size: 0.9em;
214
}
215
216
.k-outline-depth-1 {
217
font-size: 1rem;
218
line-height: 1.6;
219
font-weight: 500;
220
padding-bottom: 0.5rem;
221
width: 100%;
222
}
223
224
.k-outline-depth-2 {
225
font-size: 0.875rem;
226
font-weight: normal;
227
padding-bottom: 0.5rem;
228
width: 100%;
229
}
230
231
.k-outline-depth-3 {
232
font-size: 0.6875rem;
233
font-weight: normal;
234
line-height: 1.25;
235
padding-left: 1rem;
236
padding-bottom: 0.25rem;
237
width: 100%;
238
}
239
240
.k-outline-depth-2 a,
241
.k-outline-depth-3 a {
242
color: var(--text-red);
243
}
244
245
.hidden {
246
display: none;
247
}
248
249
.btn {
250
margin-bottom: 1rem;
251
margin-top: 1rem;
252
}
253
254
.btn-primary {
255
background-color: #d00000;
256
border-color: #8a0000;
257
color: #fff;
258
}
259
260
.btn-primary:hover {
261
background-color: #ff0000;
262
border-color: #8a0000;
263
color: #fff;
264
}
265
266
.btn-primary:focus, .btn-primary.focus {
267
box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
268
}
269
270
.btn-primary.disabled, .btn-primary:disabled {
271
background-color: #d00000;
272
border-color: #8a0000;
273
color: #fff;
274
}
275
276
.btn-primary:not(:disabled):not(.disabled):active, .btn-primary:not(:disabled):not(.disabled).active,
277
.show > .btn-primary.dropdown-toggle {
278
background-color: #ff0000;
279
border-color: #8a0000;
280
color: #fff;
281
}
282
283
.btn-primary:not(:disabled):not(.disabled):active:focus, .btn-primary:not(:disabled):not(.disabled).active:focus,
284
.show > .btn-primary.dropdown-toggle:focus {
285
box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.5);
286
}
287
288
.btn-secondary {
289
color: #3f3f3f;
290
background-color: white;
291
border-color: #bbb;
292
}
293
294
.btn-secondary:hover {
295
background-color: #f0f0f0;
296
border-color: #bbb;
297
color: #3f3f3f;
298
}
299
300
.btn-secondary:focus, .btn-secondary.focus {
301
box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);
302
}
303
304
.btn-secondary.disabled, .btn-secondary:disabled {
305
background-color: #f0f0f0;
306
border-color: #bbb;
307
color: #3f3f3f;
308
}
309
310
.btn-secondary:not(:disabled):not(.disabled):active, .btn-secondary:not(:disabled):not(.disabled).active,
311
.show > .btn-secondary.dropdown-toggle {
312
background-color: #f0f0f0;
313
border-color: #bbb;
314
color: #3f3f3f;
315
}
316
317
.btn-secondary:not(:disabled):not(.disabled):active:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus,
318
.show > .btn-secondary.dropdown-toggle:focus {
319
box-shadow: 0 0 0 0.2rem rgba(130, 138, 145, 0.5);
320
}
321
322
323
.logo {
324
margin-bottom: 1rem;
325
width: 28rem;
326
}
327
328
footer {
329
border-top: solid 1px #bbb;
330
color: #000;
331
float: left;
332
padding: 0 24px;
333
width: 100%;
334
}
335
336
.footer__container {
337
padding: 24px 0;
338
}
339
340
table {
341
border: solid 2px gray;
342
font-size: 10pt;
343
margin-top: 1.5rem;
344
margin-bottom: 1.5rem;
345
width: 100%;
346
}
347
348
tr {
349
border: solid 1px gray;
350
}
351
352
th {
353
border: solid 1px gray;
354
padding: 0.3rem;
355
}
356
357
td {
358
border: solid 1px gray;
359
padding: 0.3rem;
360
}
361
362
.gh-btn-container {
363
margin-left: 4.7em;
364
padding-bottom: 10px;
365
padding-top: 5px;
366
}
367
368
.example-card {
369
background: #FFF;
370
padding: 0.25rem 1rem;
371
text-decoration: none;
372
}
373
374
.example-card:hover {
375
background-color: var(--text-red);
376
}
377
378
.example-card:hover .example-card-title {
379
color: #FFF;
380
text-decoration: none;
381
}
382
383
a:hover .example-card .example-card-title {
384
text-decoration: none;
385
}
386
387
.example-card a:hover {
388
text-decoration: none;
389
}
390
391
.example-card-title {
392
color: #A30000;
393
}
394
395
.example-subcategory-title {
396
margin-block: 2rem 1rem;
397
font-size: 1.25rem;
398
line-height: 1.8;
399
letter-spacing: .25px;
400
color: #212529;
401
}
402
403
.example-highlight {
404
background-color: white;
405
border: solid #ddd 1px;
406
border-radius: 1rem;
407
color: var(--text-red);
408
float: left;
409
font-size: 0.85rem;
410
height: 1.6rem;
411
margin-right: 0.5rem;
412
padding-top: 0.15rem;
413
text-align: center;
414
width: 1.6rem;
415
}
416
417
.example-card-title {
418
font-size: 1rem;
419
line-height: 1.6;
420
}
421
422
.examples-separator {
423
margin-inline: 1rem;
424
}
425
426
.example_version_banner {
427
font-weight: bolder;
428
margin-bottom: 1em;
429
padding: 0.5em;
430
text-align: center;
431
}
432
433
.keras_3 {
434
background: #303841;
435
color: white;
436
}
437
438
.keras_2 {
439
background: #ffedb7;
440
color: black;
441
}
442
443
li::marker {
444
color: var(--alternate-red);
445
}
446
447
/* we include Bootstrap on this page, but the landing page has been created without it - we need to revert
448
some changes to the navigation to make it look the same across both */
449
nav.nav__container *:not(input):not(button) {
450
box-sizing: content-box;
451
}
452
453
.nav__search-input {
454
box-sizing: border-box;
455
}
456
457
p {
458
margin-top: 0;
459
margin-bottom: 1rem;
460
}
461
462
.gsc-wrapper,
463
.gsc-result-info,
464
.gs-bidi-start-align,
465
.gsc-input {
466
font-family: 'Montserrat', 'Open Sans', sans-serif;
467
}
468
469
.gsc-result-info {
470
font-size: 16px;
471
}
472
473
.gsc-search-box .gsc-search-button-v2 {
474
background: #A30000;
475
border: none;
476
height: 41px;
477
margin-top: 0;
478
}
479
480
.gsc-results .gs-webResult.gs-result a.gs-title:link,
481
.gsc-results .gs-webResult.gs-result a.gs-title:visited b,
482
.gsc-input .gsst_a .gscb_a,
483
.gsc-input .gsst_a .gscb_a:hover {
484
color: #A30000;
485
}
486
487
.gsc-results-wrapper-nooverlay .gsc-above-wrapper-area {
488
border-bottom: 1px solid #D0010180;
489
}
490
491
.gsc-result .gs-no-results-result .gs-snippet {
492
background-color: transparent;
493
border: none;
494
font-size: 16px;
495
}
496
497
@media screen and (max-width: 1300px) {
498
.k-outline {
499
display: none !important;
500
width: 0;
501
}
502
}
503
504
@media screen and (min-width: 1200px) {
505
.flex__container {
506
margin-top: 86px;
507
padding: 0 64px;
508
}
509
510
.k-location-slug {
511
display: none;
512
}
513
514
.k-content {
515
padding: 2.5rem 1.5rem 1.5rem;
516
}
517
}
518