forked from hadley/r-pkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
51 lines (44 loc) · 1.23 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
p.caption {
color: #777;
margin-top: 10px;
}
p code {
white-space: inherit;
}
pre {
word-break: normal;
word-wrap: normal;
}
pre code {
white-space: inherit;
}
/* Sidebar formating --------------------------------------------*/
div.rstudio-tip, div.tip {
border: 4px solid #ddd;
border-radius: 5px;
padding: 1em;
margin: 1em 0;
padding-left: 80px;
background-size: 70px;
background-repeat: no-repeat;
background-position: 5px center;
min-height: 120px;
}
div.rstudio-tip {
background-image: url("rstudio.png");
}
div.tip {
background-image: url("diagrams/lightbulb.png");
}
/* .book .book-body .page-wrapper .page-inner section.normal is needed
to override the styles produced by gitbook, which are ridiculously
overspecified. Goal of the selectors is to ensure internal "margins"
controlled only by padding of container */
.book .book-body .page-wrapper .page-inner section.normal div.rstudio-tip > :first-child,
.book .book-body .page-wrapper .page-inner section.normal div.tip > :first-child {
margin-top: 0;
}
.book .book-body .page-wrapper .page-inner section.normal div.rstudio-tip > :last-child,
.book .book-body .page-wrapper .page-inner section.normal div.tip > :last-child {
margin-bottom: 0;
}