##// END OF EJS Templates
style: fixed some wrong less arguments used.
marcink -
r1406:1948964e default
parent child Browse files
Show More
@@ -1,395 +1,395 b''
1
1
2
2
3 //BUTTONS
3 //BUTTONS
4 button,
4 button,
5 .btn,
5 .btn,
6 input[type="button"] {
6 input[type="button"] {
7 -webkit-appearance: none;
7 -webkit-appearance: none;
8 display: inline-block;
8 display: inline-block;
9 margin: 0 @padding/3 0 0;
9 margin: 0 @padding/3 0 0;
10 padding: @button-padding;
10 padding: @button-padding;
11 text-align: center;
11 text-align: center;
12 font-size: @basefontsize;
12 font-size: @basefontsize;
13 line-height: 1em;
13 line-height: 1em;
14 font-family: @text-light;
14 font-family: @text-light;
15 text-decoration: none;
15 text-decoration: none;
16 text-shadow: none;
16 text-shadow: none;
17 color: @grey4;
17 color: @grey4;
18 background-color: white;
18 background-color: white;
19 background-image: none;
19 background-image: none;
20 border: none;
20 border: none;
21 .border ( @border-thickness-buttons, @grey4 );
21 .border ( @border-thickness-buttons, @grey4 );
22 .border-radius (@border-radius);
22 .border-radius (@border-radius);
23 cursor: pointer;
23 cursor: pointer;
24 white-space: nowrap;
24 white-space: nowrap;
25 -webkit-transition: background .3s,color .3s;
25 -webkit-transition: background .3s,color .3s;
26 -moz-transition: background .3s,color .3s;
26 -moz-transition: background .3s,color .3s;
27 -o-transition: background .3s,color .3s;
27 -o-transition: background .3s,color .3s;
28 transition: background .3s,color .3s;
28 transition: background .3s,color .3s;
29
29
30 a {
30 a {
31 display: block;
31 display: block;
32 margin: 0;
32 margin: 0;
33 padding: 0;
33 padding: 0;
34 color: inherit;
34 color: inherit;
35 text-decoration: none;
35 text-decoration: none;
36
36
37 &:hover {
37 &:hover {
38 text-decoration: none;
38 text-decoration: none;
39 }
39 }
40 }
40 }
41
41
42 &:focus,
42 &:focus,
43 &:active {
43 &:active {
44 outline:none;
44 outline:none;
45 }
45 }
46 &:hover {
46 &:hover {
47 color: white;
47 color: white;
48 background-color: @grey4;
48 background-color: @grey4;
49 }
49 }
50
50
51 .icon-remove-sign {
51 .icon-remove-sign {
52 display: none;
52 display: none;
53 }
53 }
54
54
55 //disabled buttons
55 //disabled buttons
56 //last; overrides any other styles
56 //last; overrides any other styles
57 &:disabled {
57 &:disabled {
58 opacity: .7;
58 opacity: .7;
59 cursor: auto;
59 cursor: auto;
60 background-color: white;
60 background-color: white;
61 color: @grey4;
61 color: @grey4;
62 text-shadow: none;
62 text-shadow: none;
63 }
63 }
64
64
65 }
65 }
66
66
67
67
68 .btn-default {
68 .btn-default {
69 .border ( @border-thickness-buttons, @rcblue );
69 .border ( @border-thickness-buttons, @rcblue );
70 background-image: none;
70 background-image: none;
71 color: @rcblue;
71 color: @rcblue;
72
72
73 a {
73 a {
74 color: @rcblue;
74 color: @rcblue;
75 }
75 }
76
76
77 &:hover,
77 &:hover,
78 &.active {
78 &.active {
79 color: white;
79 color: white;
80 background-color: @rcdarkblue;
80 background-color: @rcdarkblue;
81 .border ( @border-thickness, @rcdarkblue );
81 .border ( @border-thickness, @rcdarkblue );
82
82
83 a {
83 a {
84 color: white;
84 color: white;
85 }
85 }
86 }
86 }
87 &:disabled {
87 &:disabled {
88 .border ( @border-thickness-buttons, @grey4 );
88 .border ( @border-thickness-buttons, @grey4 );
89 background-color: none;
89 background-color: transparent;
90 }
90 }
91 }
91 }
92
92
93 .btn-primary,
93 .btn-primary,
94 .btn-small, /* TODO: anderson: remove .btn-small to not mix with the new btn-sm */
94 .btn-small, /* TODO: anderson: remove .btn-small to not mix with the new btn-sm */
95 .btn-success {
95 .btn-success {
96 .border ( @border-thickness, @rcblue );
96 .border ( @border-thickness, @rcblue );
97 background-color: @rcblue;
97 background-color: @rcblue;
98 color: white;
98 color: white;
99
99
100 a {
100 a {
101 color: white;
101 color: white;
102 }
102 }
103
103
104 &:hover,
104 &:hover,
105 &.active {
105 &.active {
106 .border ( @border-thickness, @rcdarkblue );
106 .border ( @border-thickness, @rcdarkblue );
107 color: white;
107 color: white;
108 background-color: @rcdarkblue;
108 background-color: @rcdarkblue;
109
109
110 a {
110 a {
111 color: white;
111 color: white;
112 }
112 }
113 }
113 }
114 &:disabled {
114 &:disabled {
115 background-color: @rcblue;
115 background-color: @rcblue;
116 }
116 }
117 }
117 }
118
118
119 .btn-secondary {
119 .btn-secondary {
120 &:extend(.btn-default);
120 &:extend(.btn-default);
121
121
122 background-color: white;
122 background-color: white;
123
123
124 &:focus {
124 &:focus {
125 outline: 0;
125 outline: 0;
126 }
126 }
127
127
128 &:hover {
128 &:hover {
129 &:extend(.btn-default:hover);
129 &:extend(.btn-default:hover);
130 }
130 }
131
131
132 &.btn-link {
132 &.btn-link {
133 &:extend(.btn-link);
133 &:extend(.btn-link);
134 color: @rcblue;
134 color: @rcblue;
135 }
135 }
136
136
137 &:disabled {
137 &:disabled {
138 color: @rcblue;
138 color: @rcblue;
139 background-color: white;
139 background-color: white;
140 }
140 }
141 }
141 }
142
142
143 .btn-warning,
143 .btn-warning,
144 .btn-danger,
144 .btn-danger,
145 .revoke_perm,
145 .revoke_perm,
146 .btn-x,
146 .btn-x,
147 .form .action_button.btn-x {
147 .form .action_button.btn-x {
148 .border ( @border-thickness, @alert2 );
148 .border ( @border-thickness, @alert2 );
149 background-color: white;
149 background-color: white;
150 color: @alert2;
150 color: @alert2;
151
151
152 a {
152 a {
153 color: @alert2;
153 color: @alert2;
154 }
154 }
155
155
156 &:hover,
156 &:hover,
157 &.active {
157 &.active {
158 .border ( @border-thickness, @alert2 );
158 .border ( @border-thickness, @alert2 );
159 color: white;
159 color: white;
160 background-color: @alert2;
160 background-color: @alert2;
161
161
162 a {
162 a {
163 color: white;
163 color: white;
164 }
164 }
165 }
165 }
166
166
167 i {
167 i {
168 display:none;
168 display:none;
169 }
169 }
170
170
171 &:disabled {
171 &:disabled {
172 background-color: white;
172 background-color: white;
173 color: @alert2;
173 color: @alert2;
174 }
174 }
175 }
175 }
176
176
177 .btn-sm,
177 .btn-sm,
178 .btn-mini,
178 .btn-mini,
179 .field-sm .btn {
179 .field-sm .btn {
180 padding: @padding/3;
180 padding: @padding/3;
181 }
181 }
182
182
183 .btn-xs {
183 .btn-xs {
184 padding: @padding/4;
184 padding: @padding/4;
185 }
185 }
186
186
187 .btn-lg {
187 .btn-lg {
188 padding: @padding * 1.2;
188 padding: @padding * 1.2;
189 }
189 }
190
190
191 .btn-group {
191 .btn-group {
192 display: inline-block;
192 display: inline-block;
193 .btn {
193 .btn {
194 float: left;
194 float: left;
195 margin: 0 0 0 -1px;
195 margin: 0 0 0 -1px;
196 }
196 }
197 }
197 }
198
198
199 .btn-link {
199 .btn-link {
200 background: transparent;
200 background: transparent;
201 border: none;
201 border: none;
202 padding: 0;
202 padding: 0;
203 color: @rcblue;
203 color: @rcblue;
204
204
205 &:hover {
205 &:hover {
206 background: transparent;
206 background: transparent;
207 border: none;
207 border: none;
208 color: @rcdarkblue;
208 color: @rcdarkblue;
209 }
209 }
210
210
211 //disabled buttons
211 //disabled buttons
212 //last; overrides any other styles
212 //last; overrides any other styles
213 &:disabled {
213 &:disabled {
214 opacity: .7;
214 opacity: .7;
215 cursor: auto;
215 cursor: auto;
216 background-color: white;
216 background-color: white;
217 color: @grey4;
217 color: @grey4;
218 text-shadow: none;
218 text-shadow: none;
219 }
219 }
220
220
221 // TODO: johbo: Check if we can avoid this, indicates that the structure
221 // TODO: johbo: Check if we can avoid this, indicates that the structure
222 // is not yet good.
222 // is not yet good.
223 // lisa: The button CSS reflects the button HTML; both need a cleanup.
223 // lisa: The button CSS reflects the button HTML; both need a cleanup.
224 &.btn-danger {
224 &.btn-danger {
225 color: @alert2;
225 color: @alert2;
226
226
227 &:hover {
227 &:hover {
228 color: darken(@alert2,30%);
228 color: darken(@alert2,30%);
229 }
229 }
230
230
231 &:disabled {
231 &:disabled {
232 color: @alert2;
232 color: @alert2;
233 }
233 }
234 }
234 }
235 }
235 }
236
236
237 .btn-social {
237 .btn-social {
238 &:extend(.btn-default);
238 &:extend(.btn-default);
239 margin: 5px 5px 5px 0px;
239 margin: 5px 5px 5px 0px;
240 min-width: 150px;
240 min-width: 150px;
241 }
241 }
242
242
243 // TODO: johbo: check these exceptions
243 // TODO: johbo: check these exceptions
244
244
245 .links {
245 .links {
246
246
247 .btn + .btn {
247 .btn + .btn {
248 margin-top: @padding;
248 margin-top: @padding;
249 }
249 }
250 }
250 }
251
251
252
252
253 .action_button {
253 .action_button {
254 display:inline;
254 display:inline;
255 margin: 0;
255 margin: 0;
256 padding: 0 1em 0 0;
256 padding: 0 1em 0 0;
257 font-size: inherit;
257 font-size: inherit;
258 color: @rcblue;
258 color: @rcblue;
259 border: none;
259 border: none;
260 .border-radius (0);
260 .border-radius (0);
261 background-color: transparent;
261 background-color: transparent;
262
262
263 &:last-child {
263 &:last-child {
264 border: none;
264 border: none;
265 }
265 }
266
266
267 &:hover {
267 &:hover {
268 color: @rcdarkblue;
268 color: @rcdarkblue;
269 background-color: transparent;
269 background-color: transparent;
270 border: none;
270 border: none;
271 }
271 }
272 }
272 }
273 .grid_delete {
273 .grid_delete {
274 .action_button {
274 .action_button {
275 border: none;
275 border: none;
276 }
276 }
277 }
277 }
278
278
279
279
280 // TODO: johbo: Form button tweaks, check if we can use the classes instead
280 // TODO: johbo: Form button tweaks, check if we can use the classes instead
281 input[type="submit"] {
281 input[type="submit"] {
282 &:extend(.btn-primary);
282 &:extend(.btn-primary);
283
283
284 &:focus {
284 &:focus {
285 outline: 0;
285 outline: 0;
286 }
286 }
287
287
288 &:hover {
288 &:hover {
289 &:extend(.btn-primary:hover);
289 &:extend(.btn-primary:hover);
290 }
290 }
291
291
292 &.btn-link {
292 &.btn-link {
293 &:extend(.btn-link);
293 &:extend(.btn-link);
294 color: @rcblue;
294 color: @rcblue;
295
295
296 &:disabled {
296 &:disabled {
297 color: @rcblue;
297 color: @rcblue;
298 background-color: transparent;
298 background-color: transparent;
299 }
299 }
300 }
300 }
301
301
302 &:disabled {
302 &:disabled {
303 .border ( @border-thickness-buttons, @rcblue );
303 .border ( @border-thickness-buttons, @rcblue );
304 background-color: @rcblue;
304 background-color: @rcblue;
305 color: white;
305 color: white;
306 }
306 }
307 }
307 }
308
308
309 input[type="reset"] {
309 input[type="reset"] {
310 &:extend(.btn-default);
310 &:extend(.btn-default);
311
311
312 // TODO: johbo: Check if this tweak can be avoided.
312 // TODO: johbo: Check if this tweak can be avoided.
313 background: transparent;
313 background: transparent;
314
314
315 &:focus {
315 &:focus {
316 outline: 0;
316 outline: 0;
317 }
317 }
318
318
319 &:hover {
319 &:hover {
320 &:extend(.btn-default:hover);
320 &:extend(.btn-default:hover);
321 }
321 }
322
322
323 &.btn-link {
323 &.btn-link {
324 &:extend(.btn-link);
324 &:extend(.btn-link);
325 color: @rcblue;
325 color: @rcblue;
326
326
327 &:disabled {
327 &:disabled {
328 border: none;
328 border: none;
329 }
329 }
330 }
330 }
331
331
332 &:disabled {
332 &:disabled {
333 .border ( @border-thickness-buttons, @rcblue );
333 .border ( @border-thickness-buttons, @rcblue );
334 background-color: white;
334 background-color: white;
335 color: @rcblue;
335 color: @rcblue;
336 }
336 }
337 }
337 }
338
338
339 input[type="submit"],
339 input[type="submit"],
340 input[type="reset"] {
340 input[type="reset"] {
341 &.btn-danger {
341 &.btn-danger {
342 &:extend(.btn-danger);
342 &:extend(.btn-danger);
343
343
344 &:focus {
344 &:focus {
345 outline: 0;
345 outline: 0;
346 }
346 }
347
347
348 &:hover {
348 &:hover {
349 &:extend(.btn-danger:hover);
349 &:extend(.btn-danger:hover);
350 }
350 }
351
351
352 &.btn-link {
352 &.btn-link {
353 &:extend(.btn-link);
353 &:extend(.btn-link);
354 color: @alert2;
354 color: @alert2;
355
355
356 &:hover {
356 &:hover {
357 color: darken(@alert2,30%);
357 color: darken(@alert2,30%);
358 }
358 }
359 }
359 }
360
360
361 &:disabled {
361 &:disabled {
362 color: @alert2;
362 color: @alert2;
363 background-color: white;
363 background-color: white;
364 }
364 }
365 }
365 }
366 &.btn-danger-action {
366 &.btn-danger-action {
367 .border ( @border-thickness, @alert2 );
367 .border ( @border-thickness, @alert2 );
368 background-color: @alert2;
368 background-color: @alert2;
369 color: white;
369 color: white;
370
370
371 a {
371 a {
372 color: white;
372 color: white;
373 }
373 }
374
374
375 &:hover {
375 &:hover {
376 background-color: darken(@alert2,20%);
376 background-color: darken(@alert2,20%);
377 }
377 }
378
378
379 &.active {
379 &.active {
380 .border ( @border-thickness, @alert2 );
380 .border ( @border-thickness, @alert2 );
381 color: white;
381 color: white;
382 background-color: @alert2;
382 background-color: @alert2;
383
383
384 a {
384 a {
385 color: white;
385 color: white;
386 }
386 }
387 }
387 }
388
388
389 &:disabled {
389 &:disabled {
390 background-color: white;
390 background-color: white;
391 color: @alert2;
391 color: @alert2;
392 }
392 }
393 }
393 }
394 }
394 }
395
395
@@ -1,1143 +1,1143 b''
1 // Default styles
1 // Default styles
2
2
3 .diff-collapse {
3 .diff-collapse {
4 margin: @padding 0;
4 margin: @padding 0;
5 text-align: right;
5 text-align: right;
6 }
6 }
7
7
8 .diff-container {
8 .diff-container {
9 margin-bottom: @space;
9 margin-bottom: @space;
10
10
11 .diffblock {
11 .diffblock {
12 margin-bottom: @space;
12 margin-bottom: @space;
13 }
13 }
14
14
15 &.hidden {
15 &.hidden {
16 display: none;
16 display: none;
17 overflow: hidden;
17 overflow: hidden;
18 }
18 }
19 }
19 }
20
20
21 .compare_view_files {
21 .compare_view_files {
22
22
23 .diff-container {
23 .diff-container {
24
24
25 .diffblock {
25 .diffblock {
26 margin-bottom: 0;
26 margin-bottom: 0;
27 }
27 }
28 }
28 }
29 }
29 }
30
30
31 div.diffblock .sidebyside {
31 div.diffblock .sidebyside {
32 background: #ffffff;
32 background: #ffffff;
33 }
33 }
34
34
35 div.diffblock {
35 div.diffblock {
36 overflow-x: auto;
36 overflow-x: auto;
37 overflow-y: hidden;
37 overflow-y: hidden;
38 clear: both;
38 clear: both;
39 padding: 0px;
39 padding: 0px;
40 background: @grey6;
40 background: @grey6;
41 border: @border-thickness solid @grey5;
41 border: @border-thickness solid @grey5;
42 -webkit-border-radius: @border-radius @border-radius 0px 0px;
42 -webkit-border-radius: @border-radius @border-radius 0px 0px;
43 border-radius: @border-radius @border-radius 0px 0px;
43 border-radius: @border-radius @border-radius 0px 0px;
44
44
45
45
46 .comments-number {
46 .comments-number {
47 float: right;
47 float: right;
48 }
48 }
49
49
50 // BEGIN CODE-HEADER STYLES
50 // BEGIN CODE-HEADER STYLES
51
51
52 .code-header {
52 .code-header {
53 background: @grey6;
53 background: @grey6;
54 padding: 10px 0 10px 0;
54 padding: 10px 0 10px 0;
55 height: auto;
55 height: auto;
56 width: 100%;
56 width: 100%;
57
57
58 .hash {
58 .hash {
59 float: left;
59 float: left;
60 padding: 2px 0 0 2px;
60 padding: 2px 0 0 2px;
61 }
61 }
62
62
63 .date {
63 .date {
64 float: left;
64 float: left;
65 text-transform: uppercase;
65 text-transform: uppercase;
66 padding: 4px 0px 0px 2px;
66 padding: 4px 0px 0px 2px;
67 }
67 }
68
68
69 div {
69 div {
70 margin-left: 4px;
70 margin-left: 4px;
71 }
71 }
72
72
73 div.compare_header {
73 div.compare_header {
74 min-height: 40px;
74 min-height: 40px;
75 margin: 0;
75 margin: 0;
76 padding: 0 @padding;
76 padding: 0 @padding;
77
77
78 .drop-menu {
78 .drop-menu {
79 float:left;
79 float:left;
80 display: block;
80 display: block;
81 margin:0 0 @padding 0;
81 margin:0 0 @padding 0;
82 }
82 }
83
83
84 .compare-label {
84 .compare-label {
85 float: left;
85 float: left;
86 clear: both;
86 clear: both;
87 display: inline-block;
87 display: inline-block;
88 min-width: 5em;
88 min-width: 5em;
89 margin: 0;
89 margin: 0;
90 padding: @button-padding @button-padding @button-padding 0;
90 padding: @button-padding @button-padding @button-padding 0;
91 font-family: @text-semibold;
91 font-family: @text-semibold;
92 }
92 }
93
93
94 .compare-buttons {
94 .compare-buttons {
95 float: left;
95 float: left;
96 margin: 0;
96 margin: 0;
97 padding: 0 0 @padding;
97 padding: 0 0 @padding;
98
98
99 .btn {
99 .btn {
100 margin: 0 @padding 0 0;
100 margin: 0 @padding 0 0;
101 }
101 }
102 }
102 }
103 }
103 }
104
104
105 }
105 }
106
106
107 .parents {
107 .parents {
108 float: left;
108 float: left;
109 width: 100px;
109 width: 100px;
110 font-weight: 400;
110 font-weight: 400;
111 vertical-align: middle;
111 vertical-align: middle;
112 padding: 0px 2px 0px 2px;
112 padding: 0px 2px 0px 2px;
113 background-color: @grey6;
113 background-color: @grey6;
114
114
115 #parent_link {
115 #parent_link {
116 margin: 00px 2px;
116 margin: 00px 2px;
117
117
118 &.double {
118 &.double {
119 margin: 0px 2px;
119 margin: 0px 2px;
120 }
120 }
121
121
122 &.disabled{
122 &.disabled{
123 margin-right: @padding;
123 margin-right: @padding;
124 }
124 }
125 }
125 }
126 }
126 }
127
127
128 .children {
128 .children {
129 float: right;
129 float: right;
130 width: 100px;
130 width: 100px;
131 font-weight: 400;
131 font-weight: 400;
132 vertical-align: middle;
132 vertical-align: middle;
133 text-align: right;
133 text-align: right;
134 padding: 0px 2px 0px 2px;
134 padding: 0px 2px 0px 2px;
135 background-color: @grey6;
135 background-color: @grey6;
136
136
137 #child_link {
137 #child_link {
138 margin: 0px 2px;
138 margin: 0px 2px;
139
139
140 &.double {
140 &.double {
141 margin: 0px 2px;
141 margin: 0px 2px;
142 }
142 }
143
143
144 &.disabled{
144 &.disabled{
145 margin-right: @padding;
145 margin-right: @padding;
146 }
146 }
147 }
147 }
148 }
148 }
149
149
150 .changeset_header {
150 .changeset_header {
151 height: 16px;
151 height: 16px;
152
152
153 & > div{
153 & > div{
154 margin-right: @padding;
154 margin-right: @padding;
155 }
155 }
156 }
156 }
157
157
158 .changeset_file {
158 .changeset_file {
159 text-align: left;
159 text-align: left;
160 float: left;
160 float: left;
161 padding: 0;
161 padding: 0;
162
162
163 a{
163 a{
164 display: inline-block;
164 display: inline-block;
165 margin-right: 0.5em;
165 margin-right: 0.5em;
166 }
166 }
167
167
168 #selected_mode{
168 #selected_mode{
169 margin-left: 0;
169 margin-left: 0;
170 }
170 }
171 }
171 }
172
172
173 .diff-menu-wrapper {
173 .diff-menu-wrapper {
174 float: left;
174 float: left;
175 }
175 }
176
176
177 .diff-menu {
177 .diff-menu {
178 position: absolute;
178 position: absolute;
179 background: none repeat scroll 0 0 #FFFFFF;
179 background: none repeat scroll 0 0 #FFFFFF;
180 border-color: #003367 @grey3 @grey3;
180 border-color: #003367 @grey3 @grey3;
181 border-right: 1px solid @grey3;
181 border-right: 1px solid @grey3;
182 border-style: solid solid solid;
182 border-style: solid solid solid;
183 border-width: @border-thickness;
183 border-width: @border-thickness;
184 box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2);
184 box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2);
185 margin-top: 5px;
185 margin-top: 5px;
186 margin-left: 1px;
186 margin-left: 1px;
187 }
187 }
188
188
189 .diff-actions, .editor-actions {
189 .diff-actions, .editor-actions {
190 float: left;
190 float: left;
191
191
192 input{
192 input{
193 margin: 0 0.5em 0 0;
193 margin: 0 0.5em 0 0;
194 }
194 }
195 }
195 }
196
196
197 // END CODE-HEADER STYLES
197 // END CODE-HEADER STYLES
198
198
199 // BEGIN CODE-BODY STYLES
199 // BEGIN CODE-BODY STYLES
200
200
201 .code-body {
201 .code-body {
202 background: white;
202 background: white;
203 padding: 0;
203 padding: 0;
204 background-color: #ffffff;
204 background-color: #ffffff;
205 position: relative;
205 position: relative;
206 max-width: none;
206 max-width: none;
207 box-sizing: border-box;
207 box-sizing: border-box;
208 // TODO: johbo: Parent has overflow: auto, this forces the child here
208 // TODO: johbo: Parent has overflow: auto, this forces the child here
209 // to have the intended size and to scroll. Should be simplified.
209 // to have the intended size and to scroll. Should be simplified.
210 width: 100%;
210 width: 100%;
211 overflow-x: auto;
211 overflow-x: auto;
212 }
212 }
213
213
214 pre.raw {
214 pre.raw {
215 background: white;
215 background: white;
216 color: @grey1;
216 color: @grey1;
217 }
217 }
218 // END CODE-BODY STYLES
218 // END CODE-BODY STYLES
219
219
220 }
220 }
221
221
222
222
223 table.code-difftable {
223 table.code-difftable {
224 border-collapse: collapse;
224 border-collapse: collapse;
225 width: 99%;
225 width: 99%;
226 border-radius: 0px !important;
226 border-radius: 0px !important;
227
227
228 td {
228 td {
229 padding: 0 !important;
229 padding: 0 !important;
230 background: none !important;
230 background: none !important;
231 border: 0 !important;
231 border: 0 !important;
232 }
232 }
233
233
234 .context {
234 .context {
235 background: none repeat scroll 0 0 #DDE7EF;
235 background: none repeat scroll 0 0 #DDE7EF;
236 }
236 }
237
237
238 .add {
238 .add {
239 background: none repeat scroll 0 0 #DDFFDD;
239 background: none repeat scroll 0 0 #DDFFDD;
240
240
241 ins {
241 ins {
242 background: none repeat scroll 0 0 #AAFFAA;
242 background: none repeat scroll 0 0 #AAFFAA;
243 text-decoration: none;
243 text-decoration: none;
244 }
244 }
245 }
245 }
246
246
247 .del {
247 .del {
248 background: none repeat scroll 0 0 #FFDDDD;
248 background: none repeat scroll 0 0 #FFDDDD;
249
249
250 del {
250 del {
251 background: none repeat scroll 0 0 #FFAAAA;
251 background: none repeat scroll 0 0 #FFAAAA;
252 text-decoration: none;
252 text-decoration: none;
253 }
253 }
254 }
254 }
255
255
256 /** LINE NUMBERS **/
256 /** LINE NUMBERS **/
257 .lineno {
257 .lineno {
258 padding-left: 2px !important;
258 padding-left: 2px !important;
259 padding-right: 2px;
259 padding-right: 2px;
260 text-align: right;
260 text-align: right;
261 width: 32px;
261 width: 32px;
262 -moz-user-select: none;
262 -moz-user-select: none;
263 -webkit-user-select: none;
263 -webkit-user-select: none;
264 border-right: @border-thickness solid @grey5 !important;
264 border-right: @border-thickness solid @grey5 !important;
265 border-left: 0px solid #CCC !important;
265 border-left: 0px solid #CCC !important;
266 border-top: 0px solid #CCC !important;
266 border-top: 0px solid #CCC !important;
267 border-bottom: none !important;
267 border-bottom: none !important;
268
268
269 a {
269 a {
270 &:extend(pre);
270 &:extend(pre);
271 text-align: right;
271 text-align: right;
272 padding-right: 2px;
272 padding-right: 2px;
273 cursor: pointer;
273 cursor: pointer;
274 display: block;
274 display: block;
275 width: 32px;
275 width: 32px;
276 }
276 }
277 }
277 }
278
278
279 .context {
279 .context {
280 cursor: auto;
280 cursor: auto;
281 &:extend(pre);
281 &:extend(pre);
282 }
282 }
283
283
284 .lineno-inline {
284 .lineno-inline {
285 background: none repeat scroll 0 0 #FFF !important;
285 background: none repeat scroll 0 0 #FFF !important;
286 padding-left: 2px;
286 padding-left: 2px;
287 padding-right: 2px;
287 padding-right: 2px;
288 text-align: right;
288 text-align: right;
289 width: 30px;
289 width: 30px;
290 -moz-user-select: none;
290 -moz-user-select: none;
291 -webkit-user-select: none;
291 -webkit-user-select: none;
292 }
292 }
293
293
294 /** CODE **/
294 /** CODE **/
295 .code {
295 .code {
296 display: block;
296 display: block;
297 width: 100%;
297 width: 100%;
298
298
299 td {
299 td {
300 margin: 0;
300 margin: 0;
301 padding: 0;
301 padding: 0;
302 }
302 }
303
303
304 pre {
304 pre {
305 margin: 0;
305 margin: 0;
306 padding: 0;
306 padding: 0;
307 margin-left: .5em;
307 margin-left: .5em;
308 }
308 }
309 }
309 }
310 }
310 }
311
311
312
312
313 // Comments
313 // Comments
314
314
315 div.comment:target {
315 div.comment:target {
316 border-left: 6px solid @comment-highlight-color !important;
316 border-left: 6px solid @comment-highlight-color !important;
317 padding-left: 3px;
317 padding-left: 3px;
318 margin-left: -9px;
318 margin-left: -9px;
319 }
319 }
320
320
321 //TODO: anderson: can't get an absolute number out of anything, so had to put the
321 //TODO: anderson: can't get an absolute number out of anything, so had to put the
322 //current values that might change. But to make it clear I put as a calculation
322 //current values that might change. But to make it clear I put as a calculation
323 @comment-max-width: 1065px;
323 @comment-max-width: 1065px;
324 @pr-extra-margin: 34px;
324 @pr-extra-margin: 34px;
325 @pr-border-spacing: 4px;
325 @pr-border-spacing: 4px;
326 @pr-comment-width: @comment-max-width - @pr-extra-margin - @pr-border-spacing;
326 @pr-comment-width: @comment-max-width - @pr-extra-margin - @pr-border-spacing;
327
327
328 // Pull Request
328 // Pull Request
329 .cs_files .code-difftable {
329 .cs_files .code-difftable {
330 border: @border-thickness solid @grey5; //borders only on PRs
330 border: @border-thickness solid @grey5; //borders only on PRs
331
331
332 .comment-inline-form,
332 .comment-inline-form,
333 div.comment {
333 div.comment {
334 width: @pr-comment-width;
334 width: @pr-comment-width;
335 }
335 }
336 }
336 }
337
337
338 // Changeset
338 // Changeset
339 .code-difftable {
339 .code-difftable {
340 .comment-inline-form,
340 .comment-inline-form,
341 div.comment {
341 div.comment {
342 width: @comment-max-width;
342 width: @comment-max-width;
343 }
343 }
344 }
344 }
345
345
346 //Style page
346 //Style page
347 @style-extra-margin: @sidebar-width + (@sidebarpadding * 3) + @padding;
347 @style-extra-margin: @sidebar-width + (@sidebarpadding * 3) + @padding;
348 #style-page .code-difftable{
348 #style-page .code-difftable{
349 .comment-inline-form,
349 .comment-inline-form,
350 div.comment {
350 div.comment {
351 width: @comment-max-width - @style-extra-margin;
351 width: @comment-max-width - @style-extra-margin;
352 }
352 }
353 }
353 }
354
354
355 #context-bar > h2 {
355 #context-bar > h2 {
356 font-size: 20px;
356 font-size: 20px;
357 }
357 }
358
358
359 #context-bar > h2> a {
359 #context-bar > h2> a {
360 font-size: 20px;
360 font-size: 20px;
361 }
361 }
362 // end of defaults
362 // end of defaults
363
363
364 .file_diff_buttons {
364 .file_diff_buttons {
365 padding: 0 0 @padding;
365 padding: 0 0 @padding;
366
366
367 .drop-menu {
367 .drop-menu {
368 float: left;
368 float: left;
369 margin: 0 @padding 0 0;
369 margin: 0 @padding 0 0;
370 }
370 }
371 .btn {
371 .btn {
372 margin: 0 @padding 0 0;
372 margin: 0 @padding 0 0;
373 }
373 }
374 }
374 }
375
375
376 .code-body.textarea.editor {
376 .code-body.textarea.editor {
377 max-width: none;
377 max-width: none;
378 padding: 15px;
378 padding: 15px;
379 }
379 }
380
380
381 td.injected_diff{
381 td.injected_diff{
382 max-width: 1178px;
382 max-width: 1178px;
383 overflow-x: auto;
383 overflow-x: auto;
384 overflow-y: hidden;
384 overflow-y: hidden;
385
385
386 div.diff-container,
386 div.diff-container,
387 div.diffblock{
387 div.diffblock{
388 max-width: 100%;
388 max-width: 100%;
389 }
389 }
390
390
391 div.code-body {
391 div.code-body {
392 max-width: 1124px;
392 max-width: 1124px;
393 overflow-x: auto;
393 overflow-x: auto;
394 overflow-y: hidden;
394 overflow-y: hidden;
395 padding: 0;
395 padding: 0;
396 }
396 }
397 div.diffblock {
397 div.diffblock {
398 border: none;
398 border: none;
399 }
399 }
400
400
401 &.inline-form {
401 &.inline-form {
402 width: 99%
402 width: 99%
403 }
403 }
404 }
404 }
405
405
406
406
407 table.code-difftable {
407 table.code-difftable {
408 width: 100%;
408 width: 100%;
409 }
409 }
410
410
411 /** PYGMENTS COLORING **/
411 /** PYGMENTS COLORING **/
412 div.codeblock {
412 div.codeblock {
413
413
414 // TODO: johbo: Added interim to get rid of the margin around
414 // TODO: johbo: Added interim to get rid of the margin around
415 // Select2 widgets. This needs further cleanup.
415 // Select2 widgets. This needs further cleanup.
416 margin-top: @padding;
416 margin-top: @padding;
417
417
418 overflow: auto;
418 overflow: auto;
419 padding: 0px;
419 padding: 0px;
420 border: @border-thickness solid @grey5;
420 border: @border-thickness solid @grey5;
421 background: @grey6;
421 background: @grey6;
422 .border-radius(@border-radius);
422 .border-radius(@border-radius);
423
423
424 #remove_gist {
424 #remove_gist {
425 float: right;
425 float: right;
426 }
426 }
427
427
428 .author {
428 .author {
429 clear: both;
429 clear: both;
430 vertical-align: middle;
430 vertical-align: middle;
431 font-family: @text-bold;
431 font-family: @text-bold;
432 }
432 }
433
433
434 .btn-mini {
434 .btn-mini {
435 float: left;
435 float: left;
436 margin: 0 5px 0 0;
436 margin: 0 5px 0 0;
437 }
437 }
438
438
439 .code-header {
439 .code-header {
440 padding: @padding;
440 padding: @padding;
441 border-bottom: @border-thickness solid @grey5;
441 border-bottom: @border-thickness solid @grey5;
442
442
443 .rc-user {
443 .rc-user {
444 min-width: 0;
444 min-width: 0;
445 margin-right: .5em;
445 margin-right: .5em;
446 }
446 }
447
447
448 .stats {
448 .stats {
449 clear: both;
449 clear: both;
450 margin: 0 0 @padding 0;
450 margin: 0 0 @padding 0;
451 padding: 0;
451 padding: 0;
452 .left {
452 .left {
453 float: left;
453 float: left;
454 clear: left;
454 clear: left;
455 max-width: 75%;
455 max-width: 75%;
456 margin: 0 0 @padding 0;
456 margin: 0 0 @padding 0;
457
457
458 &.item {
458 &.item {
459 margin-right: @padding;
459 margin-right: @padding;
460 &.last { border-right: none; }
460 &.last { border-right: none; }
461 }
461 }
462 }
462 }
463 .buttons { float: right; }
463 .buttons { float: right; }
464 .author {
464 .author {
465 height: 25px; margin-left: 15px; font-weight: bold;
465 height: 25px; margin-left: 15px; font-weight: bold;
466 }
466 }
467 }
467 }
468
468
469 .commit {
469 .commit {
470 margin: 5px 0 0 26px;
470 margin: 5px 0 0 26px;
471 font-weight: normal;
471 font-weight: normal;
472 white-space: pre-wrap;
472 white-space: pre-wrap;
473 }
473 }
474 }
474 }
475
475
476 .message {
476 .message {
477 position: relative;
477 position: relative;
478 margin: @padding;
478 margin: @padding;
479
479
480 .codeblock-label {
480 .codeblock-label {
481 margin: 0 0 1em 0;
481 margin: 0 0 1em 0;
482 }
482 }
483 }
483 }
484
484
485 .code-body {
485 .code-body {
486 padding: @padding;
486 padding: @padding;
487 background-color: #ffffff;
487 background-color: #ffffff;
488 min-width: 100%;
488 min-width: 100%;
489 box-sizing: border-box;
489 box-sizing: border-box;
490 // TODO: johbo: Parent has overflow: auto, this forces the child here
490 // TODO: johbo: Parent has overflow: auto, this forces the child here
491 // to have the intended size and to scroll. Should be simplified.
491 // to have the intended size and to scroll. Should be simplified.
492 width: 100%;
492 width: 100%;
493 overflow-x: auto;
493 overflow-x: auto;
494 }
494 }
495 }
495 }
496
496
497 .code-highlighttable,
497 .code-highlighttable,
498 div.codeblock {
498 div.codeblock {
499
499
500 &.readme {
500 &.readme {
501 background-color: white;
501 background-color: white;
502 }
502 }
503
503
504 .markdown-block table {
504 .markdown-block table {
505 border-collapse: collapse;
505 border-collapse: collapse;
506
506
507 th,
507 th,
508 td {
508 td {
509 padding: .5em;
509 padding: .5em;
510 border: @border-thickness solid @border-default-color;
510 border: @border-thickness solid @border-default-color;
511 }
511 }
512 }
512 }
513
513
514 table {
514 table {
515 border: 0px;
515 border: 0px;
516 margin: 0;
516 margin: 0;
517 letter-spacing: normal;
517 letter-spacing: normal;
518
518
519
519
520 td {
520 td {
521 border: 0px;
521 border: 0px;
522 vertical-align: top;
522 vertical-align: top;
523 }
523 }
524 }
524 }
525 }
525 }
526
526
527 div.codeblock .code-header .search-path { padding: 0 0 0 10px; }
527 div.codeblock .code-header .search-path { padding: 0 0 0 10px; }
528 div.search-code-body {
528 div.search-code-body {
529 background-color: #ffffff; padding: 5px 0 5px 10px;
529 background-color: #ffffff; padding: 5px 0 5px 10px;
530 pre {
530 pre {
531 .match { background-color: #faffa6;}
531 .match { background-color: #faffa6;}
532 .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; }
532 .break { display: block; width: 100%; background-color: #DDE7EF; color: #747474; }
533 }
533 }
534 .code-highlighttable {
534 .code-highlighttable {
535 border-collapse: collapse;
535 border-collapse: collapse;
536
536
537 tr:hover {
537 tr:hover {
538 background: #fafafa;
538 background: #fafafa;
539 }
539 }
540 td.code {
540 td.code {
541 padding-left: 10px;
541 padding-left: 10px;
542 }
542 }
543 td.line {
543 td.line {
544 border-right: 1px solid #ccc !important;
544 border-right: 1px solid #ccc !important;
545 padding-right: 10px;
545 padding-right: 10px;
546 text-align: right;
546 text-align: right;
547 font-family: "Lucida Console",Monaco,monospace;
547 font-family: "Lucida Console",Monaco,monospace;
548 span {
548 span {
549 white-space: pre-wrap;
549 white-space: pre-wrap;
550 color: #666666;
550 color: #666666;
551 }
551 }
552 }
552 }
553 }
553 }
554 }
554 }
555
555
556 div.annotatediv { margin-left: 2px; margin-right: 4px; }
556 div.annotatediv { margin-left: 2px; margin-right: 4px; }
557 .code-highlight {
557 .code-highlight {
558 margin: 0; padding: 0; border-left: @border-thickness solid @grey5;
558 margin: 0; padding: 0; border-left: @border-thickness solid @grey5;
559 pre, .linenodiv pre { padding: 0 5px; margin: 0; }
559 pre, .linenodiv pre { padding: 0 5px; margin: 0; }
560 pre div:target {background-color: @comment-highlight-color !important;}
560 pre div:target {background-color: @comment-highlight-color !important;}
561 }
561 }
562
562
563 .linenos a { text-decoration: none; }
563 .linenos a { text-decoration: none; }
564
564
565 .CodeMirror-selected { background: @rchighlightblue; }
565 .CodeMirror-selected { background: @rchighlightblue; }
566 .CodeMirror-focused .CodeMirror-selected { background: @rchighlightblue; }
566 .CodeMirror-focused .CodeMirror-selected { background: @rchighlightblue; }
567 .CodeMirror ::selection { background: @rchighlightblue; }
567 .CodeMirror ::selection { background: @rchighlightblue; }
568 .CodeMirror ::-moz-selection { background: @rchighlightblue; }
568 .CodeMirror ::-moz-selection { background: @rchighlightblue; }
569
569
570 .code { display: block; border:0px !important; }
570 .code { display: block; border:0px !important; }
571 .code-highlight, /* TODO: dan: merge codehilite into code-highlight */
571 .code-highlight, /* TODO: dan: merge codehilite into code-highlight */
572 .codehilite {
572 .codehilite {
573 .hll { background-color: #ffffcc }
573 .hll { background-color: #ffffcc }
574 .c { color: #408080; font-style: italic } /* Comment */
574 .c { color: #408080; font-style: italic } /* Comment */
575 .err, .codehilite .err { border: @border-thickness solid #FF0000 } /* Error */
575 .err, .codehilite .err { border: @border-thickness solid #FF0000 } /* Error */
576 .k { color: #008000; font-weight: bold } /* Keyword */
576 .k { color: #008000; font-weight: bold } /* Keyword */
577 .o { color: #666666 } /* Operator */
577 .o { color: #666666 } /* Operator */
578 .cm { color: #408080; font-style: italic } /* Comment.Multiline */
578 .cm { color: #408080; font-style: italic } /* Comment.Multiline */
579 .cp { color: #BC7A00 } /* Comment.Preproc */
579 .cp { color: #BC7A00 } /* Comment.Preproc */
580 .c1 { color: #408080; font-style: italic } /* Comment.Single */
580 .c1 { color: #408080; font-style: italic } /* Comment.Single */
581 .cs { color: #408080; font-style: italic } /* Comment.Special */
581 .cs { color: #408080; font-style: italic } /* Comment.Special */
582 .gd { color: #A00000 } /* Generic.Deleted */
582 .gd { color: #A00000 } /* Generic.Deleted */
583 .ge { font-style: italic } /* Generic.Emph */
583 .ge { font-style: italic } /* Generic.Emph */
584 .gr { color: #FF0000 } /* Generic.Error */
584 .gr { color: #FF0000 } /* Generic.Error */
585 .gh { color: #000080; font-weight: bold } /* Generic.Heading */
585 .gh { color: #000080; font-weight: bold } /* Generic.Heading */
586 .gi { color: #00A000 } /* Generic.Inserted */
586 .gi { color: #00A000 } /* Generic.Inserted */
587 .go { color: #808080 } /* Generic.Output */
587 .go { color: #808080 } /* Generic.Output */
588 .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
588 .gp { color: #000080; font-weight: bold } /* Generic.Prompt */
589 .gs { font-weight: bold } /* Generic.Strong */
589 .gs { font-weight: bold } /* Generic.Strong */
590 .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
590 .gu { color: #800080; font-weight: bold } /* Generic.Subheading */
591 .gt { color: #0040D0 } /* Generic.Traceback */
591 .gt { color: #0040D0 } /* Generic.Traceback */
592 .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
592 .kc { color: #008000; font-weight: bold } /* Keyword.Constant */
593 .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
593 .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */
594 .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
594 .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */
595 .kp { color: #008000 } /* Keyword.Pseudo */
595 .kp { color: #008000 } /* Keyword.Pseudo */
596 .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
596 .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */
597 .kt { color: #B00040 } /* Keyword.Type */
597 .kt { color: #B00040 } /* Keyword.Type */
598 .m { color: #666666 } /* Literal.Number */
598 .m { color: #666666 } /* Literal.Number */
599 .s { color: #BA2121 } /* Literal.String */
599 .s { color: #BA2121 } /* Literal.String */
600 .na { color: #7D9029 } /* Name.Attribute */
600 .na { color: #7D9029 } /* Name.Attribute */
601 .nb { color: #008000 } /* Name.Builtin */
601 .nb { color: #008000 } /* Name.Builtin */
602 .nc { color: #0000FF; font-weight: bold } /* Name.Class */
602 .nc { color: #0000FF; font-weight: bold } /* Name.Class */
603 .no { color: #880000 } /* Name.Constant */
603 .no { color: #880000 } /* Name.Constant */
604 .nd { color: #AA22FF } /* Name.Decorator */
604 .nd { color: #AA22FF } /* Name.Decorator */
605 .ni { color: #999999; font-weight: bold } /* Name.Entity */
605 .ni { color: #999999; font-weight: bold } /* Name.Entity */
606 .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
606 .ne { color: #D2413A; font-weight: bold } /* Name.Exception */
607 .nf { color: #0000FF } /* Name.Function */
607 .nf { color: #0000FF } /* Name.Function */
608 .nl { color: #A0A000 } /* Name.Label */
608 .nl { color: #A0A000 } /* Name.Label */
609 .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
609 .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */
610 .nt { color: #008000; font-weight: bold } /* Name.Tag */
610 .nt { color: #008000; font-weight: bold } /* Name.Tag */
611 .nv { color: #19177C } /* Name.Variable */
611 .nv { color: #19177C } /* Name.Variable */
612 .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
612 .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */
613 .w { color: #bbbbbb } /* Text.Whitespace */
613 .w { color: #bbbbbb } /* Text.Whitespace */
614 .mf { color: #666666 } /* Literal.Number.Float */
614 .mf { color: #666666 } /* Literal.Number.Float */
615 .mh { color: #666666 } /* Literal.Number.Hex */
615 .mh { color: #666666 } /* Literal.Number.Hex */
616 .mi { color: #666666 } /* Literal.Number.Integer */
616 .mi { color: #666666 } /* Literal.Number.Integer */
617 .mo { color: #666666 } /* Literal.Number.Oct */
617 .mo { color: #666666 } /* Literal.Number.Oct */
618 .sb { color: #BA2121 } /* Literal.String.Backtick */
618 .sb { color: #BA2121 } /* Literal.String.Backtick */
619 .sc { color: #BA2121 } /* Literal.String.Char */
619 .sc { color: #BA2121 } /* Literal.String.Char */
620 .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
620 .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */
621 .s2 { color: #BA2121 } /* Literal.String.Double */
621 .s2 { color: #BA2121 } /* Literal.String.Double */
622 .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
622 .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */
623 .sh { color: #BA2121 } /* Literal.String.Heredoc */
623 .sh { color: #BA2121 } /* Literal.String.Heredoc */
624 .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
624 .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */
625 .sx { color: #008000 } /* Literal.String.Other */
625 .sx { color: #008000 } /* Literal.String.Other */
626 .sr { color: #BB6688 } /* Literal.String.Regex */
626 .sr { color: #BB6688 } /* Literal.String.Regex */
627 .s1 { color: #BA2121 } /* Literal.String.Single */
627 .s1 { color: #BA2121 } /* Literal.String.Single */
628 .ss { color: #19177C } /* Literal.String.Symbol */
628 .ss { color: #19177C } /* Literal.String.Symbol */
629 .bp { color: #008000 } /* Name.Builtin.Pseudo */
629 .bp { color: #008000 } /* Name.Builtin.Pseudo */
630 .vc { color: #19177C } /* Name.Variable.Class */
630 .vc { color: #19177C } /* Name.Variable.Class */
631 .vg { color: #19177C } /* Name.Variable.Global */
631 .vg { color: #19177C } /* Name.Variable.Global */
632 .vi { color: #19177C } /* Name.Variable.Instance */
632 .vi { color: #19177C } /* Name.Variable.Instance */
633 .il { color: #666666 } /* Literal.Number.Integer.Long */
633 .il { color: #666666 } /* Literal.Number.Integer.Long */
634 }
634 }
635
635
636 /* customized pre blocks for markdown/rst */
636 /* customized pre blocks for markdown/rst */
637 pre.literal-block, .codehilite pre{
637 pre.literal-block, .codehilite pre{
638 padding: @padding;
638 padding: @padding;
639 border: 1px solid @grey6;
639 border: 1px solid @grey6;
640 .border-radius(@border-radius);
640 .border-radius(@border-radius);
641 background-color: @grey7;
641 background-color: @grey7;
642 }
642 }
643
643
644
644
645 /* START NEW CODE BLOCK CSS */
645 /* START NEW CODE BLOCK CSS */
646
646
647 @cb-line-height: 18px;
647 @cb-line-height: 18px;
648 @cb-line-code-padding: 10px;
648 @cb-line-code-padding: 10px;
649 @cb-text-padding: 5px;
649 @cb-text-padding: 5px;
650
650
651 @pill-padding: 2px 7px;
651 @pill-padding: 2px 7px;
652
652
653 input.filediff-collapse-state {
653 input.filediff-collapse-state {
654 display: none;
654 display: none;
655
655
656 &:checked + .filediff { /* file diff is collapsed */
656 &:checked + .filediff { /* file diff is collapsed */
657 .cb {
657 .cb {
658 display: none
658 display: none
659 }
659 }
660 .filediff-collapse-indicator {
660 .filediff-collapse-indicator {
661 width: 0;
661 width: 0;
662 height: 0;
662 height: 0;
663 border-style: solid;
663 border-style: solid;
664 border-width: 6.5px 0 6.5px 11.3px;
664 border-width: 6.5px 0 6.5px 11.3px;
665 border-color: transparent transparent transparent #ccc;
665 border-color: transparent transparent transparent #ccc;
666 }
666 }
667 .filediff-menu {
667 .filediff-menu {
668 display: none;
668 display: none;
669 }
669 }
670 margin: 10px 0 0 0;
670 margin: 10px 0 0 0;
671 }
671 }
672
672
673 &+ .filediff { /* file diff is expanded */
673 &+ .filediff { /* file diff is expanded */
674 .filediff-collapse-indicator {
674 .filediff-collapse-indicator {
675 width: 0;
675 width: 0;
676 height: 0;
676 height: 0;
677 border-style: solid;
677 border-style: solid;
678 border-width: 11.3px 6.5px 0 6.5px;
678 border-width: 11.3px 6.5px 0 6.5px;
679 border-color: #ccc transparent transparent transparent;
679 border-color: #ccc transparent transparent transparent;
680 }
680 }
681 .filediff-menu {
681 .filediff-menu {
682 display: block;
682 display: block;
683 }
683 }
684 margin: 10px 0;
684 margin: 10px 0;
685 &:nth-child(2) {
685 &:nth-child(2) {
686 margin: 0;
686 margin: 0;
687 }
687 }
688 }
688 }
689 }
689 }
690 .cs_files {
690 .cs_files {
691 clear: both;
691 clear: both;
692 }
692 }
693
693
694 .diffset-menu {
694 .diffset-menu {
695 margin-bottom: 20px;
695 margin-bottom: 20px;
696 }
696 }
697 .diffset {
697 .diffset {
698 margin: 20px auto;
698 margin: 20px auto;
699 .diffset-heading {
699 .diffset-heading {
700 border: 1px solid @grey5;
700 border: 1px solid @grey5;
701 margin-bottom: -1px;
701 margin-bottom: -1px;
702 // margin-top: 20px;
702 // margin-top: 20px;
703 h2 {
703 h2 {
704 margin: 0;
704 margin: 0;
705 line-height: 38px;
705 line-height: 38px;
706 padding-left: 10px;
706 padding-left: 10px;
707 }
707 }
708 .btn {
708 .btn {
709 margin: 0;
709 margin: 0;
710 }
710 }
711 background: @grey6;
711 background: @grey6;
712 display: block;
712 display: block;
713 padding: 5px;
713 padding: 5px;
714 }
714 }
715 .diffset-heading-warning {
715 .diffset-heading-warning {
716 background: @alert3-inner;
716 background: @alert3-inner;
717 border: 1px solid @alert3;
717 border: 1px solid @alert3;
718 }
718 }
719 &.diffset-comments-disabled {
719 &.diffset-comments-disabled {
720 .cb-comment-box-opener, .comment-inline-form, .cb-comment-add-button {
720 .cb-comment-box-opener, .comment-inline-form, .cb-comment-add-button {
721 display: none !important;
721 display: none !important;
722 }
722 }
723 }
723 }
724 }
724 }
725
725
726 .pill {
726 .pill {
727 display: block;
727 display: block;
728 float: left;
728 float: left;
729 padding: @pill-padding;
729 padding: @pill-padding;
730 }
730 }
731 .pill-group {
731 .pill-group {
732 .pill {
732 .pill {
733 opacity: .8;
733 opacity: .8;
734 &:first-child {
734 &:first-child {
735 border-radius: @border-radius 0 0 @border-radius;
735 border-radius: @border-radius 0 0 @border-radius;
736 }
736 }
737 &:last-child {
737 &:last-child {
738 border-radius: 0 @border-radius @border-radius 0;
738 border-radius: 0 @border-radius @border-radius 0;
739 }
739 }
740 &:only-child {
740 &:only-child {
741 border-radius: @border-radius;
741 border-radius: @border-radius;
742 }
742 }
743 }
743 }
744 }
744 }
745
745
746 /* Main comments*/
746 /* Main comments*/
747 #comments {
747 #comments {
748 .comment-selected {
748 .comment-selected {
749 border-left: 6px solid @comment-highlight-color;
749 border-left: 6px solid @comment-highlight-color;
750 padding-left: 3px;
750 padding-left: 3px;
751 margin-left: -9px;
751 margin-left: -9px;
752 }
752 }
753 }
753 }
754
754
755 .filediff {
755 .filediff {
756 border: 1px solid @grey5;
756 border: 1px solid @grey5;
757
757
758 /* START OVERRIDES */
758 /* START OVERRIDES */
759 .code-highlight {
759 .code-highlight {
760 border: none; // TODO: remove this border from the global
760 border: none; // TODO: remove this border from the global
761 // .code-highlight, it doesn't belong there
761 // .code-highlight, it doesn't belong there
762 }
762 }
763 label {
763 label {
764 margin: 0; // TODO: remove this margin definition from global label
764 margin: 0; // TODO: remove this margin definition from global label
765 // it doesn't belong there - if margin on labels
765 // it doesn't belong there - if margin on labels
766 // are needed for a form they should be defined
766 // are needed for a form they should be defined
767 // in the form's class
767 // in the form's class
768 }
768 }
769 /* END OVERRIDES */
769 /* END OVERRIDES */
770
770
771 * {
771 * {
772 box-sizing: border-box;
772 box-sizing: border-box;
773 }
773 }
774 .filediff-anchor {
774 .filediff-anchor {
775 visibility: hidden;
775 visibility: hidden;
776 }
776 }
777 &:hover {
777 &:hover {
778 .filediff-anchor {
778 .filediff-anchor {
779 visibility: visible;
779 visibility: visible;
780 }
780 }
781 }
781 }
782
782
783 .filediff-collapse-indicator {
783 .filediff-collapse-indicator {
784 border-style: solid;
784 border-style: solid;
785 float: left;
785 float: left;
786 margin: 4px 0px 0 0;
786 margin: 4px 0px 0 0;
787 cursor: pointer;
787 cursor: pointer;
788 }
788 }
789
789
790 .filediff-heading {
790 .filediff-heading {
791 background: @grey7;
791 background: @grey7;
792 cursor: pointer;
792 cursor: pointer;
793 display: block;
793 display: block;
794 padding: 5px 10px;
794 padding: 5px 10px;
795 }
795 }
796 .filediff-heading:after {
796 .filediff-heading:after {
797 content: "";
797 content: "";
798 display: table;
798 display: table;
799 clear: both;
799 clear: both;
800 }
800 }
801 .filediff-heading:hover {
801 .filediff-heading:hover {
802 background: #e1e9f4 !important;
802 background: #e1e9f4 !important;
803 }
803 }
804
804
805 .filediff-menu {
805 .filediff-menu {
806 float: right;
806 float: right;
807 text-align: right;
807 text-align: right;
808 padding: 5px 5px 5px 0px;
808 padding: 5px 5px 5px 0px;
809
809
810 &> a,
810 &> a,
811 &> span {
811 &> span {
812 padding: 1px;
812 padding: 1px;
813 }
813 }
814 }
814 }
815
815
816 .pill {
816 .pill {
817 &[op="name"] {
817 &[op="name"] {
818 background: none;
818 background: none;
819 color: @grey2;
819 color: @grey2;
820 opacity: 1;
820 opacity: 1;
821 color: white;
821 color: white;
822 }
822 }
823 &[op="limited"] {
823 &[op="limited"] {
824 background: @grey2;
824 background: @grey2;
825 color: white;
825 color: white;
826 }
826 }
827 &[op="binary"] {
827 &[op="binary"] {
828 background: @color7;
828 background: @color7;
829 color: white;
829 color: white;
830 }
830 }
831 &[op="modified"] {
831 &[op="modified"] {
832 background: @alert1;
832 background: @alert1;
833 color: white;
833 color: white;
834 }
834 }
835 &[op="renamed"] {
835 &[op="renamed"] {
836 background: @color4;
836 background: @color4;
837 color: white;
837 color: white;
838 }
838 }
839 &[op="mode"] {
839 &[op="mode"] {
840 background: @grey3;
840 background: @grey3;
841 color: white;
841 color: white;
842 }
842 }
843 &[op="symlink"] {
843 &[op="symlink"] {
844 background: @color8;
844 background: @color8;
845 color: white;
845 color: white;
846 }
846 }
847
847
848 &[op="added"] { /* added lines */
848 &[op="added"] { /* added lines */
849 background: @alert1;
849 background: @alert1;
850 color: white;
850 color: white;
851 }
851 }
852 &[op="deleted"] { /* deleted lines */
852 &[op="deleted"] { /* deleted lines */
853 background: @alert2;
853 background: @alert2;
854 color: white;
854 color: white;
855 }
855 }
856
856
857 &[op="created"] { /* created file */
857 &[op="created"] { /* created file */
858 background: @alert1;
858 background: @alert1;
859 color: white;
859 color: white;
860 }
860 }
861 &[op="removed"] { /* deleted file */
861 &[op="removed"] { /* deleted file */
862 background: @color5;
862 background: @color5;
863 color: white;
863 color: white;
864 }
864 }
865 }
865 }
866
866
867 .filediff-collapse-button, .filediff-expand-button {
867 .filediff-collapse-button, .filediff-expand-button {
868 cursor: pointer;
868 cursor: pointer;
869 }
869 }
870 .filediff-collapse-button {
870 .filediff-collapse-button {
871 display: inline;
871 display: inline;
872 }
872 }
873 .filediff-expand-button {
873 .filediff-expand-button {
874 display: none;
874 display: none;
875 }
875 }
876 .filediff-collapsed .filediff-collapse-button {
876 .filediff-collapsed .filediff-collapse-button {
877 display: none;
877 display: none;
878 }
878 }
879 .filediff-collapsed .filediff-expand-button {
879 .filediff-collapsed .filediff-expand-button {
880 display: inline;
880 display: inline;
881 }
881 }
882
882
883 /**** COMMENTS ****/
883 /**** COMMENTS ****/
884
884
885 .filediff-menu {
885 .filediff-menu {
886 .show-comment-button {
886 .show-comment-button {
887 display: none;
887 display: none;
888 }
888 }
889 }
889 }
890 &.hide-comments {
890 &.hide-comments {
891 .inline-comments {
891 .inline-comments {
892 display: none;
892 display: none;
893 }
893 }
894 .filediff-menu {
894 .filediff-menu {
895 .show-comment-button {
895 .show-comment-button {
896 display: inline;
896 display: inline;
897 }
897 }
898 .hide-comment-button {
898 .hide-comment-button {
899 display: none;
899 display: none;
900 }
900 }
901 }
901 }
902 }
902 }
903
903
904 .hide-line-comments {
904 .hide-line-comments {
905 .inline-comments {
905 .inline-comments {
906 display: none;
906 display: none;
907 }
907 }
908 }
908 }
909
909
910 /**** END COMMENTS ****/
910 /**** END COMMENTS ****/
911
911
912 }
912 }
913
913
914 .filediff-outdated {
914 .filediff-outdated {
915 padding: 8px 0;
915 padding: 8px 0;
916
916
917 .filediff-heading {
917 .filediff-heading {
918 opacity: .5;
918 opacity: .5;
919 }
919 }
920 }
920 }
921
921
922 table.cb {
922 table.cb {
923 width: 100%;
923 width: 100%;
924 border-collapse: collapse;
924 border-collapse: collapse;
925
925
926 .cb-text {
926 .cb-text {
927 padding: @cb-text-padding;
927 padding: @cb-text-padding;
928 }
928 }
929 .cb-hunk {
929 .cb-hunk {
930 padding: @cb-text-padding;
930 padding: @cb-text-padding;
931 }
931 }
932 .cb-expand {
932 .cb-expand {
933 display: none;
933 display: none;
934 }
934 }
935 .cb-collapse {
935 .cb-collapse {
936 display: inline;
936 display: inline;
937 }
937 }
938 &.cb-collapsed {
938 &.cb-collapsed {
939 .cb-line {
939 .cb-line {
940 display: none;
940 display: none;
941 }
941 }
942 .cb-expand {
942 .cb-expand {
943 display: inline;
943 display: inline;
944 }
944 }
945 .cb-collapse {
945 .cb-collapse {
946 display: none;
946 display: none;
947 }
947 }
948 }
948 }
949
949
950 /* intentionally general selector since .cb-line-selected must override it
950 /* intentionally general selector since .cb-line-selected must override it
951 and they both use !important since the td itself may have a random color
951 and they both use !important since the td itself may have a random color
952 generated by annotation blocks. TLDR: if you change it, make sure
952 generated by annotation blocks. TLDR: if you change it, make sure
953 annotated block selection and line selection in file view still work */
953 annotated block selection and line selection in file view still work */
954 .cb-line-fresh .cb-content {
954 .cb-line-fresh .cb-content {
955 background: white !important;
955 background: white !important;
956 }
956 }
957 .cb-warning {
957 .cb-warning {
958 background: #fff4dd;
958 background: #fff4dd;
959 }
959 }
960
960
961 &.cb-diff-sideside {
961 &.cb-diff-sideside {
962 td {
962 td {
963 &.cb-content {
963 &.cb-content {
964 width: 50%;
964 width: 50%;
965 }
965 }
966 }
966 }
967 }
967 }
968
968
969 tr {
969 tr {
970 &.cb-annotate {
970 &.cb-annotate {
971 border-top: 1px solid #eee;
971 border-top: 1px solid #eee;
972
972
973 &+ .cb-line {
973 &+ .cb-line {
974 border-top: 1px solid #eee;
974 border-top: 1px solid #eee;
975 }
975 }
976
976
977 &:first-child {
977 &:first-child {
978 border-top: none;
978 border-top: none;
979 &+ .cb-line {
979 &+ .cb-line {
980 border-top: none;
980 border-top: none;
981 }
981 }
982 }
982 }
983 }
983 }
984
984
985 &.cb-hunk {
985 &.cb-hunk {
986 font-family: @font-family-monospace;
986 font-family: @font-family-monospace;
987 color: rgba(0, 0, 0, 0.3);
987 color: rgba(0, 0, 0, 0.3);
988
988
989 td {
989 td {
990 &:first-child {
990 &:first-child {
991 background: #edf2f9;
991 background: #edf2f9;
992 }
992 }
993 &:last-child {
993 &:last-child {
994 background: #f4f7fb;
994 background: #f4f7fb;
995 }
995 }
996 }
996 }
997 }
997 }
998 }
998 }
999
999
1000
1000
1001 td {
1001 td {
1002 vertical-align: top;
1002 vertical-align: top;
1003 padding: 0;
1003 padding: 0;
1004
1004
1005 &.cb-content {
1005 &.cb-content {
1006 font-size: 12.35px;
1006 font-size: 12.35px;
1007
1007
1008 &.cb-line-selected .cb-code {
1008 &.cb-line-selected .cb-code {
1009 background: @comment-highlight-color !important;
1009 background: @comment-highlight-color !important;
1010 }
1010 }
1011
1011
1012 span.cb-code {
1012 span.cb-code {
1013 line-height: @cb-line-height;
1013 line-height: @cb-line-height;
1014 padding-left: @cb-line-code-padding;
1014 padding-left: @cb-line-code-padding;
1015 padding-right: @cb-line-code-padding;
1015 padding-right: @cb-line-code-padding;
1016 display: block;
1016 display: block;
1017 white-space: pre-wrap;
1017 white-space: pre-wrap;
1018 font-family: @font-family-monospace;
1018 font-family: @font-family-monospace;
1019 word-break: break-word;
1019 word-break: break-all;
1020 .nonl {
1020 .nonl {
1021 color: @color5;
1021 color: @color5;
1022 }
1022 }
1023 }
1023 }
1024
1024
1025 &> button.cb-comment-box-opener {
1025 &> button.cb-comment-box-opener {
1026
1026
1027 padding: 2px 2px 1px 3px;
1027 padding: 2px 2px 1px 3px;
1028 margin-left: -6px;
1028 margin-left: -6px;
1029 margin-top: -1px;
1029 margin-top: -1px;
1030
1030
1031 border-radius: @border-radius;
1031 border-radius: @border-radius;
1032 position: absolute;
1032 position: absolute;
1033 display: none;
1033 display: none;
1034 }
1034 }
1035 .cb-comment {
1035 .cb-comment {
1036 margin-top: 10px;
1036 margin-top: 10px;
1037 white-space: normal;
1037 white-space: normal;
1038 }
1038 }
1039 }
1039 }
1040 &:hover {
1040 &:hover {
1041 button.cb-comment-box-opener {
1041 button.cb-comment-box-opener {
1042 display: block;
1042 display: block;
1043 }
1043 }
1044 &+ td button.cb-comment-box-opener {
1044 &+ td button.cb-comment-box-opener {
1045 display: block
1045 display: block
1046 }
1046 }
1047 }
1047 }
1048
1048
1049 &.cb-data {
1049 &.cb-data {
1050 text-align: right;
1050 text-align: right;
1051 width: 30px;
1051 width: 30px;
1052 font-family: @font-family-monospace;
1052 font-family: @font-family-monospace;
1053
1053
1054 .icon-comment {
1054 .icon-comment {
1055 cursor: pointer;
1055 cursor: pointer;
1056 }
1056 }
1057 &.cb-line-selected > div {
1057 &.cb-line-selected > div {
1058 display: block;
1058 display: block;
1059 background: @comment-highlight-color !important;
1059 background: @comment-highlight-color !important;
1060 line-height: @cb-line-height;
1060 line-height: @cb-line-height;
1061 color: rgba(0, 0, 0, 0.3);
1061 color: rgba(0, 0, 0, 0.3);
1062 }
1062 }
1063 }
1063 }
1064
1064
1065 &.cb-lineno {
1065 &.cb-lineno {
1066 padding: 0;
1066 padding: 0;
1067 width: 50px;
1067 width: 50px;
1068 color: rgba(0, 0, 0, 0.3);
1068 color: rgba(0, 0, 0, 0.3);
1069 text-align: right;
1069 text-align: right;
1070 border-right: 1px solid #eee;
1070 border-right: 1px solid #eee;
1071 font-family: @font-family-monospace;
1071 font-family: @font-family-monospace;
1072
1072
1073 a::before {
1073 a::before {
1074 content: attr(data-line-no);
1074 content: attr(data-line-no);
1075 }
1075 }
1076 &.cb-line-selected a {
1076 &.cb-line-selected a {
1077 background: @comment-highlight-color !important;
1077 background: @comment-highlight-color !important;
1078 }
1078 }
1079
1079
1080 a {
1080 a {
1081 display: block;
1081 display: block;
1082 padding-right: @cb-line-code-padding;
1082 padding-right: @cb-line-code-padding;
1083 padding-left: @cb-line-code-padding;
1083 padding-left: @cb-line-code-padding;
1084 line-height: @cb-line-height;
1084 line-height: @cb-line-height;
1085 color: rgba(0, 0, 0, 0.3);
1085 color: rgba(0, 0, 0, 0.3);
1086 }
1086 }
1087 }
1087 }
1088
1088
1089 &.cb-empty {
1089 &.cb-empty {
1090 background: @grey7;
1090 background: @grey7;
1091 }
1091 }
1092
1092
1093 ins {
1093 ins {
1094 color: black;
1094 color: black;
1095 background: #a6f3a6;
1095 background: #a6f3a6;
1096 text-decoration: none;
1096 text-decoration: none;
1097 }
1097 }
1098 del {
1098 del {
1099 color: black;
1099 color: black;
1100 background: #f8cbcb;
1100 background: #f8cbcb;
1101 text-decoration: none;
1101 text-decoration: none;
1102 }
1102 }
1103 &.cb-addition {
1103 &.cb-addition {
1104 background: #ecffec;
1104 background: #ecffec;
1105
1105
1106 &.blob-lineno {
1106 &.blob-lineno {
1107 background: #ddffdd;
1107 background: #ddffdd;
1108 }
1108 }
1109 }
1109 }
1110 &.cb-deletion {
1110 &.cb-deletion {
1111 background: #ffecec;
1111 background: #ffecec;
1112
1112
1113 &.blob-lineno {
1113 &.blob-lineno {
1114 background: #ffdddd;
1114 background: #ffdddd;
1115 }
1115 }
1116 }
1116 }
1117
1117
1118 &.cb-annotate-info {
1118 &.cb-annotate-info {
1119 width: 320px;
1119 width: 320px;
1120 min-width: 320px;
1120 min-width: 320px;
1121 max-width: 320px;
1121 max-width: 320px;
1122 padding: 5px 2px;
1122 padding: 5px 2px;
1123 font-size: 13px;
1123 font-size: 13px;
1124
1124
1125 strong.cb-annotate-message {
1125 strong.cb-annotate-message {
1126 padding: 5px 0;
1126 padding: 5px 0;
1127 white-space: pre-line;
1127 white-space: pre-line;
1128 display: inline-block;
1128 display: inline-block;
1129 }
1129 }
1130 .rc-user {
1130 .rc-user {
1131 float: none;
1131 float: none;
1132 padding: 0 6px 0 17px;
1132 padding: 0 6px 0 17px;
1133 min-width: auto;
1133 min-width: auto;
1134 min-height: auto;
1134 min-height: auto;
1135 }
1135 }
1136 }
1136 }
1137
1137
1138 &.cb-annotate-revision {
1138 &.cb-annotate-revision {
1139 cursor: pointer;
1139 cursor: pointer;
1140 text-align: right;
1140 text-align: right;
1141 }
1141 }
1142 }
1142 }
1143 }
1143 }
@@ -1,320 +1,320 b''
1 // forms.less
1 // forms.less
2 // For use in RhodeCode applications;
2 // For use in RhodeCode applications;
3 // see style guide documentation for guidelines.
3 // see style guide documentation for guidelines.
4
4
5 form.rcform {
5 form.rcform {
6
6
7 // reset for ie
7 // reset for ie
8 // using :not(#ie) prevents older browsers from applying these rules
8 // using :not(#ie) prevents older browsers from applying these rules
9 input[type="radio"],
9 input[type="radio"],
10 input[type="checkbox"] {
10 input[type="checkbox"] {
11 padding: 0;
11 padding: 0;
12 border: none;
12 border: none;
13 }
13 }
14 label { display: inline; border:none; padding:none; }
14 label { display: inline; border:none; padding:0; }
15 .label { display: none; }
15 .label { display: none; }
16
16
17 max-width: 940px;
17 max-width: 940px;
18 line-height: normal;
18 line-height: normal;
19 white-space: normal;
19 white-space: normal;
20 font-size: @basefontsize;
20 font-size: @basefontsize;
21 font-family: @text-light;
21 font-family: @text-light;
22 color: @form-textcolor;
22 color: @form-textcolor;
23
23
24 fieldset,
24 fieldset,
25 .buttons {
25 .buttons {
26 clear: both;
26 clear: both;
27 position: relative;
27 position: relative;
28 display:block;
28 display:block;
29 width: 100%;
29 width: 100%;
30 min-height: 3em;
30 min-height: 3em;
31 margin-bottom: @form-vertical-margin;
31 margin-bottom: @form-vertical-margin;
32 line-height: 1.2em;
32 line-height: 1.2em;
33
33
34 &:after { //clearfix
34 &:after { //clearfix
35 content: "";
35 content: "";
36 clear: both;
36 clear: both;
37 width: 100%;
37 width: 100%;
38 height: 1em;
38 height: 1em;
39 }
39 }
40
40
41 .label:not(#ie) {
41 .label:not(#ie) {
42 display: inline;
42 display: inline;
43 margin: 0 1em 0 .5em;
43 margin: 0 1em 0 .5em;
44 line-height: 1em;
44 line-height: 1em;
45 }
45 }
46 }
46 }
47
47
48 legend {
48 legend {
49 float: left;
49 float: left;
50 display: block;
50 display: block;
51 width: @legend-width;
51 width: @legend-width;
52 margin: 0;
52 margin: 0;
53 padding: 0 @padding 0 0;
53 padding: 0 @padding 0 0;
54 }
54 }
55
55
56 .fields {
56 .fields {
57 float: left;
57 float: left;
58 display: block;
58 display: block;
59 width: 100%;
59 width: 100%;
60 max-width: 500px;
60 max-width: 500px;
61 margin: 0 0 @padding -@legend-width;
61 margin: 0 0 @padding -@legend-width;
62 padding: 0 0 0 @legend-width;
62 padding: 0 0 0 @legend-width;
63
63
64 .btn {
64 .btn {
65 display: inline-block;
65 display: inline-block;
66 margin: 0 1em @padding 0;
66 margin: 0 1em @padding 0;
67 }
67 }
68 }
68 }
69
69
70 input,
70 input,
71 textarea {
71 textarea {
72 float: left;
72 float: left;
73 .box-sizing(content-box);
73 .box-sizing(content-box);
74 padding: @input-padding;
74 padding: @input-padding;
75 border: @border-thickness-inputs solid @grey4;
75 border: @border-thickness-inputs solid @grey4;
76 }
76 }
77
77
78 input {
78 input {
79 float: left;
79 float: left;
80 margin: 0 @input-padding 0 0;
80 margin: 0 @input-padding 0 0;
81 line-height: 1em;
81 line-height: 1em;
82 }
82 }
83
83
84 input[type="text"],
84 input[type="text"],
85 input[type="password"],
85 input[type="password"],
86 textarea {
86 textarea {
87 float: left;
87 float: left;
88 min-width: 200px;
88 min-width: 200px;
89 margin: 0 1em @padding 0;
89 margin: 0 1em @padding 0;
90 color: @form-textcolor;
90 color: @form-textcolor;
91 }
91 }
92
92
93 input[type="text"],
93 input[type="text"],
94 input[type="password"] {
94 input[type="password"] {
95 height: 1em;
95 height: 1em;
96 }
96 }
97
97
98 textarea {
98 textarea {
99 width: 100%;
99 width: 100%;
100 margin-top: -1em; //so it lines up with legend
100 margin-top: -1em; //so it lines up with legend
101 overflow: auto;
101 overflow: auto;
102 }
102 }
103
103
104 label:not(#ie) {
104 label:not(#ie) {
105 cursor: pointer;
105 cursor: pointer;
106 display: inline-block;
106 display: inline-block;
107 position: relative;
107 position: relative;
108 background: white;
108 background: white;
109 border-radius: 4px;
109 border-radius: 4px;
110 box-shadow: none;
110 box-shadow: none;
111
111
112 &:hover::after {
112 &:hover::after {
113 opacity: 0.5;
113 opacity: 0.5;
114 }
114 }
115 }
115 }
116
116
117 input[type="radio"]:not(#ie),
117 input[type="radio"]:not(#ie),
118 input[type="checkbox"]:not(#ie) {
118 input[type="checkbox"]:not(#ie) {
119 // Hide the input, but have it still be clickable
119 // Hide the input, but have it still be clickable
120 opacity: 0;
120 opacity: 0;
121 float: left;
121 float: left;
122 height: 0;
122 height: 0;
123 width: 0;
123 width: 0;
124 margin: 0;
124 margin: 0;
125 padding: 0;
125 padding: 0;
126 }
126 }
127 input[type='radio'] + label:not(#ie),
127 input[type='radio'] + label:not(#ie),
128 input[type='checkbox'] + label:not(#ie) {
128 input[type='checkbox'] + label:not(#ie) {
129 margin: 0;
129 margin: 0;
130 clear: none;
130 clear: none;
131 }
131 }
132
132
133 input[type='radio'] + label:not(#ie) {
133 input[type='radio'] + label:not(#ie) {
134 .circle (@form-radio-width,white);
134 .circle (@form-radio-width,white);
135 float: left;
135 float: left;
136 display: inline-block;
136 display: inline-block;
137 height: @form-radio-width;
137 height: @form-radio-width;
138 width: @form-radio-width;
138 width: @form-radio-width;
139 margin: 2px 6px 2px 0;
139 margin: 2px 6px 2px 0;
140 border: 1px solid @grey4;
140 border: 1px solid @grey4;
141 background-color: white;
141 background-color: white;
142 box-shadow: none;
142 box-shadow: none;
143 text-indent: -9999px;
143 text-indent: -9999px;
144 transition: none;
144 transition: none;
145
145
146 & + .label {
146 & + .label {
147 float: left;
147 float: left;
148 margin-top: 7px
148 margin-top: 7px
149 }
149 }
150 }
150 }
151
151
152 input[type='radio']:checked + label:not(#ie) {
152 input[type='radio']:checked + label:not(#ie) {
153 margin: 0 4px 0 -2px;
153 margin: 0 4px 0 -2px;
154 padding: 3px;
154 padding: 3px;
155 border-style: double;
155 border-style: double;
156 border-color: white;
156 border-color: white;
157 border-width: thick;
157 border-width: thick;
158 background-color: @rcblue;
158 background-color: @rcblue;
159 box-shadow: none;
159 box-shadow: none;
160 }
160 }
161
161
162 input[type='checkbox'] + label:not(#ie) {
162 input[type='checkbox'] + label:not(#ie) {
163 float: left;
163 float: left;
164 width: @form-check-width;
164 width: @form-check-width;
165 height: @form-check-width;
165 height: @form-check-width;
166 margin: 0 5px 1em 0;
166 margin: 0 5px 1em 0;
167 border: 1px solid @grey3;
167 border: 1px solid @grey3;
168 .border-radius(@border-radius);
168 .border-radius(@border-radius);
169 background-color: white;
169 background-color: white;
170 box-shadow: none;
170 box-shadow: none;
171 text-indent: -9999px;
171 text-indent: -9999px;
172 transition: none;
172 transition: none;
173
173
174 &:after {
174 &:after {
175 content: '';
175 content: '';
176 width: 9px;
176 width: 9px;
177 height: 5px;
177 height: 5px;
178 position: absolute;
178 position: absolute;
179 top: 4px;
179 top: 4px;
180 left: 4px;
180 left: 4px;
181 border: 3px solid @grey3;
181 border: 3px solid @grey3;
182 border-top: none;
182 border-top: none;
183 border-right: none;
183 border-right: none;
184 background: transparent;
184 background: transparent;
185 opacity: 0;
185 opacity: 0;
186 transform: rotate(-45deg);
186 transform: rotate(-45deg);
187 filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476); /* IE6,IE7 */
187 filter: progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476); /* IE6,IE7 */
188
188
189 -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"; /* IE8 */ }
189 -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"; /* IE8 */ }
190
190
191 & + .label {
191 & + .label {
192 float: left;
192 float: left;
193 margin-top: 5px
193 margin-top: 5px
194 }
194 }
195 }
195 }
196
196
197 input[type=checkbox]:not(#ie) {
197 input[type=checkbox]:not(#ie) {
198 visibility: hidden;
198 visibility: hidden;
199 &:checked + label:after {
199 &:checked + label:after {
200 opacity: 1;
200 opacity: 1;
201 }
201 }
202 }
202 }
203
203
204 // center checkbox and label on a drop-down
204 // center checkbox and label on a drop-down
205 .drop-menu + select + input[type='checkbox'] + label:not(#ie) {
205 .drop-menu + select + input[type='checkbox'] + label:not(#ie) {
206 margin-top:10px;
206 margin-top:10px;
207
207
208 & + .label {
208 & + .label {
209 margin-top: 15px;
209 margin-top: 15px;
210 }
210 }
211 }
211 }
212
212
213 .formlist {
213 .formlist {
214 position: relative;
214 position: relative;
215 float: left;
215 float: left;
216 margin: 0;
216 margin: 0;
217 padding: 0;
217 padding: 0;
218
218
219 li {
219 li {
220 list-style-type: none;
220 list-style-type: none;
221
221
222 &:before { content:none; }
222 &:before { content:none; }
223 &:after {
223 &:after {
224 content: "";
224 content: "";
225 float: left;
225 float: left;
226 display: block;
226 display: block;
227 height: @padding;
227 height: @padding;
228 width: 100%;
228 width: 100%;
229 }
229 }
230 }
230 }
231 }
231 }
232
232
233 .drop-menu {
233 .drop-menu {
234 float: left;
234 float: left;
235 margin: 0 @input-padding 0 0;
235 margin: 0 @input-padding 0 0;
236 }
236 }
237
237
238 .help-block,
238 .help-block,
239 .error-message {
239 .error-message {
240 display: block;
240 display: block;
241 clear: both;
241 clear: both;
242 margin: @textmargin 0;
242 margin: @textmargin 0;
243 }
243 }
244
244
245 .error-message {
245 .error-message {
246 margin-top: 5px;
246 margin-top: 5px;
247 }
247 }
248
248
249 input[type=submit] {
249 input[type=submit] {
250 &:extend(.btn-primary);
250 &:extend(.btn-primary);
251
251
252 &:hover {
252 &:hover {
253 &:extend(.btn-primary:hover);
253 &:extend(.btn-primary:hover);
254 }
254 }
255 }
255 }
256
256
257 input[type=reset] {
257 input[type=reset] {
258 &:extend(.btn-default);
258 &:extend(.btn-default);
259
259
260 &:hover {
260 &:hover {
261 &:extend(.btn-default:hover);
261 &:extend(.btn-default:hover);
262 }
262 }
263 }
263 }
264
264
265 select,
265 select,
266 option:checked {
266 option:checked {
267 background-color: @rclightblue;
267 background-color: @rclightblue;
268 }
268 }
269
269
270 }
270 }
271
271
272 .badged-field {
272 .badged-field {
273 .user-badge {
273 .user-badge {
274 line-height: 25px;
274 line-height: 25px;
275 padding: 10px 5px;
275 padding: 10px 5px;
276 border-radius: @border-radius;
276 border-radius: @border-radius;
277 border-top: 1px solid @rclightblue;
277 border-top: 1px solid @rclightblue;
278 border-left: 1px solid @rclightblue;
278 border-left: 1px solid @rclightblue;
279 border-bottom: 1px solid @rclightblue;
279 border-bottom: 1px solid @rclightblue;
280 font-size: 14px;
280 font-size: 14px;
281 font-style: normal;
281 font-style: normal;
282 color: @text-light;
282 color: @text-light;
283 display: inline-block;
283 display: inline-block;
284 vertical-align: top;
284 vertical-align: top;
285 cursor: default;
285 cursor: default;
286 margin-right: -2px;
286 margin-right: -2px;
287 }
287 }
288 .badge-input-container {
288 .badge-input-container {
289 display: flex;
289 display: flex;
290 position: relative;
290 position: relative;
291 }
291 }
292 .user-disabled {
292 .user-disabled {
293 text-decoration: line-through;
293 text-decoration: line-through;
294 }
294 }
295 .badge-input-wrap {
295 .badge-input-wrap {
296 display: inline-block;
296 display: inline-block;
297 }
297 }
298 }
298 }
299
299
300 // for situations where we wish to display the form value but not the form input
300 // for situations where we wish to display the form value but not the form input
301 input.input-valuedisplay {
301 input.input-valuedisplay {
302 border: none;
302 border: none;
303 }
303 }
304
304
305 // for forms which only display information
305 // for forms which only display information
306 .infoform {
306 .infoform {
307 .fields {
307 .fields {
308 .field {
308 .field {
309 label,
309 label,
310 .label,
310 .label,
311 input,
311 input,
312 .input {
312 .input {
313 margin-top: 0;
313 margin-top: 0;
314 margin-bottom: 0;
314 margin-bottom: 0;
315 padding-top: 0;
315 padding-top: 0;
316 padding-bottom: 0;
316 padding-bottom: 0;
317 }
317 }
318 }
318 }
319 }
319 }
320 }
320 }
General Comments 0
You need to be logged in to leave comments. Login now