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