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