forked from cosmocode/dokuwiki-plugin-prosemirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.less
177 lines (149 loc) · 3.59 KB
/
style.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
@import "customMenu.less";
// This can be used to have the menu bar stick below the header
@sticky-offset: 0rem;
@highlight-odd-ini_text: fade(@ini_background, 95%);
@highlight-even-ini_text: fade(@ini_text, 5%);
.ProseMirror {
white-space: pre-wrap;
outline: none;
counter-reset: prosemirror-footnote;
&::after {
display: block;
clear: both;
content: '';
}
.ProseMirror-selectednode {
outline: 2px solid #8cf;
}
li p {
margin: 0;
color: @ini_text;
}
.dwplugin {
border: 1px solid greenyellow;
}
.dwplugin::before {
content: '🔧';
color: greenyellow;
cursor: grab;
cursor: -webkit-grab;
}
.nodeHasForm {
&:hover {
background-color: #e8f1fd;
box-shadow: inset 0 0 0 1px #c6e0ff;
}
}
dl.code dd {
pre {
&::after {
content: attr(data-exithint);
float: right;
padding: 2px;
background: transparent;
border: 1px solid @ini_border;
border-radius: 7px;
box-shadow: 1px 3px @ini_border;
}
}
}
.footnote {
&::after {
content: counter(prosemirror-footnote) ')';
counter-increment: prosemirror-footnote;
}
}
// reset user agent margins for placeholder p in tables
th > p:only-child,
td > p:only-child {
margin-block-start: 0;
margin-block-end: 0;
}
.selectedCell {
background-color: rgba(200, 200, 255, 0.4);
}
}
.prosemirror_wrapper {
position: relative;
display: block;
.menubar {
position: sticky;
top: @sticky-offset;
margin-bottom: 0.5rem;
border-radius: 6px;
border: 1px solid #ddd;
}
}
.dokuwiki {
.plugin_prosemirror_useWYSIWYG {
position: absolute;
top: 2.9em;
right: 2em;
padding: 3px 8px;
background-color: white;
color: #444;
}
.footnote-tooltip {
.menubar {
position: static;
}
}
.plugin_prosemirror_linkform,
.plugin_prosemirror_mediaform,
.plugin_prosemirror_keyvalueform {
padding: 0;
background-color: white;
fieldset {
width: auto;
}
label {
display: block;
padding: 0.2rem;
input,
select {
width: 45%;
}
span {
display: inline-block;
width: 48%;
padding-right: 0.5em;
}
&:hover {
background-color: @ini_background_alt;
}
}
.mediaform_mediamanager,
.linkform_linkwiz {
float: right;
height: 30px;
margin: 0;
padding: 0;
background: transparent;
border: none;
svg {
width: 22px;
height: 22px;
margin: 0;
fill: #252525;
}
}
div.image-properties {
div.input-wrapper {
label {
padding: 0.2rem 0 0 0;
}
}
p {
margin: 0.75em 0 0.25rem 0;
}
}
}
#link__wiz {
z-index: 105; // set to what plugin edittable defines
}
}
// Workaround for sticky menubar in argon
main {
// Sticky elements can't have parents with overflow: hidden
overflow: unset !important;
}