-
Notifications
You must be signed in to change notification settings - Fork 0
/
sci-course-shell-book.css
217 lines (206 loc) · 4.76 KB
/
sci-course-shell-book.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
216
217
/* General settings */
div.book_content {
color: #222;
line-height: 1.61803398875;
font-size: 1.125rem;
margin-left: auto;
margin-right: auto;
max-width: 64ch;
}
@media screen and (min-width: 60em) {
div.book_content {
font-size: 1.25rem;
}
}
@media screen and (min-width: 120em) {
div.book_content {
font-size: 1.375rem;
}
}
div.book_content h1,
div.book_content h2,
div.book_content h3,
div.book_content h4,
div.book_content h5,
div.book_content h6 {
margin: 0 0 1.25rem 0;
font-weight: 600;
text-transform: none;
}
div.book_content * + p,
div.book_content * + ul,
div.book_content * + ol,
div.book_content * + dl,
div.book_content * + pre,
div.book_content * + address,
div.book_content * + fieldset,
div.book_content * + figure {
margin-top: 1.25rem;
}
div.book_content ul > li > ul,
div.book_content ul > li > ol,
div.book_content ol > li > ol,
div.book_content ol > li > ul {
margin-top: 0;
}
div.book_content ul,
div.book_content ol {
padding-left: 2.5rem;
}
div.book_content * + h1,
div.book_content * + h2,
div.book_content * + h3,
div.book_content * + h4,
div.book_content * + h5,
div.book_content * + h6 {
margin-top: 2.5rem;
}
/* -- figure - custom properties */
div.book_content figure {
margin: 22px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
text-align: center;
padding: 4px;
display: inline-block;
}
/* -- figurecaption - custom properties */
div.book_content figcaption {
background-color: #f8f8f8;
color: #444;
font: italic smaller sans-serif;
padding: 4px;
text-align: left;
}
/* pre - custom properties */
pre {
white-space: normal;
background-color: #fafafa;
margin-top: 2rem;
margin-bottom: 2rem;
}
/* Moodle books - custom feature - heading figure for book section */
figure.heading-section {
overflow: hidden;
height: 240px;
display: flex !important;
}
figure.heading-section > img {
height: 100%;
width: 100%;
object-fit: cover;
}
/* -- sidepanel - custom properties */
div.block.block_book_toc {
border-radius: 4px;
border: 1px solid #bbb;
font-size: 0.875rem;
line-height: 1.61;
}
/* -- font-sizes */
.cop-book-title {
font-size: calc(1.5785rem + 3.332vmin);
}
div.book_content > div.no-overflow h1 {
font-size: calc(1.5785rem + 3.332vmin);
}
div.book_content > div.no-overflow h2 {
font-size: calc(1.1845rem + 2.5vmin);
}
div.book_content > div.no-overflow h3 {
font-size: calc(0.985rem + 1.85vmin);
}
div.book_content > div.no-overflow h4 {
font-size: calc(0.885rem + 1.65vmin);
}
div.book_content > div.no-overflow h5 {
font-size: calc(0.765rem + 1.45vmin);
}
div.book_content > div.no-overflow h6 {
font-size: calc(0.665rem + 1.25vmin);
}
div.book_content p,
div.book_content li {
line-height: 1.61803398875;
}
div.book_content h1 {
line-height: 1.2;
}
div.book_content h2 {
line-height: 1.3;
}
div.book_content h3 {
line-height: 1.4;
}
div.book_content h4 {
line-height: 1.4;
}
div.book_content h5 {
line-height: 1.4;
}
div.book_content h6 {
line-height: 1.4;
}
/* -- chapter title font size */
div.book_content > h3 {
font-size: calc(1.1845rem + 2.5vmin);
}
/* -- subchapter title font size */
div.book_content > h4 {
font-size: calc(0.885rem + 1.883vmin);
}
/* adding divider between book content and chapter title */
div.book_content div.no-overflow {
border-top: 1px solid #ffc107;
padding-top: 1rem;
border-bottom: 1px solid #ffc107;
margin-bottom: 2rem;
padding-bottom: 1rem;
overflow: visible !important;
}
/* -- navigation - custom peroperties */
.path-mod-book .navtop img.icon,
.path-mod-book .navbottom img.icon {
margin-right: 6px;
margin-left: 6px;
transition: transform 0.25s;
}
div.navtop.navimages img.icon:hover,
div.navbottom.navimages img.icon:hover {
transform: scale(1.5);
}
div.navtop.navimages img.icon,
div.navbottom.navimages img.icon {
/*height: 24px;*/
vertical-align: text-bottom; /*width: 24px;*/
}
div.book_content ol ol,
div.book_content ul ul,
div.book_content ol ul,
div.book_content ul ol {
margin-top: 0;
}
/* book navigation improvements */
#page-mod-book-view .navtop.clearfix.navimages {
max-width: 108ch;
margin: auto;
background-color: #fafafa;
border-radius: 40px;
padding: 0.5rem;
}
#page-mod-book-view .navbottom.clearfix.navimages {
max-width: 108ch;
margin: auto;
background-color: #fafafa;
border-radius: 40px;
padding: 0.5rem;
}
#page-mod-book-view .navtop.clearfix.navtext {
background-color: #fafafa;
border-radius: 40px;
padding: 0.5rem;
}
#page-mod-book-view .navbottom.clearfix.navtext {
background-color: #fafafa;
border-radius: 40px;
padding: 0.5rem;
}