-
Notifications
You must be signed in to change notification settings - Fork 632
/
book-stylesheet.css
88 lines (64 loc) · 1.96 KB
/
book-stylesheet.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
/*--------------------------------------------------------------------*\
This file contains the CSS that handles styling across the entire book.
Use the classes defined here to control the look of HTML elements in your contribution.
If you add new styles, remember explain what it does as shown below.
Index
- Styling for Table of Contents
- Styling for Embedded Videos
\*--------------------------------------------------------------------*/
/*--------------------------------------------------------------------*\
Styling for Table of Contents
- Ensures that menu items in the table of contents are big enough for readers
\*--------------------------------------------------------------------*/
#site-navigation li > a {
font-size: 1.1em;
}
/*--------------------------------------------------------------------*\
Styling for Embedded Videos (iframes)
- Ensures that videos can resize to suit the screen the book is read from.
- Also ensures that videos are horizontally centered.
\*--------------------------------------------------------------------*/
.video-container {
position: relative;
padding-bottom: 56.25%;
padding-top: 35px;
height: 0;
overflow: hidden;
}
.video-container iframe {
position: absolute;
top:0;
left: 0;
width: 100%;
height: 100%;
}
iframe {
margin: auto;
display:block;
}
/*--------------------------------------------------------------------*\
Styling for Tables
- Improves styling of tables over the default Markdown standard
- Adds borders to tables, and allows a rows to be highlighted when hovered
\*--------------------------------------------------------------------*/
th, td {
border: 1px solid #999999 !important;
text-align: center;
padding: 10px
}
th {
font-weight: bold;
background-color: #EEEEEE;
}
table caption {
color: black;
text-align: center;
}
table caption .footnote {
color: #666666;
text-align: left;
font-size: smaller;
}
tr:hover {
background-color: #f7f7f7;
}