forked from desolat/DokuWiki-Pagemove-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathstyle.less
More file actions
180 lines (147 loc) · 3.21 KB
/
Copy pathstyle.less
File metadata and controls
180 lines (147 loc) · 3.21 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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
/**
* Tree Manager
*/
#plugin_move__tree {
// hidden by default
display: none;
> div.trees {
display: flex;
gap: 1em;
margin: 1em 0;
}
// basic list layout
ul {
list-style-type: none;
margin: 0.25em/2 0 0.25em 2em;
padding: 0.25em/2;
li {
margin: 0;
padding: 0;
div.li {
display: flex;
align-items: center;
gap: 0.25em;
}
}
}
// namespace labels can be clicked to open/close
li.move-ns > div.li span {
cursor: pointer;
}
// icons are used for selection
li > div.li i svg {
width: 1.5em;
height: 1.5em;
cursor: pointer;
fill: @ini_text_neu;
}
li.selected > div.li i svg {
fill: @ini_link;
}
// moved items are highlighted
li.changed > div.li > span {
background-color: @ini_highlight;
}
li > div.li button {
background: none;
border: none;
padding: 0;
cursor: pointer;
opacity: 0;
&:hover svg {
fill: @ini_link;
}
}
li > div.li:hover button {
opacity: 1;
}
.drop-zone {
border-top: 3px dashed @ini_link;
}
.drag-icon {
// hide the element from view, but keep it visible
position: absolute;
left: -9999px;
display: inline-flex;
svg {
height: 32px;
width: 32px;
fill: @ini_text_neu;
}
}
form label {
display: block;
margin: 0.5em 0;
}
// root is not interactable
li.tree-root > div.li i,
li.tree-root > div.li span {
cursor: auto;
}
}
/**
* The progress page
*/
#plugin_move__progress {
.hide {
display: none;
}
#plugin_move__preview {
span {
cursor: pointer;
color: @ini_link;
}
ul {
li.page {
list-style-image: url(images/page.png);
}
li.media {
list-style-image: url(images/disk.png);
}
li.affected {
list-style-image: url(images/page_link.png);
}
}
}
}
/**
* The admin form
*/
.dokuwiki .plugin_move_form {
label.block {
text-align: left;
}
label.indent {
padding-left: 15px;
select,
input {
float: right;
}
}
}
/**
* Pagetool icon
*/
#dokuwiki__pagetools ul li.plugin_move_page a {
background-position: right 0;
}
#dokuwiki__pagetools ul li.plugin_move_page a:before {
content: url(images/sprite.png);
margin-top: 0;
}
#dokuwiki__pagetools:hover ul li.plugin_move_page a,
#dokuwiki__pagetools ul li.plugin_move_page a:focus,
#dokuwiki__pagetools ul li.plugin_move_page a:active {
background-image: url(images/sprite.png);
}
#dokuwiki__pagetools ul li.plugin_move_page a:hover,
#dokuwiki__pagetools ul li.plugin_move_page a:active,
#dokuwiki__pagetools ul li.plugin_move_page a:focus {
background-position: right -45px;
}
/**
* page rename link
*/
.plugin_move_page {
display: none; // will be shown by JavaScript
}