forked from jupyterlab/jupyterlab
/
custom.css
60 lines (52 loc) · 1.37 KB
/
custom.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
.wy-nav-side p.caption {
color: #f5f5f5;
}
div.wy-side-nav-search {
background: #f37626;
}
.wy-nav-content iframe {
margin: auto;
display: block;
}
.wy-breadcrumbs-aside img {
height: 1em !important;
}
.wy
/* Elevation
*
* We style box-shadows using Material Design's idea of elevation. These particular numbers are taken from here:
*
* https://github.com/material-components/material-components-web
* https://material-components-web.appspot.com/elevation.html
*/
.rst-content img.jp-screenshot {
border: none;
/* MD Elevation 8 */
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
margin-bottom: 24px;
}
/*
* The div.jp-youtube-video styling is done to get the YouTube video to size dynamically
* to 100% of the content width.
*/
.rst-content div.jp-youtube-video {
position: relative;
width: 100%;
height: 0px;
/* This must be equal to the inverse of the aspect ratio of the video */
/* The current value is: 56.25% = 315/560 */
padding-bottom: 56.25%;
border: none;
/* MD Elevation 8 */
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2),
0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12);
margin-bottom: 24px;
}
.rst-content div.jp-youtube-video iframe {
position: absolute;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
}