-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.css
215 lines (176 loc) · 3.7 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
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
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
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
/* Custom CSS */
.heavy-box {
display: block;
margin: 5px;
background: #8EBBCC;
border: 1px;
border-radius: 9px;
padding: 9px;
}
.title-slide.remark-slide-content:before{
position: absolute;
content: url('../img/logo_white.png');
left: 25px;
bottom: 25px;
}
/* Link color */
a, a > code {
color: #1482b9; /*default: rgb(249, 38, 114); || sets color of links */
text-decoration: none; /* turns off background coloring of links */
text-decoration: underline;
}
.link {
color: #1482b9 !important;
}
img {
max-width: 600px;
}
.remark-slide-content {
font-size: 18px;
}
.remark-inline-code {
color: #960101;
}
.small-code pre > code {
font-size: 14px;
}
.code-inline {
display: inline;
}
.img-small-25 img {
max-width: 25%;
}
.img-small-50 img {
max-width: 50%;
}
.img-small-80 img {
max-width: 80%;
}
.text-small {
font-size: 70%;
}
.text-curse {
font-size: 50%;
font-style: italic;
}
.help-key {
background: white;
color: black;
min-width: 1em;
display: inline-block;
padding: 3px 6px;
text-align: center;
border-radius: 4px;
font-size: 14px;
}
/* Prevent chunk output overflow */
pre {
overflow: hidden;
}
/* Python in green */
.python {
background: #dffdd6 !important;
border-radius: 10px;
}
/* Two column layout: code and plot */
.twocol-code-plot .left-code pre > code {
font-size: 14px;
}
.left-code {
width: 38%;
height: 92%;
float: left;
}
.right-plot {
width: 60%;
float: right;
padding-left: 1%;
}
.left-code-60 {
width: 68%;
height: 92%;
float: left;
}
.right-plot-30 {
width: 30%;
float: right;
padding-left: 1%;
}
/* Code with automatic word-wrap */
.left-code code {
font-size: 14px;
text-align: left;
overflow: hidden;
white-space: pre-wrap; /* Since CSS 2.1 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
.left-code-60 code {
font-size: 14px;
text-align: left;
overflow: hidden;
white-space: pre-wrap; /* Since CSS 2.1 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
/* Write inline-block content in right panel, float to the left */
.left-inline {
display: inline-block;
}
/* Popup stuff */
.image-popup-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.protip-popup {
position: absolute;
left: 50%;
top: 80%;
transform: translate(-50%, -50%);
background: #8EBBCC;
border: 1px;
border-radius: 23px;
padding: 10px;
width: 80%;
-webkit-box-shadow: 6px 10px 6px -6px #777;
-moz-box-shadow: 6px 10px 6px -6px #777;
box-shadow: 6px 10px 6px -6px #777;
}
/* Half-transparent blackout */
#overlay {
position: absolute;
top: 0;
bottom: 0;
right: 0;
left: 0;
background-color: #00000030;
display: none;
z-index: 1;
}
/* Datatable styling */
#DT-flights {
font-size: 80%;
max-width: 100%;
max-height: 60%;
/*overflow-x: scroll;*/
/*overflow-y: hidden;*/
overflow: hidden;
}
/* --- Slide classes ---- */
/* Difficult material */
.slide-class-advanced {
/* Solid */
/*background: #ffe8e8;*/
/* Gradient */
background: #ffffff;
background: -moz-linear-gradient(45deg, #ffffff 0%, #ffd8d8 100%);
background: -webkit-linear-gradient(45deg, #ffffff 0%,#ffd8d8 100%);
background: linear-gradient(45deg, #ffffff 0%,#ffd8d8 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ffd8d8',GradientType=1 );
}