style fixes
[mdref/mdref] / public / index.css
1 * {
2 font-size: 99.9%;
3 }
4
5 html, body{
6 height: 100%;
7 min-height: 100%;
8 }
9 body, code {
10 font-family: Inconsolata, Monospace, 'Courier New', Courier, monospace;
11 }
12 body {
13 line-height: 1.5;
14 font-size: 1.1em;
15 margin: 0;
16 padding: 0;
17 color: #3f3f3f;
18 }
19
20 div.page {
21 margin: auto;
22 max-width: 1200px;
23 min-height: 100%;
24 padding-bottom: 5em;
25 box-shadow: 0 0 20px 10px rgba(0, 0, 0, 0.5);
26 }
27
28 div.page>* {
29 margin-left: 1em;
30 }
31 div.page>ul, div.page>div>ul {
32 margin-left: 2em;
33 }
34
35 .sidebar {
36 float: right;
37 background: #f0f0f0;
38 border-bottom-left-radius: 10px;
39 padding: 0;
40 width: auto;
41 min-width: 200px;
42 padding-right: 1em;
43 }
44 .sidebar>ul {
45 }
46 .sidebar ul {
47 margin-left: 1em;
48 margin-top: .5em;
49 padding: 0;
50 list-style-type: none;
51 }
52
53 .sidebar .edit {
54 display: block;
55 position: relative;
56 top: 2em;
57 right: 0;
58 -webkit-transform: rotate(45deg);
59 transform: rotate(45deg);
60 text-decoration: none;
61 font-weight: bold;
62 text-shadow: 0 0 5px red;
63 float: right;
64 }
65
66 .sidebar .edit a {
67 color: white !important;
68 }
69 code {
70 border-radius: 2px;
71 padding: 0px 2px 2px 2px;
72 background: #f0f0f0;
73 color: #606060;
74 box-shadow: 0 0 1px #999;
75 }
76
77 code code {
78 display: inline;
79 padding: 0;
80 background: transparent;
81 border: none;
82 box-shadow: none;
83 }
84
85 pre>code {
86 display: inline-block;
87 padding: 1em;
88 min-width: 50%;
89 line-height: 1.2;
90 }
91
92 pre>code, pre>code code {
93 background: #333;
94 color: #eee;
95 }
96
97 p, pre, table, dl {
98 margin: 1em 2em;
99 margin-left: 2em !important;
100 }
101
102 pre>code, table, dl {
103 margin-bottom: 2em !important;
104 }
105
106 li>p {
107 margin: 1em 0;
108 }
109
110 blockquote {
111 border-top: 1px solid #800000;
112 border-bottom: 1px solid #800000;
113 background: #ffe4e1;
114 margin: 2em 0 !important;
115 }
116
117 ul {
118 margin-top: 1em;
119 margin-bottom: 2em;
120 }
121 li {
122 margin-bottom: .5em;
123 }
124 a, h1 code>a {
125 color: #2f4f4f;
126 }
127 a:hover {
128 text-decoration: none;
129 }
130 a[href^="http:"]:after, a[href^="https:"]:after {
131 content: " ⬈";
132 }
133
134 .var {
135 color: #800000;
136 }
137 .constant {
138 color: #2e8b57;
139 }
140
141 h1 {
142 line-height: 1.5;
143 margin-left: 0 !important;
144 }
145 h1 code {
146 font-weight: normal;
147 font-size: .9em;
148 line-height: 1.33;
149 }
150
151 footer, h1, li h3, th {
152 background: #708090;
153 color: #f5f5dc;
154 }
155
156 footer, h1 {
157 margin: 0;
158 max-width: 1200px;
159 padding: 1em;
160 }
161
162 li h3 {
163 border-radius: 4px;
164 display: inline-block;
165 width: auto;
166 padding: .2em;
167 margin: .5em 0 0 0;
168 }
169
170 div.page>h3, div.page>div>h3 {
171 margin-left: 1.25em;
172 }
173 div.page>h4, div.page>div>h4 {
174 margin-left: 1.5em;
175 }
176 div.page>h5, div.page>div>h5 {
177 margin-left: 1.75em;
178 }
179 div.page>h6, div.page>div>h6 {
180 margin-left: 2em;
181 }
182
183 h1 .constant, pre>code .consant, li h3 .constant {
184 color: #98fb98;
185 }
186
187 h1 .var, pre>code .var, li h3 .var {
188 color: #f4a460;
189 }
190
191 footer a, h1 a, pre>code a, li h3 a {
192 color: #b0e0e6;
193 }
194
195 li h3 a {
196 text-decoration: none;
197 }
198 li h3 a:hover {
199 text-decoration: underline;
200 }
201
202 #disqus_thread {
203 margin-top: 8em;
204 margin-right: 2em;
205 }
206
207 footer {
208 font-size: smaller;
209 text-align: center;
210 clear: both;
211 position: fixed;
212 bottom: 0;
213 width: 100%;
214 padding: 0;
215 margin: 0 !important;
216 }
217
218 footer ul {
219 margin: 0;
220 padding: 1em 0;
221 }
222
223 footer li {
224 list-style-type: none;
225 display: inline-block;
226 margin: 0 1em;
227 }
228
229 footer a {
230 text-decoration: none;
231 }
232
233 footer a:hover {
234 text-decoration: underline;
235 }
236
237 table {
238 border-collapse: collapse;
239 }
240 th, td {
241 padding: .4em;
242 }
243 dt {
244 font-weight: bold;
245 margin-top: 1em;
246 }
247 dd {
248 line-height: 1.33;
249 margin-left: 1em;
250 }
251 h1, footer, table, .sidebar, pre>code, li h3 {
252 box-shadow: 0 0 4px #708090;
253 }