summaryrefslogtreecommitdiffstats
path: root/theme/static/css/4-main.css
blob: 9517a13301765e73e84ab6ec885ff9d504ab48ab (plain)
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
html {
    margin: 0;
    padding: 0;
}

body {
    font-family: "garamond";
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

div.main {
    transition: all 0.5s;
    color: #333;
}

div.sidebar {
    transition: all 0.5s;
    position: fixed;
    height: 100%;
    width: 300px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    float: left;
    margin-left: -300px;
    background-color: #1f4770;
    font-size: 20px;
    overflow: auto;
    color: white;
}

div.sidebar h2 {
    padding-left: 20px; 
    margin: 0.5em 0;
}

body.sidebar-active div.main {
    margin-left: 300px;
}

body.sidebar-active div.sidebar {
    margin-left: 0px;
}

body.sidebar-active div.contents-wrapper,
body.sidebar-active div.settings {
    transition: opacity 0.5s, visibility 0s;
}

div.settings {
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
}

div.settings .button-group {
    margin-bottom: 0.7em;
}

div.settings h2 {
    padding-left: 0;
}

div.settings h3 {
    border-bottom: 1px solid white;
}

body.settings div.settings,
body.toc div.contents-wrapper {
    opacity: 1;
    visibility: visible;
}

div.menu {
    position: fixed;
    padding: 1em;
}

div.contents-wrapper {
    width: 100%;
}

ul.contents {
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
    font-size: 95%;
}

div.settings {
    position: absolute;
    transition: visibility 0s, opacity 0.5s;
    opacity: 0;
    visibility: hidden;
}

div.contents-wrapper {
    transition: visibility 0s, opacity 0.5s;
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

ul.contents li {
    padding: 0.1em 20px;
    margin: 0;
}

ul.contents li a {
    width: 100%;
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
    color: white;
}

ul.contents li:hover,
ul.contents li.active {
    background-color: white;
}

ul.contents li.active a,
ul.contents li:hover a {
    color: #1f4770;
}


ul.contents {
    counter-reset: contents;
}

ul.contents a:before {
    counter-increment: contents;
    content: "Chapter " counter(contents) ": ";
}

ul.contents a[data-special]:before {
    content: attr(data-special) ": ";
}