forked from selfthinker/dokuwiki_plugin_wrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
all.less
347 lines (289 loc) · 6.89 KB
/
all.less
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
/********************************************************************
Screen and Print Styles for the Wrap Plugin
********************************************************************/
.dokuwiki {
/* resetting the box model to something more sane makes life a whole lot easier */
.plugin_wrap {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
/* emulate a headline
(only with 'emulatedHeadlines' config option set)
@deprecated 2018-03-20 */
.plugin_wrap.wrap__emuhead em strong {
font-size: 130%;
font-weight: bold;
font-style: normal;
display: block;
}
/* emulate a bigger headline with a bottom border */
.plugin_wrap.wrap__emuhead em strong em.u {
font-size: 115%;
border-bottom: 1px solid @ini_border;
font-style: normal;
text-decoration: none;
display: block;
}
/* different bigger headline for safety notes */
.wrap_danger.wrap__emuhead em strong em.u,
.wrap_warning.wrap__emuhead em strong em.u,
.wrap_caution.wrap__emuhead em strong em.u,
.wrap_notice.wrap__emuhead em strong em.u,
.wrap_safety.wrap__emuhead em strong em.u {
text-transform: uppercase;
border-bottom-width: 0;
}
/* change border colour of emulated headlines inside boxes to something more neutral
(to match all the different background colours) */
.wrap_box.wrap__emuhead em strong em.u,
.wrap_info.wrap__emuhead em strong em.u,
.wrap_important.wrap__emuhead em strong em.u,
.wrap_alert.wrap__emuhead em strong em.u,
.wrap_tip.wrap__emuhead em strong em.u,
.wrap_help.wrap__emuhead em strong em.u,
.wrap_todo.wrap__emuhead em strong em.u,
.wrap_download.wrap__emuhead em strong em.u {
border-bottom-color: #999;
}
/* real headlines should not be indented inside a wrap */
.plugin_wrap h1,
.plugin_wrap h2,
.plugin_wrap h3,
.plugin_wrap h4,
.plugin_wrap h5 {
margin-left: 0;
margin-right: 0;
}
/* columns
********************************************************************/
.wrap_left,
.wrap_column {
float: left;
margin-right: 1.5em;
}
[dir=rtl] .wrap_column {
float: right;
margin-left: 1.5em;
margin-right: 0;
}
.wrap_right {
float: right;
margin-left: 1.5em;
}
.wrap_center {
display: block;
margin-left: auto;
margin-right: auto;
}
/*____________ CSS3 columns ____________*/
.wrap_col2, .wrap_col3, .wrap_col4, .wrap_col5,
.wrap_colsmall, .wrap_colmedium, .wrap_collarge {
-moz-column-gap: 1.5em;
-webkit-column-gap: 1.5em;
column-gap: 1.5em;
-moz-column-rule: 1px dotted #666;
-webkit-column-rule: 1px dotted #666;
column-rule: 1px dotted #666;
}
.wrap_col2 {
-moz-column-count: 2;
-webkit-column-count: 2;
column-count: 2;
}
.wrap_col3 {
-moz-column-count: 3;
-webkit-column-count: 3;
column-count: 3;
}
.wrap_col4 {
-moz-column-count: 4;
-webkit-column-count: 4;
column-count: 4;
}
.wrap_col5 {
-moz-column-count: 5;
-webkit-column-count: 5;
column-count: 5;
}
.wrap_colsmall {
-moz-column-width: 10em;
-webkit-column-width: 10em;
column-width: 10em;
}
.wrap_colmedium {
-moz-column-width: 20em;
-webkit-column-width: 20em;
column-width: 20em;
}
.wrap_collarge {
-moz-column-width: 30em;
-webkit-column-width: 30em;
column-width: 30em;
}
/* widths
********************************************************************/
.wrap_twothirds {
width: 65%;
margin-right: 5%;
}
.wrap_half {
width: 48%;
margin-right: 4%;
}
.wrap_third {
width: 30%;
margin-right: 5%;
}
.wrap_quarter {
width: 22%;
margin-right: 4%;
}
[dir=rtl] .wrap_half,
[dir=rtl] .wrap_quarter {
margin-right: 0;
margin-left: 4%;
}
[dir=rtl] .wrap_twothirds,
[dir=rtl] .wrap_third {
margin-right: 0;
margin-left: 5%;
}
/* this doesn't always work when third and twothirds are mixed across rows
but can be fixed by adding any div (e.g. <WRAP clear/>) after a row */
.wrap_half + .wrap_half,
.wrap_third + .wrap_twothirds,
.wrap_twothirds + .wrap_third,
.wrap_third + .wrap_third + .wrap_third,
.wrap_quarter + .wrap_quarter + .wrap_quarter + .wrap_quarter {
margin-right: 0;
[dir=rtl] & {
margin-left: 0;
}
+ * {
clear: left;
[dir=rtl] & {
clear: right;
}
}
}
/* show 2 instead 4 columns on medium sized screens (mobile, etc) */
@media only screen and (max-width: 950px) {
.wrap_quarter {
width: 48%;
}
.wrap_quarter:nth-of-type(2n) {
margin-right: 0;
}
[dir=rtl] .wrap_quarter:nth-of-type(2n) {
margin-left: 0;
}
.wrap_quarter:nth-of-type(2n+1) {
clear: left;
}
[dir=rtl] .wrap_quarter:nth-of-type(2n) {
clear: right;
}
} /* /@media */
/* show full width on smaller screens (mobile, etc) */
@media only screen and (max-width: 600px) {
.wrap_twothirds,
.wrap_half,
.wrap_third,
.wrap_quarter {
width: auto;
margin-right: 0;
margin-left: 0;
float: none;
}
} /* /@media */
/* alignments
********************************************************************/
.wrap_leftalign {
text-align: left;
}
.wrap_centeralign {
text-align: center;
}
.wrap_rightalign {
text-align: right;
}
.wrap_justify {
text-align: justify;
}
/* box
********************************************************************/
/* see styles for boxes and notes with icons in style.less */
/*____________ rounded corners ____________*/
/* (only for modern browsers) */
div.wrap_round {
border-radius: 1.4em;
}
span.wrap_round {
border-radius: .14em;
}
/* mark
********************************************************************/
.wrap_lo {
font-size: 85%;
}
.wrap_em {
font-weight: bold;
}
/* see styles for highlighted text in style.css */
/* miscellaneous
********************************************************************/
/*____________ tablewidth ____________*/
.wrap_tablewidth table {
width: 100%;
}
/*____________ indent ____________*/
.wrap_indent {
padding-left: 1.5em;
}
[dir=rtl] .wrap_indent {
padding-right: 1.5em;
padding-left: 0;
}
/*____________ outdent ____________*/
.wrap_outdent {
margin-left: -1.5em;
}
[dir=rtl] .wrap_outdent {
margin-right: -1.5em;
margin-left: 0;
}
/*____________ word wrapping in pre ____________*/
div.wrap_prewrap pre {
white-space: pre-wrap;
word-wrap: break-word;/* for IE < 8 */
}
/*____________ spoiler ____________*/
div.wrap_spoiler {
margin-bottom: 1.5em;
}
/* see rest of spoiler styles in style.css */
/*____________ clear float ____________*/
.wrap_clear {
clear: both;
line-height: 0;
height: 0;
font-size: 1px;
visibility: hidden;
overflow: hidden;
}
/*____________ hide ____________*/
.wrap_hide {
display: none;
}
/*____________ button-style link ____________*/
.wrap_button a:link,
.wrap_button a:visited {
background-image: none;
border: 1px solid @ini_border;
border-radius: .3em;
padding: .5em .7em;
text-decoration: none;
}
/* see rest of button link styles in style.css */
} /* /.dokuwiki */