learn.css
1.5 KB
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
body {
margin: 0;
padding-top: 0px;
}
img {
display: block;
margin: auto;
width: 80%;
}
/* progress bars have height of 4 pixels */
.progress {
height: 8px;
border-radius: 0px;
}
/* make markdown tables beautiful */
table {
border-collapse: collapse;
margin-left: 50px;
}
thead, tbody, td, th {
padding: 5px;
border-bottom: 1px solid #ddd;
}
textarea {
font-family: monospace !important;
}
/* Hack to avoid name clash between pygments and mathjax */
.MathJax .mo,
.MathJax .mi {
color: inherit;
}
/* ======================================================================== */
body,html,.row-offcanvas {
height:100%;
}
#sidebar {
width: inherit;
min-width: 220px;
max-width: 220px;
background-color:#f5f5f5;
float: left;
height:100%;
position:relative;
overflow-y:auto;
overflow-x:hidden;
}
#main {
padding-top: 10px;
height:100%;
overflow:auto;
}
#body {
padding-bottom: 50px;
}
/* https://medium.com/wdstack/bootstrap-sidebar-examples-e363021395ff#.ek5vc75p8
* off Canvas sidebar
* --------------------------------------------------
*/
@media screen and (max-width: 768px) {
.row-offcanvas {
position: relative;
-webkit-transition: all 0.25s ease-out;
-moz-transition: all 0.25s ease-out;
transition: all 0.25s ease-out;
width:calc(100% + 220px);
}
.row-offcanvas-left
{
left: -220px;
}
.row-offcanvas-left.active {
left: 0;
}
.sidebar-offcanvas {
position: absolute;
top: 0;
}
}