-
Notifications
You must be signed in to change notification settings - Fork 12
/
shell_default.css
260 lines (235 loc) · 5.25 KB
/
shell_default.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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
/*******************************************************************************
* shell_X.css controls the overall arrangement of the blocks on the page.
*******************************************************************************
*
* Authors: David Farmer, Rob Beezer
*
*******************************************************************************
*/
/* The overall structure is
html
head
body.pretext
header.ptx-masthead
nav.ptx-navbar
div.ptx-page
div.sidebar
nav.ptx-toc
main.ptx-main
div.ptx-content
div.ptx-content-footer
div.ptx-page-footer
*/
.pretext .ptx-masthead {
position: relative;
background: #fafafa;
min-height: inherit;
border: none;
position: relative;
}
.pretext .ptx-navbar {
position: sticky;
top: 0;
max-width: 904px;
height: 36px;
}
.pretext .ptx-page {
position: relative;
min-height: 100vh;
}
.ptx-content {
min-height: 60vh;
}
.pretext .ptx-sidebar {
position: sticky;
top: 36px;
left: 0;
float: left;
width: 240px;
}
.pretext .ptx-toc {
position: sticky;
top: 50px;
box-sizing: border-box;
overflow-y: scroll;
height: calc(100vh - 60px);
}
.pretext .ptx-page > .ptx-main {
display: block;
position: relative;
overflow-y: hidden;
margin: 0 0 0 240px;
padding: 1px 0 0 0;
background: white;
border-left: 1px solid #ccc;
}
.pretext .ptx-page .ptx-sidebar.hidden + .ptx-main {
margin-left: 0;
}
.pretext .ptx-page > .ptx-main.notoc {
margin-left: 0;
transition-property: margin-left;
transition-duration: 0.3s;
}
@media screen and (max-width: 800px) {
.pretext .ptx-page > .ptx-main {
margin-left: 0;
left: auto;
}
.pretext .ptx-page-footer {
/* Make space for navbar fixed to bottom of screen */
margin-bottom: 38px;
}
}
.pretext .ptx-page > .ptx-main .ptx-content {
max-width: 600px;
margin: 32px;
}
@media screen and (max-width: 663px) {
.pretext .ptx-page > .ptx-main .ptx-content {
/* Decrease the margins */
margin: 28px;
}
}
/*
.ptx-content.serif .para {
font-family: "PT Serif", "Times New Roman", serif;
font-size: 105%;
}
.ptx-content.serif #text-in-paragraphs .para,
.ptx-content.serif #Bcd .para,
.ptx-content.serif #interesting-corollary .para {
font-family: "Roboto Serif", serif;
font-size: 12pt;
line-height: 1.20;
font-variation-settings: 'wdth' 100;
}
.ptx-content.serif #table-calisthenics .para,
.ptx-content.serif #section-7 .para,
.ptx-content.serif #section-11 .para {
font-family: "Tinos", serif;
font-size: 115%;
line-height: 1.30;
}
.ptx-content.serif #section-6 .para,
.ptx-content.serif #section-6 .para {
font-family: "Noto", serif;
font-size: 115%;
line-height: 1.30;
}
*/
/* text in lists was big */
.ptx-content.serif .para .para,
.ptx-content[data-font="RS"] .para .para {
font-size: 100%;
}
.ptx-content[data-font="RS"] .code-inline {
background: #f6f6f6;
border: 1px solid #eee;
padding: 0.01em 0.15em 0.03em 0.15em;
margin-left: 0.15em;
margin-right: 0.15em;
border-radius: 0;
}
.pretext .ptx-content-footer {
margin-top: 2em;
display: flex;
justify-content: space-around;
max-width: 600px;
margin-left: 32px;
}
.pretext .ptx-content-footer .button {
min-width: 80px;
height: 35px;
color: #333333;
background-color: #ededed;
border: 1px solid #bababa;
padding: 0 10px;
display: flex;
gap: 10px;
align-items: center;
justify-content: center;
/* Disable accidental text-selection */
user-select: none;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pretext .ptx-content-footer .button .icon {
margin: 0 -7px; /* icons have lots of whitespace */
}
.pretext .ptx-content-footer .button:hover,
.pretext .ptx-content-footer .button:active,
.pretext .ptx-content-footer .button:focus {
background-color: #fafafa;
}
.pretext .ptx-sidebar.visible {
display: block;
}
.pretext .ptx-page-footer .feedback-link {
cursor: pointer;
text-align: center;
color: #333333;
background-color: #ededed;
border: 1px solid #bababa;
margin: 1.5em 0 0 0;
padding: 0 1em 0 1em;
height: 2em;
display: flex;
align-items: center;
}
.pretext .ptx-page-footer {
background: #f4f4f4;
margin-top: 2em;
padding-top: 0;
max-width: 900px;
border-top: 2px solid var(--sectiontoctext);
border-bottom: 2px solid var(--sectiontoctext);
display: flex;
flex-direction: row;
justify-content: space-around;
position: relative;
/*
z-index: 100;
*/
}
.pretext .ptx-page-footer > a {
margin: 1em 0;
}
.pretext .ptx-page-footer > a > .logo:first-child {
height: 3em;
width: unset;
margin: 0;
}
@media screen and (max-width: 800px) {
.pretext .ptx-navbar {
position: fixed;
top: auto;
bottom: 0;
z-index: 1100;
}
.pretext .ptx-sidebar {
display: none;
position: fixed;
top: 10px;
z-index: 1000;
background: white;
}
.pretext .ptx-content-footer {
display: none;
}
/*
.pretext .ptx-content-footer {
margin-bottom: 60px;
}
*/
.pretext .ptx-toc {
height: calc(100vh - 50px);
}
}
/*******************************************************************************
*
* Authors: David Farmer, Rob Beezer
*
*******************************************************************************
*/