##// END OF EJS Templates
fix(styling): fixed white background for markdown block codes
super-admin -
r5583:246ca379 default
parent child Browse files
Show More
@@ -1,406 +1,406 b''
1 1
2 2 /** MODAL **/
3 3 .modal-open {
4 4 overflow:hidden;
5 5 }
6 6 body.modal-open, .modal-open .navbar-fixed-top, .modal-open .navbar-fixed-bottom {
7 7 margin-right:15px;
8 8 }
9 9 .modal {
10 10 position:fixed;
11 11 top:0;
12 12 right:0;
13 13 bottom:0;
14 14 left:0;
15 15 z-index:1040;
16 16 display:none;
17 17 overflow-y:scroll;
18 18 &.fade .modal-dialog {
19 19 -webkit-transform:translate(0,-25%);
20 20 -ms-transform:translate(0,-25%);
21 21 transform:translate(0,-25%);
22 22 -webkit-transition:-webkit-transform 0.3s ease-out;
23 23 -moz-transition:-moz-transform 0.3s ease-out;
24 24 -o-transition:-o-transform 0.3s ease-out;
25 25 transition:transform 0.3s ease-out;
26 26 }
27 27 &.in .modal-dialog {
28 28 -webkit-transform:translate(0,0);
29 29 -ms-transform:translate(0,0);
30 30 transform:translate(0,0);
31 31 }
32 32 }
33 33 .modal-dialog {
34 34 z-index:1050;
35 35 width:auto;
36 36 padding:10px;
37 37 margin-right:auto;
38 38 margin-left:auto;
39 39 }
40 40 .modal-content {
41 41 position:relative;
42 42 background-color:#ffffff;
43 43 border: @border-thickness solid rgba(0,0,0,0.2);
44 44 .border-radius(@border-radius);
45 45 outline:none;
46 46 -webkit-box-shadow:0 3px 9px rgba(0,0,0,0.5);
47 47 box-shadow:0 3px 9px rgba(0,0,0,0.5);
48 48 background-clip:padding-box;
49 49 }
50 50 .modal-backdrop {
51 51 position:fixed;
52 52 top:0;
53 53 right:0;
54 54 bottom:0;
55 55 left:0;
56 56 z-index:1030;
57 57 background-color:#000000;
58 58
59 59 &.modal-backdrop.fade {
60 60 opacity:0;
61 61 filter:alpha(opacity=0);
62 62 }
63 63 &.in {
64 64 opacity:0.5;
65 65 filter:alpha(opacity=50);
66 66 }
67 67 }
68 68 .modal-header {
69 69 min-height:16.428571429px;
70 70 padding:15px;
71 71 border-bottom: @border-thickness solid @grey6;
72 72 .close {
73 73 margin-top:-2px;
74 74 }
75 75 }
76 76 .modal-title {
77 77 margin:0;
78 78 line-height:1.428571429;
79 79 }
80 80 .modal-body {
81 81 position:relative;
82 82 padding:20px;
83 83 }
84 84 .modal-footer {
85 85 padding:19px 20px 20px;
86 86 margin-top:15px;
87 87 text-align:right;
88 88 border-top:1px solid #e5e5e5;
89 89 .btn + .btn {
90 90 margin-bottom:0;
91 91 margin-left:5px;
92 92 }
93 93 .btn-group .btn + .btn {
94 94 margin-left:-1px;
95 95 }
96 96 .btn-block + .btn-block {
97 97 margin-left:0;
98 98 }
99 99 &:before {
100 100 display:table;
101 101 content:" ";
102 102 }
103 103 &:after {
104 104 display:table;
105 105 content:" ";
106 106 clear:both;
107 107 }
108 108 }
109 109
110 110 /** MARKDOWN styling **/
111 111 div.markdown-block {
112 112 clear: both;
113 113 overflow: hidden;
114 114 margin: 0;
115 115 padding: 3px 15px 3px;
116 116 }
117 117
118 118 div.markdown-block h1,
119 119 div.markdown-block h2,
120 120 div.markdown-block h3,
121 121 div.markdown-block h4,
122 122 div.markdown-block h5,
123 123 div.markdown-block h6 {
124 124 border-bottom: none !important;
125 125 padding: 0 !important;
126 126 overflow: visible !important;
127 127 }
128 128
129 129 div.markdown-block h1,
130 130 div.markdown-block h2 {
131 131 border-bottom: 1px #e6e5e5 solid !important;
132 132 }
133 133
134 134 div.markdown-block h1 {
135 135 font-size: 32px;
136 136 margin: 15px 0 15px 0 !important;
137 137 }
138 138
139 139 div.markdown-block h2 {
140 140 font-size: 24px !important;
141 141 margin: 34px 0 10px 0 !important;
142 142 }
143 143
144 144 div.markdown-block h3 {
145 145 font-size: 18px !important;
146 146 margin: 30px 0 8px 0 !important;
147 147 padding-bottom: 2px !important;
148 148 }
149 149
150 150 div.markdown-block h4 {
151 151 font-size: 13px !important;
152 152 margin: 18px 0 3px 0 !important;
153 153 }
154 154
155 155 div.markdown-block h5 {
156 156 font-size: 12px !important;
157 157 margin: 15px 0 3px 0 !important;
158 158 }
159 159
160 160 div.markdown-block h6 {
161 161 font-size: 12px;
162 162 color: #777777;
163 163 margin: 15px 0 3px 0 !important;
164 164 }
165 165
166 166 div.markdown-block hr {
167 167 border: 0;
168 168 color: #e6e5e5;
169 169 background-color: #e6e5e5;
170 170 height: 3px;
171 171 margin-bottom: 13px;
172 172 }
173 173
174 174 div.markdown-block blockquote {
175 175 color: #424242 !important;
176 176 padding: 8px 21px;
177 177 margin: 12px 0;
178 178 border-left: 4px solid @grey6;
179 179 }
180 180
181 181 div.markdown-block blockquote p {
182 182 color: #424242 !important;
183 183 padding: 0 !important;
184 184 margin: 0 !important;
185 185 line-height: 1.5;
186 186 }
187 187
188 188
189 189 div.markdown-block ol,
190 190 div.markdown-block ul,
191 191 div.markdown-block p,
192 192 div.markdown-block blockquote,
193 193 div.markdown-block dl,
194 194 div.markdown-block li,
195 195 div.markdown-block table {
196 196 color: #424242 !important;
197 197 font-size: 13px !important;
198 198 font-family: @text-regular;
199 199 font-weight: normal !important;
200 200 overflow: visible !important;
201 201 }
202 202
203 203 div.markdown-block pre {
204 204 margin: 3px 0px 13px 0px !important;
205 205 padding: .5em;
206 206 color: #424242 !important;
207 207 font-size: 13px !important;
208 208 overflow: visible !important;
209 209 line-height: 140% !important;
210 210 background-color: @grey7;
211 211 }
212 212
213 213 div.markdown-block img {
214 214 border-style: none;
215 215 background-color: #fff;
216 216 max-width: 100%;
217 217 }
218 218
219 219
220 220 div.markdown-block strong {
221 221 font-weight: 600;
222 222 margin: 0;
223 223 }
224 224
225 225 div.markdown-block ul.checkbox,
226 226 div.markdown-block ol.checkbox {
227 227 padding-left: 20px !important;
228 228 margin-top: 0px !important;
229 229 margin-bottom: 18px !important;
230 230 }
231 231
232 232 div.markdown-block ul,
233 233 div.markdown-block ol {
234 234 padding-left: 30px !important;
235 235 margin-top: 0px !important;
236 236 margin-bottom: 18px !important;
237 237 }
238 238
239 239 div.markdown-block ul.checkbox li,
240 240 div.markdown-block ol.checkbox li {
241 241 list-style: none !important;
242 242 margin: 0px !important;
243 243 padding: 0 !important;
244 244 }
245 245
246 246 div.markdown-block ul li,
247 247 div.markdown-block ol li {
248 248 list-style: disc !important;
249 249 margin: 0px !important;
250 250 padding: 0 !important;
251 251 }
252 252
253 253 div.markdown-block ol li {
254 254 list-style: decimal !important;
255 255 }
256 256
257 257
258 258 div.markdown-block #message {
259 259 .border-radius(@border-radius);
260 260 border: @border-thickness solid @grey5;
261 261 display: block;
262 262 width: 100%;
263 263 height: 60px;
264 264 margin: 6px 0px;
265 265 }
266 266
267 267 div.markdown-block button,
268 268 div.markdown-block #ws {
269 269 font-size: @basefontsize;
270 270 padding: 4px 6px;
271 271 .border-radius(@border-radius);
272 272 border: @border-thickness solid @grey5;
273 273 background-color: @grey6;
274 274 }
275 275
276 276 div.markdown-block p {
277 277 margin-top: 0;
278 278 margin-bottom: 16px;
279 279 padding: 0;
280 280 line-height: unset;
281 281 }
282 282
283 283 div.markdown-block code,
284 284 div.markdown-block pre,
285 285 div.markdown-block #ws,
286 286 div.markdown-block #message {
287 287 font-family: @text-monospace;
288 288 font-size: 11px;
289 289 .border-radius(@border-radius);
290 background-color: white;
290 background-color: transparent;
291 291 color: @grey3;
292 292 }
293 293
294 294
295 295 div.markdown-block code {
296 296 border: @border-thickness solid @grey6;
297 297 margin: 0 2px;
298 298 padding: 0 5px;
299 299 }
300 300
301 301 div.markdown-block pre {
302 302 border: @border-thickness solid @grey5;
303 303 overflow: auto;
304 304 padding: .5em;
305 305 background-color: @grey7;
306 306 }
307 307
308 308 div.markdown-block pre > code {
309 309 border: 0;
310 310 margin: 0;
311 311 padding: 0;
312 312 }
313 313
314 314 /** RST STYLE **/
315 315 div.rst-block {
316 316 clear: both;
317 317 overflow: hidden;
318 318 margin: 0;
319 319 padding: 3px 15px 3px;
320 320 }
321 321
322 322 div.rst-block h2 {
323 323 font-weight: normal;
324 324 }
325 325
326 326 div.rst-block h1,
327 327 div.rst-block h2,
328 328 div.rst-block h3,
329 329 div.rst-block h4,
330 330 div.rst-block h5,
331 331 div.rst-block h6 {
332 332 border-bottom: 0 !important;
333 333 margin: 0 !important;
334 334 padding: 0 !important;
335 335 line-height: 1.5em !important;
336 336 }
337 337
338 338
339 339 div.rst-block h1:first-child {
340 340 padding-top: .25em !important;
341 341 }
342 342
343 343 div.rst-block h2,
344 344 div.rst-block h3 {
345 345 margin: 1em 0 !important;
346 346 }
347 347
348 348 div.rst-block h1,
349 349 div.rst-block h2 {
350 350 border-bottom: 1px #e6e5e5 solid !important;
351 351 }
352 352
353 353 div.rst-block h2 {
354 354 margin-top: 1.5em !important;
355 355 padding-top: .5em !important;
356 356 }
357 357
358 358 div.rst-block p {
359 359 color: black !important;
360 360 margin: 1em 0 !important;
361 361 line-height: 1.5em !important;
362 362 }
363 363
364 364 div.rst-block ul {
365 365 list-style: disc !important;
366 366 margin: 1em 0 1em 2em !important;
367 367 clear: both;
368 368 }
369 369
370 370 div.rst-block ol {
371 371 list-style: decimal;
372 372 margin: 1em 0 1em 2em !important;
373 373 }
374 374
375 375 div.rst-block pre,
376 376 div.rst-block code {
377 377 font: 12px "Bitstream Vera Sans Mono","Courier",monospace;
378 378 }
379 379
380 380 div.rst-block code {
381 381 font-size: 12px !important;
382 382 background-color: ghostWhite !important;
383 383 color: #444 !important;
384 384 padding: 0 .2em !important;
385 385 border: 1px solid #dedede !important;
386 386 }
387 387
388 388 div.rst-block pre code {
389 389 padding: 0 !important;
390 390 font-size: 12px !important;
391 391 background-color: #eee !important;
392 392 border: none !important;
393 393 }
394 394
395 395 div.rst-block pre {
396 396 margin: 1em 0;
397 397 padding: @padding;
398 398 border: 1px solid @grey6;
399 399 .border-radius(@border-radius);
400 400 overflow: auto;
401 401 font-size: 12px;
402 402 color: #444;
403 403 background-color: @grey7;
404 404 }
405 405
406 406
General Comments 0
You need to be logged in to leave comments. Login now