|
1 |
| -/* Base styles and content styles */ |
2 |
| - |
3 |
| -@import 'variables.css'; |
4 |
| - |
5 |
| -html { |
6 |
| - font-family: "Open Sans", sans-serif; |
7 |
| - color: var(--fg); |
8 |
| - background-color: var(--bg); |
9 |
| - text-size-adjust: none; |
10 |
| -} |
11 |
| - |
12 |
| -body { |
13 |
| - margin: 0; |
14 |
| - font-size: 1rem; |
15 |
| - overflow-x: hidden; |
16 |
| -} |
17 |
| - |
18 |
| -code { |
19 |
| - font-family: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; |
20 |
| - font-size: 0.875em; /* please adjust the ace font size accordingly in editor.js */ |
21 |
| -} |
22 |
| - |
23 |
| -.left { float: left; } |
24 |
| -.right { float: right; } |
25 |
| -.hidden { display: none; } |
26 |
| -.play-button.hidden { display: none; } |
27 |
| - |
28 |
| -h2, h3 { margin-top: 2.5em; } |
29 |
| -h4, h5 { margin-top: 2em; } |
30 |
| - |
31 |
| -.header + .header h3, |
32 |
| -.header + .header h4, |
33 |
| -.header + .header h5 { |
34 |
| - margin-top: 1em; |
35 |
| -} |
36 |
| - |
37 |
| -a.header:target h1:before, |
38 |
| -a.header:target h2:before, |
39 |
| -a.header:target h3:before, |
40 |
| -a.header:target h4:before { |
41 |
| - display: inline-block; |
42 |
| - content: "»"; |
43 |
| - margin-left: -30px; |
44 |
| - width: 30px; |
45 |
| -} |
46 |
| - |
47 |
| -.page { |
48 |
| - outline: 0; |
49 |
| - padding: 0 var(--page-padding); |
50 |
| -} |
51 |
| -.page-wrapper { |
52 |
| - box-sizing: border-box; |
53 |
| -} |
54 |
| -.js .page-wrapper { |
55 |
| - transition: margin-left 0.3s ease, transform 0.3s ease; /* Animation: slide away */ |
56 |
| -} |
57 |
| - |
58 |
| -.content { |
59 |
| - overflow-y: auto; |
60 |
| - padding: 0 15px; |
61 |
| - padding-bottom: 50px; |
62 |
| -} |
63 |
| -.content main { |
64 |
| - margin-left: auto; |
65 |
| - margin-right: auto; |
66 |
| - max-width: var(--content-max-width); |
67 |
| -} |
68 |
| -.content a { text-decoration: none; } |
69 |
| -.content a:hover { text-decoration: underline; } |
70 |
| -.content img { max-width: 100%; } |
71 |
| -.content .header:link, |
72 |
| -.content .header:visited { |
73 |
| - color: var(--fg); |
74 |
| -} |
75 |
| -.content .header:link, |
76 |
| -.content .header:visited:hover { |
77 |
| - text-decoration: none; |
78 |
| -} |
79 |
| - |
80 |
| -table { |
81 |
| - margin: 0 auto; |
82 |
| - border-collapse: collapse; |
83 |
| -} |
84 |
| -table td { |
85 |
| - padding: 3px 20px; |
86 |
| - border: 1px var(--table-border-color) solid; |
87 |
| -} |
88 |
| -table thead { |
89 |
| - background: var(--table-header-bg); |
90 |
| -} |
91 |
| -table thead td { |
92 |
| - font-weight: 700; |
93 |
| - border: none; |
94 |
| -} |
95 |
| -table thead tr { |
96 |
| - border: 1px var(--table-header-bg) solid; |
97 |
| -} |
98 |
| -/* Alternate background colors for rows */ |
99 |
| -table tbody tr:nth-child(2n) { |
100 |
| - background: var(--table-alternate-bg); |
101 |
| -} |
102 |
| - |
103 |
| - |
104 |
| -blockquote { |
105 |
| - margin: 20px 0; |
106 |
| - padding: 0 20px; |
107 |
| - color: var(--fg); |
108 |
| - background-color: var(--quote-bg); |
109 |
| - border-top: .1em solid var(--quote-border); |
110 |
| - border-bottom: .1em solid var(--quote-border); |
111 |
| -} |
112 |
| - |
113 |
| - |
114 |
| -:not(.footnote-definition) + .footnote-definition, |
115 |
| -.footnote-definition + :not(.footnote-definition) { |
116 |
| - margin-top: 2em; |
117 |
| -} |
118 |
| -.footnote-definition { |
119 |
| - font-size: 0.9em; |
120 |
| - margin: 0.5em 0; |
121 |
| -} |
122 |
| -.footnote-definition p { |
123 |
| - display: inline; |
124 |
| -} |
125 |
| - |
126 |
| -.tooltiptext { |
127 |
| - position: absolute; |
128 |
| - visibility: hidden; |
129 |
| - color: #fff; |
130 |
| - background-color: #333; |
131 |
| - transform: translateX(-50%); /* Center by moving tooltip 50% of its width left */ |
132 |
| - left: -8px; /* Half of the width of the icon */ |
133 |
| - top: -35px; |
134 |
| - font-size: 0.8em; |
135 |
| - text-align: center; |
136 |
| - border-radius: 6px; |
137 |
| - padding: 5px 8px; |
138 |
| - margin: 5px; |
139 |
| - z-index: 1000; |
140 |
| -} |
141 |
| -.tooltipped .tooltiptext { |
142 |
| - visibility: visible; |
143 |
| -} |
144 |
| - |
145 | 1 | /* From here on out is custom stuff */
|
146 | 2 |
|
147 | 3 | /* marker docs styles */
|
|
0 commit comments