-
Notifications
You must be signed in to change notification settings - Fork 3
/
style.css
157 lines (140 loc) · 2.73 KB
/
style.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
/* default bookdown css */
p.caption {
color: #777;
margin-top: 10px;
}
p code {
white-space: inherit;
}
pre {
word-break: normal;
word-wrap: normal;
}
pre code {
white-space: inherit;
}
/* default css for fenced-blocks mod */
span.divhead-plain {
font-weight: bold;
font-style: normal;
}
span.divhead-definition {
font-weight: bold;
font-style: normal;
}
span.divhead-remark {
font-weight: bold;
font-style: normal;
}
div.proof {
margin-bottom: 1em;
}
/*
* Removed this with the latest version of bookdown, which includes
* a QED box after div.proof. But their version isn't great, as it bleeds into
* the following div sometimes.
*
* div.proof::after {
* position: relative;
* bottom: 1.5em;
* font-size: 150%;
* content: "\2610"; // square box QED
* }
*/
/*
* custom css for our book
*/
/* Photo credits */
div.photocredit {
font-size: small;
font-style: italic;
text-align: right;
position: relative;
}
/* The photocredit popup (appears on top) */
.photocredit .photocreditpopup {
visibility: hidden;
text-align: left;
position: absolute;
z-index: 1;
width: 50%;
right: 0;
bottom: 0;
border: thin solid black;
background-color: #EEE;
border-radius: 6px;
padding: 8px 8px;
}
/* Toggle this class when clicking on the popup container (hide and show the popup) */
.photocredit .show {
visibility: visible;
-webkit-animation: fadeIn 1s;
animation: fadeIn 1s
}
/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
from {opacity: 0;}
to {opacity: 1;}
}
@keyframes fadeIn {
from {opacity: 0;}
to {opacity:1 ;}
}
/* Theorem and other structures */
div.theorem, div.proposition, div.definition {
border: 1px solid gray;
border-radius: 1em;
padding-left: 1em;
padding-right: 1em;
padding-top: 0.5em;
margin-bottom: 0.5em;
}
div.theorem, div.proposition {
background-color: honeydew;
}
div.definition {
background-color: mintcream;
}
div.example {
background-color: aliceblue;
padding-left: 1em;
padding-right: 1em;
padding-top: 0.5em;
padding-bottom: 0.25em;
margin-bottom: 0.5em;
}
div.remark {
background-color: snow;
padding-left: 1em;
margin-top: 0.5em;
}
div.tryit {
background-color: seashell;
border-left: 1px solid gray;
padding-left: 1em;
margin-top: 0.5em;
}
span.tryit-before {
/* hide the default text */
display : none;
}
div.tryit::before {
/* replace default text */
font-weight : bold;
content: "Try It Yourself";
}
div.alert {
background-color: mistyrose;
border-left: 1px solid gray;
padding-left: 1em;
margin-top: 0.5em;
}
span.alert-before {
/* hide the default text */
display : none;
}
div.alert::before {
/* replace default text with ! icon */
font-size: 300%;
content: "\26A0";
}