-
Notifications
You must be signed in to change notification settings - Fork 51
/
style.css
144 lines (125 loc) · 2.85 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
/******************************************************************************
CSS for the R4Epi textbook
******************************************************************************/
/*
CSS that came with bookdown
*/
p.caption {
color: #777;
margin-top: 10px;
}
p code {
white-space: inherit;
}
pre {
word-break: normal;
word-wrap: normal;
}
pre code {
white-space: inherit;
}
/*
Font Styles
*/
.large-bold {
font-size: 2em;
font-weight: bold;
}
.underline {
text-decoration: underline;
}
.red-text {
color: red;
}
.u-orange-text {
color: #ae6042;
}
.u-blue-text {
color: #4e738a;
}
.code {
color: #0365C0;
font-family: "Courier New", Courier, monospace;
}
/*
Note styles
2023-09-05: Padding needs to be a little different when applying these classes
to a div vs a p. By default, a div will have more padding on bottom for some
reason. Creating a different style for p and for div prevents me from having
to go back through the chapters and change all of the note and warning p tags
to divs right now.
*/
p.note {
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
background-color: #f0f7fb;
border: solid 1px #3498db;
border-radius: 6px;
line-height: 18px;
overflow: hidden;
padding: 15px 15px;
}
div.note {
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
background-color: #f0f7fb;
border: solid 1px #3498db;
border-radius: 6px;
line-height: 18px;
overflow: hidden;
padding: 15px 15px 0px 15px;
margin: 10px 0px 10px 0px;
}
p.warning {
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
background-color: #FEFBEA;
border: solid 1px #F2E394;
border-radius: 6px;
line-height: 18px;
overflow: hidden;
padding: 15px 15px;
}
div.warning {
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
background-color: #FEFBEA;
border: solid 1px #F2E394;
border-radius: 6px;
line-height: 18px;
overflow: hidden;
padding: 15px 15px 0px 15px;
margin: 10px 0px 10px 0px;
}
/*
Text box with construction stripes for chapters under construction.
Helpful websites:
https://css-tricks.com/stripes-css/
https://stackoverflow.com/questions/10422949/css-background-opacity
*/
.under-construction {
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
/*background-color: rgba(248, 116, 49, 0.4);*/ /* Fourth number is opacity */
background: repeating-linear-gradient(
45deg,
rgba(248, 116, 49, 0.1) /* Fourth number is opacity */,
rgba(248, 116, 49, 0.1) 10px,
rgba(169, 169, 169, 0.15) 10px,
rgba(169, 169, 169, 0.15) 20px
);
border: solid 1px #F87431;
border-radius: 6px;
line-height: 26px;
overflow: hidden;
padding: 15px 15px 0px 15px;
font-size: 24px;
margin-bottom: 15px;
}
/*
Disable the title header from the index page.
https://stackoverflow.com/questions/53399095/disable-title-author-in-the-html-output-of-bookdown
*/
#header {
display: none;
}