-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathall.less
More file actions
161 lines (155 loc) · 3.29 KB
/
all.less
File metadata and controls
161 lines (155 loc) · 3.29 KB
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
/**
* TocTweak plugin for DokuWiki;
*/
.width18 { width: 18em !important; }
/*------------------------------------*
METATOC hierarchical list style
*------------------------------------*/
div.toc_hierarchical {
border-color: __border__;
border-style: solid;
border-width: thin;
border-radius: 4px;
padding-right: 1em;
background-color: __background_alt__;
h3 {
margin: 0;
padding: .2em 2em;
font-size: .875em;
}
> div {
}
ul {
counter-reset: hl_count;
list-style-type: none;
font-size: 95%;
li {
counter-increment: hl_count;
position: relative;
display: table;
}
li::before {
content: counters(hl_count, "-");
display: table-cell;
padding-right: .6em;
font-size: 80%;
}
}
}
/*------------------------------------*
INLINETOC
*------------------------------------*/
div.toc_inline {
margin-top: 10px;
margin-bottom: 5px;
border-color: __border__;
border-style: solid;
border-width: thin;
padding-top: 10px;
border-radius: 10px;
// background-color: __background_alt__;
h3 {
padding-left: 2em;
font-size: .875em;
font-weight: bold;
}
> div {
font-size: .9375em;
padding-left: 1.6em;
padding-right: 1.6em;
}
ul {
list-style-type: square;
line-height: 1.5em;
li.clear {
list-style-type: none;
}
}
}
[dir=rtl] div.toc_inline {
h3 {
padding-right: 2em;
font-size: .875em;
font-weight: bold;
}
ul {
list-style-type: square;
line-height: 1.5em;
}
}
/*------------------------------------*
SIDETOC
*------------------------------------*/
div.toc_shrinken {
font-size: .875em;
border-top: 1px solid __border__;
border-bottom: 1px solid __border__;
li.clear {
list-style-type: none;
}
}
/*------------------------------------*
Similar DokuWiki Built-in toc
/lib/tpl/dokuwiki/css/content.css
/lib/tpl/dokuwiki/css/_toc.css
*------------------------------------*/
div.toc_dokuwiki {
float: right;
margin: 0 0 1.4em 1.4em;
// border: 1px solid pink;
border-left: 4px solid #ccc;
padding: 0 0 1.4em 1.4em;
width: 12em;
background-color: __background__;
color: inherit;
h3 {
margin-left: -2em;
margin-bottom: 0;
padding: .5em 1em;
font-size: .875em;
font-weight: bold;
}
> div {
font-size: .875em;
color: inherit;
}
ul {
padding: 0;
margin: 0;
li {
// list-style: none;
padding: 0;
margin: 0;
line-height: 1.1;
div.li {
padding: .15em 0;
}
a {
}
}
li.clear {
// in case of toc list jumping one level
// (e.g. if heading level 3 follows directly after heading level 1)
list-style-type: none;
}
ul {
padding-left: 1em;
}
ul li {
}
}
}
[dir=rtl] div.toc_dokuwiki {
float: left;
margin: 0 1.4em 1.4em 0;
> div {
border-left-width: 0;
border-right: 4px solid #ccc;
}
ul {
ul {
padding-left: 0;
padding-right: 1em;
}
}
}