##// END OF EJS Templates
style: make arrows in usergroup members selector easier to press
dan -
r92:431954ef default
parent child Browse files
Show More
@@ -1,373 +1,378 b''
1 1
2 2 // Contains the style definitions used for .main-content
3 3 // elements which are mainly around the admin settings.
4 4
5 5
6 6 // TODO: johbo: Integrate in a better way, this is for "main content" which
7 7 // should not have a limit on the width.
8 8 .main-content-full {
9 9 clear: both;
10 10 }
11 11
12 12
13 13 .main-content {
14 14 max-width: @maincontent-maxwidth;
15 15
16 16 h3,
17 17 // TODO: johbo: Change templates to use h3 instead of h4 here
18 18 h4 {
19 19 line-height: 1em;
20 20 }
21 21
22 22 // TODO: johbo: Check if we can do that on a global level
23 23 table {
24 24 th {
25 25 padding: 0;
26 26 }
27 27 td.field{
28 28 .help-block{
29 29 margin-left: 0;
30 30 }
31 31 }
32 32 }
33 33
34 34 // TODO: johbo: Tweak this into the general styling, for a full width
35 35 // textarea
36 36 .textarea-full {
37 37 // 2x 10px padding and 2x 1px border
38 38 margin-right: 22px;
39 39 }
40 40
41 41 }
42 42
43 43
44 44 // TODO: johbo: duplicated, think about a mixins.less
45 45 .block-left{
46 46 float: left;
47 47 }
48 48
49 49 .form {
50 50 .checkboxes {
51 51 // TODO: johbo: Should be changed in .checkboxes already
52 52 width: auto;
53 53 }
54 54
55 55 // TODO: johbo: some settings pages are broken and don't have the .buttons
56 56 // inside the .fields, tweak those templates and remove this.
57 57 .buttons {
58 58 margin-top: @textmargin;
59 59 }
60 60
61 61 .help-block {
62 62 display: block;
63 63 margin-left: @label-width;
64 64 }
65 65
66 66 .action_button {
67 67 color: @grey4;
68 68 }
69 69 }
70 70
71 71 .main-content-full-width {
72 72 .main-content;
73 73 width: 100%;
74 74 min-width: 100%;
75 75 }
76 76
77 77 .field {
78 78 clear: left;
79 79 margin-bottom: @padding;
80 80
81 81 }
82 82
83 83 .fields {
84 84 label {
85 85 color: @grey2;
86 86 }
87 87
88 88 .field {
89 89 clear: right;
90 90 margin-bottom: @textmargin;
91 91 width: 100%;
92 92
93 93 .label {
94 94 float: left;
95 95 margin-right: @form-vertical-margin;
96 96 margin-top: 0;
97 97 padding-top: @input-padding-px + @border-thickness-inputs;
98 98 width: @label-width - @form-vertical-margin;
99 99 }
100 100 // used in forms for fields that show just text
101 101 .label-text {
102 102 .label;
103 103 padding-top: 5px;
104 104 }
105 105 // Used to position content on the right side of a .label
106 106 .content,
107 107 .side-by-side-selector {
108 108 padding-top: @input-padding-px + @input-border-thickness;
109 109 }
110 110
111 111 .checkboxes,
112 112 .input,
113 113 .select,
114 114 .textarea,
115 115 .content {
116 116 float: none;
117 117 margin-left: @label-width;
118 118
119 119 .help-block{
120 120 margin-left: 0;
121 121 }
122 122 }
123 123
124 124 .checkboxes,
125 125 .input,
126 126 .select {
127 127 .help-block {
128 128 display: block;
129 129 }
130 130 }
131 131
132 132 .checkboxes,
133 133 .radios {
134 134 // TODO: johbo: We get a 4px margin from the from-bootstrap,
135 135 // compensating here to align well with labels on the left.
136 136 padding-top: @input-padding-px + @input-border-thickness - 3px;
137 137 }
138 138
139 139 .checkbox,
140 140 .radio {
141 141 display: block;
142 142 width: auto;
143 143 }
144 144
145 145 .checkbox + .checkbox {
146 146 display: block;
147 147 }
148 148
149 149 .input,
150 150 .select {
151 151 .help-block,
152 152 .info-block {
153 153 margin-top: @form-vertical-margin / 2;
154 154 }
155 155 }
156 156
157 157 .input {
158 158 .medium {
159 159 width: @fields-input-m;
160 160 }
161 161 .large {
162 162 width: @fields-input-l;
163 163 }
164 164
165 165 .text-as-placeholder {
166 166 padding-top: @input-padding-px + @border-thickness-inputs;
167 167 }
168 168 }
169 169
170 170 // TODO: johbo: Try to find a better integration of this bit.
171 171 // When using a select2 inside of a field, it should not have the
172 172 // top margin.
173 173 .select .drop-menu {
174 174 margin-top: 0;
175 175 }
176 176
177 177 .textarea {
178 178 float: none;
179 179
180 180 textarea {
181 181 // TODO: johbo: From somewhere we get a clear which does
182 182 // more harm than good here.
183 183 clear: none;
184 184 }
185 185
186 186 .CodeMirror {
187 187 // TODO: johbo: Tweak to position the .help-block nicer,
188 188 // figure out how to apply for .text-block instead.
189 189 margin-bottom: 10px;
190 190 }
191 191
192 192 // TODO: johbo: Check if we can remove the grey background on
193 193 // the global level and remove this if possible.
194 194 .help-block {
195 195 background: transparent;
196 196 padding: 0;
197 197 }
198 198 }
199 199
200 200 &.tag_patterns,
201 201 &.branch_patterns {
202 202
203 203 input {
204 204 max-width: 430px;
205 205 }
206 206 }
207 207 }
208 208
209 209 .field-sm {
210 210 .label {
211 211 padding-top: @input-padding-px / 2 + @input-border-thickness;
212 212 }
213 213 .checkboxes,
214 214 .radios {
215 215 // TODO: johbo: We get a 4px margin from the from-bootstrap,
216 216 // compensating here to align well with labels on the left.
217 217 padding-top: @input-padding-px / 2 + @input-border-thickness - 3px;
218 218 }
219 219 }
220 220
221 221 .field.customhooks {
222 222 .label {
223 223 padding-top: 0;
224 224 }
225 225 .input-wrapper {
226 226 padding-right: 25px;
227 227
228 228 input {
229 229 width: 100%;
230 230 }
231 231 }
232 232 .input {
233 233 padding-right: 25px;
234 234 }
235 235 }
236 236
237 237 .buttons {
238 238 // TODO: johbo: define variable for this value.
239 239 // Note that this should be 40px but since most elements add some
240 240 // space in the bottom, we are with 20 closer to 40.
241 241 margin-top: 20px;
242 242 clear: both;
243 243 margin-bottom: @padding;
244 244 }
245 245
246 246 .desc{
247 247 margin-right: @textmargin;
248 248 }
249 249
250 250 input,
251 251 .drop-menu {
252 252 margin-right: @padding/3;
253 253 }
254 254
255 255 }
256 256
257 257 .form-vertical .fields .field {
258 258
259 259 .label {
260 260 float: none;
261 261 width: auto;
262 262 }
263 263
264 264 .checkboxes,
265 265 .input,
266 266 .select,
267 267 .textarea {
268 268 margin-left: 0;
269 269 }
270 270
271 271 // TODO: johbo: had to tweak the width here to make it big enough for
272 272 // the license.
273 273 .textarea.editor {
274 274 max-width: none;
275 275 }
276 276
277 277 .textarea.large textarea {
278 278 min-height: 200px;
279 279 }
280 280
281 281 .help-block {
282 282 margin-left: 0;
283 283 }
284 284 }
285 285
286 286
287 287
288 288
289 289 .main-content {
290 290 .block-left;
291 291
292 292 .section {
293 293 margin-bottom: @space;
294 294 }
295 295
296 296
297 297 // Table aligning same way as forms in admin section, e.g.
298 298 // python packages table
299 299 table.formalign {
300 300 float: left;
301 301 width: auto;
302 302
303 303 .label {
304 304 width: @label-width;
305 305 }
306 306
307 307 }
308 308
309 309
310 310 table.issuetracker {
311 311
312 312 color: @text-color;
313 313
314 314 .issue-tracker-example {
315 315 color: @grey4;
316 316 }
317 317 }
318 318
319 319 .side-by-side-selector{
320 320 .left-group,
321 321 .middle-group,
322 322 .right-group{
323 323 float: left;
324 324 }
325 325
326 326 .left-group,
327 327 .right-group{
328 328 width: 45%;
329 329 text-align: center;
330 330
331 331 label{
332 332 width: 100%;
333 333 text-align: left;
334 334 }
335 335
336 336 select{
337 337 width: 100%;
338 338 background: none;
339 339 border-color: @border-highlight-color;
340 340 color: @text-color;
341 341 font-family: @text-light;
342 342 font-size: @basefontsize;
343 343 color: @grey1;
344 344 padding: @textmargin/2;
345 345 }
346 346
347 347 select:after{
348 348 content: "";
349 349 }
350 350
351 351 }
352 352
353 353 .middle-group{
354 354 width: 10%;
355 355 text-align: center;
356 padding-top: 6em;
356 padding-top: 4em;
357 i {
358 font-size: 18px;
359 cursor: pointer;
360 line-height: 2em;
361 }
357 362 }
358 363
359 364 }
360 365
361 366 .permissions_boxes{
362 367 label, .label{
363 368 margin-right: @textmargin/2;
364 369 }
365 370 }
366 371
367 372 .radios{
368 373 label{
369 374 margin-right: @textmargin;
370 375 }
371 376 }
372 377 }
373 378
General Comments 0
You need to be logged in to leave comments. Login now