|
1
|
/** Styles specific to /fileedit... */ |
|
2
|
body.fileedit.waiting * { |
|
3
|
/* Triggered during AJAX requests. */ |
|
4
|
cursor: wait; |
|
5
|
} |
|
6
|
body.fileedit .error { |
|
7
|
padding: 0.25em; |
|
8
|
} |
|
9
|
body.fileedit .warning { |
|
10
|
padding: 0.25em; |
|
11
|
} |
|
12
|
body.fileedit textarea { |
|
13
|
font-family: monospace; |
|
14
|
flex: 10 1 auto; |
|
15
|
height: initial/*undo damage from some skins*/; |
|
16
|
max-width: initial /* default.css pins it at 95% */; |
|
17
|
} |
|
18
|
body.fileedit textarea:focus, |
|
19
|
body.fileedit input:focus{ |
|
20
|
/* Depending on the skin, it might be useful to add one or both of |
|
21
|
the following... */ |
|
22
|
/*border-width: 1px;*/ |
|
23
|
/*border: initial; */ |
|
24
|
} |
|
25
|
body.fileedit fieldset:not(.tab-wrapper) { |
|
26
|
margin: 0.5em 0 0.5em 0; |
|
27
|
padding: 0.25em 0; |
|
28
|
border-radius: 0.5em; |
|
29
|
border-color: inherit; |
|
30
|
border-width: 1px; |
|
31
|
font-size: 90%; |
|
32
|
overflow: auto; |
|
33
|
} |
|
34
|
body.fileedit fieldset > legend { |
|
35
|
margin: 0 0 0 1em; |
|
36
|
padding: 0 0.5em 0 0.5em; |
|
37
|
} |
|
38
|
body.fileedit fieldset > div { |
|
39
|
margin: 0 0.25em 0 0.25em; |
|
40
|
padding: 0; |
|
41
|
overflow: auto; |
|
42
|
} |
|
43
|
body.fileedit fieldset > div > .input-with-label { |
|
44
|
margin: 0.25em 0.5em; |
|
45
|
} |
|
46
|
body.fileedit fieldset > div > button { |
|
47
|
margin: 0.25em 0.5em; |
|
48
|
} |
|
49
|
body.fileedit .fileedit-hint { |
|
50
|
font-size: 80%; |
|
51
|
opacity: 0.75; |
|
52
|
} |
|
53
|
body.fileedit .fileedit-error-report { |
|
54
|
background: yellow; |
|
55
|
color: darkred; |
|
56
|
margin: 1em 0; |
|
57
|
padding: 0.5em; |
|
58
|
border-radius: 0.5em; |
|
59
|
} |
|
60
|
body.fileedit code.fileedit-manifest { |
|
61
|
display: block; |
|
62
|
height: 16em; |
|
63
|
overflow: auto; |
|
64
|
white-space: pre; |
|
65
|
} |
|
66
|
body.fileedit div.fileedit-preview { |
|
67
|
margin: 0; |
|
68
|
padding: 0; |
|
69
|
} |
|
70
|
body.fileedit #fileedit-tabs { |
|
71
|
margin: 0.5em 0 0 0; |
|
72
|
} |
|
73
|
body.fileedit #fileedit-tab-preview-wrapper { |
|
74
|
overflow: auto; |
|
75
|
} |
|
76
|
body.fileedit #fileedit-tab-preview-wrapper > pre { |
|
77
|
margin: 0; |
|
78
|
} |
|
79
|
body.fileedit #fileedit-tab-fileselect > h1 { |
|
80
|
margin: 0; |
|
81
|
} |
|
82
|
body.fileedit .fileedit-options > div > * { |
|
83
|
margin: 0.25em; |
|
84
|
} |
|
85
|
body.fileedit .fileedit-options.commit-message > div { |
|
86
|
display: flex; |
|
87
|
flex-direction: column; |
|
88
|
align-items: stretch; |
|
89
|
font-family: monospace; |
|
90
|
} |
|
91
|
body.fileedit .fileedit-options.commit-message > div > * { |
|
92
|
margin: 0.25em; |
|
93
|
} |
|
94
|
body.fileedit #fileedit-commit-button-wrapper { |
|
95
|
margin: 0.25em; |
|
96
|
} |
|
97
|
body.fileedit .tab-container > .tabs > .tab-panel > .fileedit-options { |
|
98
|
margin-top: 0; |
|
99
|
border: none; |
|
100
|
border-radius: 0; |
|
101
|
border-bottom-width: 1px; |
|
102
|
border-bottom-style: dotted; |
|
103
|
} |
|
104
|
body.fileedit .tab-container > .tabs > .tab-panel > .fileedit-options > button { |
|
105
|
vertical-align: middle; |
|
106
|
margin: 0.5em; |
|
107
|
} |
|
108
|
body.fileedit .tab-container > .tabs > .tab-panel > .fileedit-options > input { |
|
109
|
vertical-align: middle; |
|
110
|
margin: 0.5em; |
|
111
|
} |
|
112
|
body.fileedit .tab-container > .tabs > .tab-panel > .fileedit-options > .input-with-label { |
|
113
|
margin: 0 0.5em 0.25em 0.5em; |
|
114
|
} |
|
115
|
body.fileedit .fileedit-options > div > * { |
|
116
|
margin: 0.25em; |
|
117
|
} |
|
118
|
body.fileedit .fileedit-options.flex-container.flex-row { |
|
119
|
align-items: first baseline; |
|
120
|
} |
|
121
|
body.fileedit #fileedit-file-selector { |
|
122
|
display: flex; |
|
123
|
flex-direction: column; |
|
124
|
align-content: flex-start; |
|
125
|
padding: 0 0.25em; |
|
126
|
margin: 0; |
|
127
|
min-height: 12em; |
|
128
|
} |
|
129
|
body.fileedit #fileedit-file-selector select { |
|
130
|
margin: 0 0 0.5em 0; |
|
131
|
height: initial; |
|
132
|
font-family: monospace; |
|
133
|
border: initial; |
|
134
|
} |
|
135
|
body.fileedit select:focus { |
|
136
|
border: initial; |
|
137
|
} |
|
138
|
body.fileedit #fileedit-file-selector select option { |
|
139
|
margin: 0 0 0.5em 0.55em; |
|
140
|
} |
|
141
|
body.fileedit select option, |
|
142
|
body.fileedit select option:focus { |
|
143
|
border: none; |
|
144
|
} |
|
145
|
body.fileedit #fileedit-file-selector > div { |
|
146
|
padding: 0; |
|
147
|
margin: 0; |
|
148
|
} |
|
149
|
body.fileedit #fileedit-file-selector > div > * { |
|
150
|
margin: 0.25em 0.5em 0.25em 0; |
|
151
|
} |
|
152
|
body.fileedit #fileedit-stash-selector { |
|
153
|
margin: 0.25em; |
|
154
|
display: flex; |
|
155
|
flex-direction: row; |
|
156
|
flex-wrap: wrap; |
|
157
|
align-items: center; |
|
158
|
} |
|
159
|
body.fileedit #fileedit-stash-selector select { |
|
160
|
margin: 0 1em; |
|
161
|
height: initial; |
|
162
|
font-family: monospace; |
|
163
|
flex: 1 1 auto; |
|
164
|
} |
|
165
|
body.fileedit .tab-container > .tabs > .tab-panel { |
|
166
|
display: flex; |
|
167
|
flex-direction: column; |
|
168
|
} |
|
169
|
body.fileedit #fileedit-tab-diff-wrapper { |
|
170
|
margin: 0; |
|
171
|
padding: 0; |
|
172
|
/*overflow: hidden;*/ |
|
173
|
/* ^^^ we "really" want hidden and let a sub-sub-child element |
|
174
|
handle that, but that isn't working, for unknown reasons. */ |
|
175
|
overflow-x: auto; |
|
176
|
/*display: flex; |
|
177
|
flex-direction: column; |
|
178
|
align-items: stretch;*/ |
|
179
|
} |
|
180
|
body.fileedit #fileedit-tab-diff-wrapper > div { |
|
181
|
margin: 0.5em 0 0.5em 0; |
|
182
|
overflow-wrap: break-word; |
|
183
|
} |
|
184
|
body.fileedit table.sbsdiffcols { |
|
185
|
/*width: initial;*/ |
|
186
|
} |
|
187
|
body.fileedit #fileedit-tab-diff-wrapper > pre.udiff { |
|
188
|
margin-top: 0; |
|
189
|
} |
|
190
|
body.fileedit .sbsdiffcols div.difftxtcol { |
|
191
|
display: flex; |
|
192
|
flex-direction: column; |
|
193
|
align-items: stretch; |
|
194
|
width: initial; |
|
195
|
} |
|
196
|
body.fileedit .sbsdiffcols div.difftxtcol pre { |
|
197
|
max-width: 44em; |
|
198
|
} |
|
199
|
|
|
200
|
body.fileedit #fileedit-edit-status { |
|
201
|
border-radius: 0.25em 0.25em 0 0; |
|
202
|
margin: 0; |
|
203
|
padding: 0; |
|
204
|
width: 100%; |
|
205
|
cursor: initial; |
|
206
|
display: flex; |
|
207
|
flex-direction: row; |
|
208
|
flex-wrap: wrap; |
|
209
|
justify-content: space-between; |
|
210
|
font-family: monospace; |
|
211
|
} |
|
212
|
body.fileedit #fileedit-edit-status > span.name > a { |
|
213
|
display: block; |
|
214
|
word-break: break-word /* needed for long paths */; |
|
215
|
} |
|
216
|
body.fileedit #fileedit-edit-status > span.links { |
|
217
|
display: flex; |
|
218
|
flex-wrap: wrap; |
|
219
|
flex-direction: row; |
|
220
|
} |
|
221
|
body.fileedit #fileedit-file-selector span.is-new, |
|
222
|
body.fileedit #fileedit-file-selector span.is-modified { |
|
223
|
font-family: monospace; |
|
224
|
} |
|
225
|
body.fileedit #fileedit-edit-status span.links > * { |
|
226
|
margin: 0 0.25em; |
|
227
|
white-space: nowrap; |
|
228
|
} |
|
229
|
body.fileedit #fileedit-edit-status span.links > *::before { |
|
230
|
content: "["; |
|
231
|
} |
|
232
|
body.fileedit #fileedit-edit-status span.links > *::after { |
|
233
|
content: "]"; |
|
234
|
} |
|
235
|
/* JS selection of line numbers cannot work in preview mode, |
|
236
|
so disable the UI indications which imply that it does |
|
237
|
something... */ |
|
238
|
body.fileedit table.numbered-lines td.line-numbers > span { |
|
239
|
cursor: unset; |
|
240
|
} |
|
241
|
body.fileedit table.numbered-lines td.line-numbers > span:hover { |
|
242
|
background-color: inherit; |
|
243
|
} |
|
244
|
|