##// END OF EJS Templates
user dropdown, submenu dropdown, dropdown adjustments
Liviu -
r3618:008163b7 new-ui
parent child Browse files
Show More
@@ -1,324 +1,327 b''
1 //LOGIN
1 //LOGIN
2
2
3
3
4 .loginbox {
4 .loginbox {
5 max-width: 65%;
5 max-width: 65%;
6 margin: @pagepadding auto;
6 margin: @pagepadding auto;
7 font-family: @text-light;
7 font-family: @text-light;
8 border: @border-thickness solid @grey5;
8 border: @border-thickness solid @grey5;
9 box-sizing: border-box;
9 box-sizing: border-box;
10
10
11 @media (max-width:1200px) {
11 @media (max-width:1200px) {
12 max-width: 85%;
12 max-width: 85%;
13 }
13 }
14
14
15 @media (max-width:768px) {
15 @media (max-width:768px) {
16 max-width: 100%;
16 max-width: 100%;
17 width: 100%;
17 width: 100%;
18 margin: 0;
18 margin: 0;
19 }
19 }
20
20
21 .title {
21 .title {
22 float: none;
22 float: none;
23 }
23 }
24
24
25 .header {
25 .header {
26 width: 100%;
26 width: 100%;
27 padding: 0 35px;
27 padding: 0 35px;
28 box-sizing: border-box;
28 box-sizing: border-box;
29
29
30 .title {
30 .title {
31 padding: 0;
31 padding: 0;
32 }
32 }
33 }
33 }
34
34
35 .loginwrapper {
35 .loginwrapper {
36 float: left;
36 float: left;
37 height: 100%;
37 height: 100%;
38 width: 100%;
38 width: 100%;
39 padding: 35px 55px 35px 35px;
39 padding: 35px 55px 35px 35px;
40 background-color: white;
40 background-color: white;
41 box-sizing: border-box;
41 box-sizing: border-box;
42
42
43 @media (max-width:414px) {
43 @media (max-width:414px) {
44 padding: 35px;
44 padding: 35px;
45 }
45 }
46 }
46 }
47
47
48 .left-column {
48 .left-column {
49 float: left;
49 float: left;
50 position: relative;
50 position: relative;
51 width: 50%;
51 width: 50%;
52 height: 100%;
52 height: 100%;
53
53
54 @media (max-width:414px) {
54 @media (max-width:414px) {
55 display:none;
55 display:none;
56 }
56 }
57 }
57 }
58
58
59 .right-column {
59 .right-column {
60 float: right;
60 float: right;
61 position: relative;
61 position: relative;
62 width: 50%;
62 width: 50%;
63
63
64 @media (max-width:414px) {
64 @media (max-width:414px) {
65 width: 100%;
65 width: 100%;
66 }
66 }
67 }
67 }
68
68
69 .sign-in-image {
69 .sign-in-image {
70 display: block;
70 display: block;
71 width: 65%;
71 width: 65%;
72 margin: 5% auto;
72 margin: 5% auto;
73 }
73 }
74
74
75 .sign-in-title {
75 .sign-in-title {
76
76
77 h4 {
77 h4 {
78 margin: @padding*2 0;
78 margin: @padding*2 0;
79 }
79 }
80 }
80 }
81
81
82 .form {
82 .form {
83 label {
83 label {
84 display: block;
84 display: block;
85 }
85 }
86
86
87 input {
87 input {
88 width: 100%;
88 width: 100%;
89 margin: 0 10% @padding 0;
89 margin: 0 10% @padding 0;
90 .box-sizing(border-box) ;
90 .box-sizing(border-box) ;
91
91
92 &[type="checkbox"] {
92 &[type="checkbox"] {
93 clear: both;
93 clear: both;
94 width: auto;
94 width: auto;
95 margin: 0 1em @padding 0;
95 margin: 0 1em @padding 0;
96 }
96 }
97 }
97 }
98
98
99 .checkbox {
99 .checkbox {
100 display: inline;
100 display: inline;
101 width: auto;
101 width: auto;
102 }
102 }
103
103
104 .sign-in {
104 .sign-in {
105 clear: both;
105 clear: both;
106 width: 100%;
106 width: 100%;
107 margin: @padding 0;
107 margin: @padding 0;
108 }
108 }
109 .pwd_reset {
109 .pwd_reset {
110 font-weight: normal;
110 font-weight: normal;
111 }
111 }
112 .new_account {
112 .new_account {
113 font-weight: bold;
113 font-weight: bold;
114 }
114 }
115 }
115 }
116 .register_message,
116 .register_message,
117 .activation_msg {
117 .activation_msg {
118 padding: 0 0 @padding;
118 padding: 0 0 @padding;
119 }
119 }
120
120
121 .buttons,
121 .buttons,
122 .links {
122 .links {
123 padding: 0;
123 padding: 0;
124 }
124 }
125
125
126 .buttons {
126 .buttons {
127 input {
127 input {
128 margin-right: 0;
128 margin-right: 0;
129 .box-sizing(border-box);
129 .box-sizing(border-box);
130 }
130 }
131
131
132 #sign_up, #send {
132 #sign_up, #send {
133 width: 100%;
133 width: 100%;
134 }
134 }
135 }
135 }
136
136
137 .fields {
137 .fields {
138 .field.field-compact {
138 .field.field-compact {
139 margin-bottom: 0px;
139 margin-bottom: 0px;
140 }
140 }
141
141
142 .buttons {
142 .buttons {
143 margin: 0;
143 margin: 0;
144 }
144 }
145
145
146 .field {
146 .field {
147 margin-bottom: 15px;
147 margin-bottom: 15px;
148
148
149 input {
149 input {
150 width: 100%;
150 width: 100%;
151 .box-sizing(border-box);
151 .box-sizing(border-box);
152 }
152 }
153
153
154 .input {
154 .input {
155 margin-left: 0;
155 margin-left: 0;
156 }
156 }
157
157
158 .label {
158 .label {
159 padding-top: 0;
159 padding-top: 0;
160 }
160 }
161 }
161 }
162 }
162 }
163
163
164 .checkbox {
164 .checkbox {
165 margin: 0 0 @textmargin 0;
165 margin: 0 0 @textmargin 0;
166
166
167 input[type="checkbox"] {
167 input[type="checkbox"] {
168 width: auto;
168 width: auto;
169 }
169 }
170
170
171 label {
171 label {
172 padding: 0;
172 padding: 0;
173 min-height: 0;
173 min-height: 0;
174 }
174 }
175 }
175 }
176
176
177 .activation_msg {
177 .activation_msg {
178 padding: @padding 0 0;
178 padding: @padding 0 0;
179 color: @grey4;
179 color: @grey4;
180 }
180 }
181
181
182 .links {
182 .links {
183 float: right;
183 float: right;
184 margin: 0;
184 margin: 0;
185 padding: 0;
185 padding: 0;
186 line-height: 1;
186 line-height: 1;
187
187
188 p {
188 p {
189 float: right;
189 float: right;
190 margin: 0;
190 margin: 0;
191 line-height: 1.5em;
191 line-height: 1.5em;
192 }
192 }
193 }
193 }
194
194
195 p.help-block {
195 p.help-block {
196 margin-left: 0;
196 margin-left: 0;
197 }
197 }
198 }
198 }
199
199
200 .user-menu.submenu {
200 .user-menu.submenu {
201 right: 0;
201 right: 0;
202 left: auto;
202 left: auto;
203 min-width: 290px;
203 min-width: 290px;
204 }
204 }
205
205
206
206
207 .user-menu {
207 .user-menu {
208 .bookmark-items {
208 .bookmark-items {
209 padding: 4px 2px;
209 border-top: @border-thickness solid @grey6;
210 margin-top: 1em;
211 padding: 1em .5em;
210 color: @grey3;
212 color: @grey3;
211 border-bottom: @grey3;
213 border-bottom: @grey3;
212
214
213 a {
215 a {
214 padding: 0 !important;
216 padding: 0 !important;
215 color: @rcblue !important;
217 color: @rcblue !important;
216 }
218 }
217 }
219 }
218 a.bookmark-item {
220 a.bookmark-item {
219 color: @rcblue !important;
221 color: @rcblue !important;
220 }
222 }
221 }
223 }
222
224
223
225
224 #quick_login {
226 #quick_login {
225 left: auto;
227 left: auto;
226 right: 0;
228 right: 0;
227 padding: @menupadding;
229 padding: @menupadding;
228 z-index: 999;
230 z-index: 999;
229 overflow: hidden;
231 overflow: hidden;
230 background-color: @grey6;
232 background-color: @white;
233 border: 1px solid @grey5;
231 color: @grey2;
234 color: @grey2;
235 box-shadow: @dropdown-shadow;
232
236
233 h4 {
237 h4 {
234 margin-bottom: 12px;
238 margin-bottom: 12px;
235 }
239 }
236
240
237 .form {
241 .form {
238 width: auto;
242 width: auto;
239 }
243 }
240
244
241 label, .field {
245 label, .field {
242 margin-bottom: 0;
246 margin-bottom: 0;
243 }
247 }
244
248
245 .label {
249 .label {
246 padding-top: 0;
250 padding-top: 0;
247 }
251 }
248
252
249 input {
253 input {
250 min-width: 215px;
254 min-width: 215px;
251 margin: 8px 0 @padding;
255 margin: 8px 0 @padding;
252 }
256 }
253
257
254 input[type="submit"] {
258 input[type="submit"] {
255 &:extend(.btn-primary);
259 &:extend(.btn-primary);
256 width:100%;
260 width:100%;
257 min-width: 0;
261 min-width: 0;
258 }
262 }
259
263
260 .forgot_password,
264 .forgot_password,
261 .buttons .register {
265 .buttons .register {
262 a {
266 a {
263 color: @rcblue;
267 color: @rcblue;
264
268
265 &:hover {
269 &:hover {
266 color: @rcdarkblue;
270 color: @rcdarkblue;
267 }
271 }
268 }
272 }
269 }
273 }
270
274
271 .buttons {
275 .buttons {
272 margin: 0;
276 margin: 0;
273 }
277 }
274
278
275 .buttons a {
279 .buttons a {
276 padding: 8px 0;
280 padding: 8px 0;
277 line-height: 1.4em;
281 line-height: 1.4em;
278 color: @grey4;
282 color: @grey4;
279
283
280 &:hover {
284 &:hover {
281 color: @grey2;
285 color: @grey2;
282 }
286 }
283 }
287 }
284
288
285 #sign_in {
289 #sign_in {
286 margin-bottom: 0
290 margin-bottom: 0
287 }
291 }
288
292
289 .big_gravatar {
293 .big_gravatar {
290 float: left;
294 float: left;
291 display: block;
295 display: block;
292 margin-top: .5em;
296 padding: .5em;
293 }
297 }
294
298
295 .full_name,
299 .full_name {
296 .email {
300 margin: 0 0 0 70px;
297 margin: 0 0 0 65px;
301 padding-top: 1em;
298 }
302 }
299
303
300 .email {
304 .email {
305 margin: 0 0 0 70px;
301 font-family: @text-light;
306 font-family: @text-light;
302 }
307 }
303
308
304 ol.links {
309 ol.links {
305 clear:both;
310 clear:both;
306 margin: 0;
311 margin: 0;
307 padding: @padding 0 0 0;
312 padding: @padding 0 0 0;
308
313
309 li {
314 li {
310 border-top: @border-thickness solid @grey5;
311
312 input {
315 input {
313 margin: @padding 0 0 0;
316 margin: @padding 0 0 0;
314 }
317 }
315 }
318 }
316 }
319 }
317 }
320 }
318 .submenu #quick_login li:hover {
321 .submenu #quick_login li:hover {
319 background-color: transparent;
322 background-color: transparent;
320 }
323 }
321
324
322 #quick_login_link:hover + #quick_login {
325 #quick_login_link:hover + #quick_login {
323 display: block;
326 display: block;
324 }
327 }
@@ -1,753 +1,756 b''
1 // navigation.less
1 // navigation.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 // TOP MAIN DARK NAVIGATION
5 // TOP MAIN DARK NAVIGATION
6
6
7 .header .main_nav.horizontal-list {
7 .header .main_nav.horizontal-list {
8 float: right;
8 float: right;
9 color: @grey4;
9 color: @grey4;
10 > li {
10 > li {
11 a {
11 a {
12 color: @grey4;
12 color: @grey4;
13 }
13 }
14 }
14 }
15 }
15 }
16
16
17 // HEADER NAVIGATION
17 // HEADER NAVIGATION
18
18
19 .horizontal-list {
19 .horizontal-list {
20 display: block;
20 display: block;
21 margin: 0;
21 margin: 0;
22 padding: 0;
22 padding: 0;
23 -webkit-padding-start: 0;
23 -webkit-padding-start: 0;
24 text-align: left;
24 text-align: left;
25 font-size: @navigation-fontsize;
25 font-size: @navigation-fontsize;
26 color: @grey6;
26 color: @grey6;
27 z-index:10;
27 z-index:10;
28
28
29 li {
29 li {
30 line-height: 1em;
30 line-height: 1em;
31 list-style-type: none;
31 list-style-type: none;
32 margin: 0 20px 0 0;
32 margin: 0 20px 0 0;
33
33
34 a {
34 a {
35 padding: 0 .5em;
35 padding: 0 .5em;
36
36
37 &.menu_link_notifications {
37 &.menu_link_notifications {
38 .pill(7px,@rcblue);
38 .pill(7px,@rcblue);
39 display: inline;
39 display: inline;
40 margin: 0 7px 0 .7em;
40 margin: 0 7px 0 .7em;
41 font-size: @basefontsize;
41 font-size: @basefontsize;
42 color: white;
42 color: white;
43
43
44 &.empty {
44 &.empty {
45 background-color: @grey4;
45 background-color: @grey4;
46 }
46 }
47
47
48 &:hover {
48 &:hover {
49 background-color: @rcdarkblue;
49 background-color: @rcdarkblue;
50 }
50 }
51 }
51 }
52 }
52 }
53 .pill_container {
53 .pill_container {
54 margin: 1.25em 0px 0px 0px;
54 margin: 1.25em 0px 0px 0px;
55 float: right;
55 float: right;
56 }
56 }
57
57
58 &#quick_login_li {
58 &#quick_login_li {
59 &:hover {
59 &:hover {
60 color: @grey5;
60 color: @grey5;
61 }
61 }
62
62
63 a.menu_link_notifications {
63 a.menu_link_notifications {
64 color: white;
64 color: white;
65 }
65 }
66
66
67 .user {
67 .user {
68 padding-bottom: 10px;
68 padding-bottom: 10px;
69 }
69 }
70 }
70 }
71
71
72 &:before { content: none; }
72 &:before { content: none; }
73
73
74 &:last-child {
74 &:last-child {
75 .menulabel {
75 .menulabel {
76 padding-right: 0;
76 padding-right: 0;
77 border-right: none;
77 border-right: none;
78
78
79 .show_more {
79 .show_more {
80 padding-right: 0;
80 padding-right: 0;
81 }
81 }
82 }
82 }
83
83
84 &> a {
84 &> a {
85 border-bottom: none;
85 border-bottom: none;
86 }
86 }
87 }
87 }
88
88
89 &.open {
89 &.open {
90
90
91 a {
91 a {
92 color: white;
92 color: white;
93 }
93 }
94 }
94 }
95
95
96 &:focus {
96 &:focus {
97 outline: none;
97 outline: none;
98 }
98 }
99
99
100 ul li {
100 ul li {
101 display: block;
101 display: block;
102
102
103 &:last-child> a {
103 &:last-child> a {
104 border-bottom: none;
104 border-bottom: none;
105 }
105 }
106
106
107 ul li:last-child a {
107 ul li:last-child a {
108 /* we don't expect more then 3 levels of submenu and the third
108 /* we don't expect more then 3 levels of submenu and the third
109 level can have different html structure */
109 level can have different html structure */
110 border-bottom: none;
110 border-bottom: none;
111 }
111 }
112 }
112 }
113 }
113 }
114
114
115 > li {
115 > li {
116 float: left;
116 float: left;
117 display: block;
117 display: block;
118 padding: 0;
118 padding: 0;
119
119
120 > a,
120 > a,
121 &.has_select2 a {
121 &.has_select2 a {
122 display: block;
122 display: block;
123 padding: 10px 0;
123 padding: 10px 0;
124 }
124 }
125
125
126 .menulabel {
126 .menulabel {
127 line-height: 1em;
127 line-height: 1em;
128 // for this specifically we do not use a variable
128 // for this specifically we do not use a variable
129 }
129 }
130
130
131 .pr_notifications {
131 .pr_notifications {
132 padding-left: .5em;
132 padding-left: .5em;
133 }
133 }
134
134
135 .pr_notifications + .menulabel {
135 .pr_notifications + .menulabel {
136 display:inline;
136 display:inline;
137 padding-left: 0;
137 padding-left: 0;
138 }
138 }
139
139
140 &:hover,
140 &:hover,
141 &.open,
141 &.open,
142 &.active {
142 &.active {
143 a {
143 a {
144 color: @rcblue;
144 color: @rcblue;
145 }
145 }
146 }
146 }
147 }
147 }
148
148
149 pre {
149 pre {
150 margin: 0;
150 margin: 0;
151 padding: 0;
151 padding: 0;
152 }
152 }
153
153
154 .select2-container,
154 .select2-container,
155 .menulink.childs {
155 .menulink.childs {
156 position: relative;
156 position: relative;
157 }
157 }
158
158
159 #quick_login {
159 #quick_login {
160
160
161 li a {
161 li a {
162 padding: .5em 0;
162 padding: .5em 0;
163 border-bottom: none;
163 border-bottom: none;
164 color: @grey2;
164 color: @grey2;
165
165
166 &:hover { color: @grey1; }
166 &:hover { color: @grey1; }
167 }
167 }
168 }
168 }
169
169
170 #quick_login_link {
170 #quick_login_link {
171 display: inline-block;
171 display: inline-block;
172
172
173 .gravatar {
173 .gravatar {
174 border: 1px solid @grey5;
174 border: 1px solid @grey5;
175 }
175 }
176
176
177 .gravatar-login {
177 .gravatar-login {
178 height: 20px;
178 height: 20px;
179 width: 20px;
179 width: 20px;
180 margin: -8px 0;
180 margin: -8px 0;
181 padding: 0;
181 padding: 0;
182 }
182 }
183
183
184 &:hover .user {
184 &:hover .user {
185 color: @grey6;
185 color: @grey6;
186 }
186 }
187 }
187 }
188 }
188 }
189 .header .horizontal-list {
189 .header .horizontal-list {
190
190
191 li {
191 li {
192
192
193 &#quick_login_li {
193 &#quick_login_li {
194 padding-left: .5em;
194 padding-left: .5em;
195
195
196 &:hover #quick_login_link {
196 &:hover #quick_login_link {
197 color: inherit;
197 color: inherit;
198 }
198 }
199
199
200 .menu_link_user {
200 .menu_link_user {
201 padding: 0 2px;
201 padding: 0 2px;
202 }
202 }
203 }
203 }
204 list-style-type: none;
204 list-style-type: none;
205 }
205 }
206
206
207 > li {
207 > li {
208
208
209 a {
209 a {
210 padding: 18px 0 12px 0;
210 padding: 18px 0 12px 0;
211 color: @nav-grey;
211 color: @nav-grey;
212
212
213 &.menu_link_notifications {
213 &.menu_link_notifications {
214 padding: 1px 8px;
214 padding: 1px 8px;
215 }
215 }
216 }
216 }
217
217
218 &:hover,
218 &:hover,
219 &.open,
219 &.open,
220 &.active {
220 &.active {
221 .pill_container a {
221 .pill_container a {
222 // don't select text for the pill container, it has it' own
222 // don't select text for the pill container, it has it' own
223 // hover behaviour
223 // hover behaviour
224 color: @nav-grey;
224 color: @nav-grey;
225 }
225 }
226 }
226 }
227
227
228 &:hover,
228 &:hover,
229 &.open,
229 &.open,
230 &.active {
230 &.active {
231 a {
231 a {
232 color: @grey6;
232 color: @grey6;
233 }
233 }
234 }
234 }
235
235
236 .select2-dropdown-open a {
236 .select2-dropdown-open a {
237 color: @grey6;
237 color: @grey6;
238 }
238 }
239
239
240 .repo-switcher {
240 .repo-switcher {
241 padding-left: 0;
241 padding-left: 0;
242
242
243 .menulabel {
243 .menulabel {
244 padding-left: 0;
244 padding-left: 0;
245 }
245 }
246 }
246 }
247 }
247 }
248
248
249 li ul li {
249 li ul li {
250 background-color:@grey2;
250 background-color:@grey2;
251
251
252 a {
252 a {
253 padding: .5em 0;
253 padding: .5em 0;
254 border-bottom: @border-thickness solid @border-default-color;
254 border-bottom: @border-thickness solid @border-default-color;
255 color: @grey6;
255 color: @grey6;
256 }
256 }
257
257
258 &:last-child a, &.last a{
258 &:last-child a, &.last a{
259 border-bottom: none;
259 border-bottom: none;
260 }
260 }
261
261
262 &:hover {
262 &:hover {
263 background-color: @grey3;
263 background-color: @grey3;
264 }
264 }
265 }
265 }
266
266
267 .submenu {
267 .submenu {
268 margin-top: 5px;
268 margin-top: 5px;
269 }
269 }
270 }
270 }
271
271
272 // SUBMENUS
272 // SUBMENUS
273 .navigation .submenu {
273 .navigation .submenu {
274 display: none;
274 display: none;
275 }
275 }
276
276
277 .navigation li.open {
277 .navigation li.open {
278 .submenu {
278 .submenu {
279 display: block;
279 display: block;
280 }
280 }
281 }
281 }
282
282
283 .navigation li:last-child .submenu {
283 .navigation li:last-child .submenu {
284 right: -20px;
284 right: auto;
285 left: auto;
285 left: 0;
286 border: 1px solid @grey5;
287 background: @white;
288 box-shadow: @dropdown-shadow;
286 }
289 }
287
290
288 .submenu {
291 .submenu {
289 position: absolute;
292 position: absolute;
290 top: 100%;
293 top: 100%;
291 left: 0;
294 left: 0;
292 min-width: 150px;
295 min-width: 150px;
293 margin: 6px 0 0;
296 margin: 2px 0 0;
294 padding: 0;
297 padding: 0;
295 text-align: left;
298 text-align: left;
296 font-family: @text-light;
299 font-family: @text-light;
297 border-radius: @border-radius;
300 border-radius: @border-radius;
298 z-index: 20;
301 z-index: 20;
299
302
300 li {
303 li {
301 display: block;
304 display: block;
302 margin: 0;
305 margin: 0;
303 padding: 0 .5em;
306 padding: 0 .5em;
304 line-height: 1em;
307 line-height: 1em;
305 color: @grey3;
308 color: @grey3;
306 background-color: @grey6;
309 background-color: @white;
307 list-style-type: none;
310 list-style-type: none;
308
311
309 a {
312 a {
310 display: block;
313 display: block;
311 width: 100%;
314 width: 100%;
312 padding: .5em 0;
315 padding: .5em 0;
313 border-right: none;
316 border-right: none;
314 border-bottom: @border-thickness solid white;
317 border-bottom: @border-thickness solid white;
315 color: @grey3;
318 color: @grey3;
316 }
319 }
317
320
318 ul {
321 ul {
319 display: none;
322 display: none;
320 position: absolute;
323 position: absolute;
321 top: 0;
324 top: 0;
322 right: 100%;
325 right: 100%;
323 padding: 0;
326 padding: 0;
324 z-index: 30;
327 z-index: 30;
325 }
328 }
326 &:hover {
329 &:hover {
327 background-color: @grey5;
330 background-color: @grey7;
328 -webkit-transition: background .3s;
331 -webkit-transition: background .3s;
329 -moz-transition: background .3s;
332 -moz-transition: background .3s;
330 -o-transition: background .3s;
333 -o-transition: background .3s;
331 transition: background .3s;
334 transition: background .3s;
332
335
333 ul {
336 ul {
334 display: block;
337 display: block;
335 }
338 }
336 }
339 }
337 }
340 }
338
341
339 }
342 }
340
343
341
344
342
345
343
346
344 // repo dropdown
347 // repo dropdown
345 .quick_repo_menu {
348 .quick_repo_menu {
346 width: 15px;
349 width: 15px;
347 text-align: center;
350 text-align: center;
348 position: relative;
351 position: relative;
349 cursor: pointer;
352 cursor: pointer;
350
353
351 div {
354 div {
352 overflow: visible !important;
355 overflow: visible !important;
353 }
356 }
354
357
355 &.sorting {
358 &.sorting {
356 cursor: auto;
359 cursor: auto;
357 }
360 }
358
361
359 &:hover {
362 &:hover {
360 .menu_items_container {
363 .menu_items_container {
361 position: absolute;
364 position: absolute;
362 display: block;
365 display: block;
363 }
366 }
364 .menu_items {
367 .menu_items {
365 display: block;
368 display: block;
366 }
369 }
367 }
370 }
368
371
369 i {
372 i {
370 margin: 0;
373 margin: 0;
371 color: @grey4;
374 color: @grey4;
372 }
375 }
373
376
374 .menu_items_container {
377 .menu_items_container {
375 position: absolute;
378 position: absolute;
376 top: 0;
379 top: 0;
377 left: 100%;
380 left: 100%;
378 margin: 0;
381 margin: 0;
379 padding: 0;
382 padding: 0;
380 list-style: none;
383 list-style: none;
381 background-color: @grey6;
384 background-color: @grey6;
382 z-index: 999;
385 z-index: 999;
383 text-align: left;
386 text-align: left;
384
387
385 a {
388 a {
386 color: @grey2;
389 color: @grey2;
387 }
390 }
388
391
389 ul.menu_items {
392 ul.menu_items {
390 margin: 0;
393 margin: 0;
391 padding: 0;
394 padding: 0;
392 }
395 }
393
396
394 li {
397 li {
395 margin: 0;
398 margin: 0;
396 padding: 0;
399 padding: 0;
397 line-height: 1em;
400 line-height: 1em;
398 list-style-type: none;
401 list-style-type: none;
399
402
400 a {
403 a {
401 display: block;
404 display: block;
402 height: 16px;
405 height: 16px;
403 padding: 8px; //must add up to td height (28px)
406 padding: 8px; //must add up to td height (28px)
404 width: 120px; // set width
407 width: 120px; // set width
405
408
406 &:hover {
409 &:hover {
407 background-color: @grey5;
410 background-color: @grey5;
408 -webkit-transition: background .3s;
411 -webkit-transition: background .3s;
409 -moz-transition: background .3s;
412 -moz-transition: background .3s;
410 -o-transition: background .3s;
413 -o-transition: background .3s;
411 transition: background .3s;
414 transition: background .3s;
412 }
415 }
413 }
416 }
414 }
417 }
415 }
418 }
416 }
419 }
417
420
418 // Header Repository Switcher
421 // Header Repository Switcher
419 // Select2 Dropdown
422 // Select2 Dropdown
420 #select2-drop.select2-drop.repo-switcher-dropdown {
423 #select2-drop.select2-drop.repo-switcher-dropdown {
421 width: auto !important;
424 width: auto !important;
422 margin-top: 5px;
425 margin-top: 5px;
423 padding: 1em 0;
426 padding: 1em 0;
424 text-align: left;
427 text-align: left;
425 .border-radius-bottom(@border-radius);
428 .border-radius-bottom(@border-radius);
426 border-color: transparent;
429 border-color: transparent;
427 color: @grey6;
430 color: @grey6;
428 background-color: @grey2;
431 background-color: @grey2;
429
432
430 input {
433 input {
431 min-width: 90%;
434 min-width: 90%;
432 }
435 }
433
436
434 ul.select2-result-sub {
437 ul.select2-result-sub {
435
438
436 li {
439 li {
437 line-height: 1em;
440 line-height: 1em;
438
441
439 &:hover,
442 &:hover,
440 &.select2-highlighted {
443 &.select2-highlighted {
441 background-color: @grey3;
444 background-color: @grey3;
442 }
445 }
443 }
446 }
444
447
445 &:before { content: none; }
448 &:before { content: none; }
446 }
449 }
447
450
448 ul.select2-results {
451 ul.select2-results {
449 min-width: 200px;
452 min-width: 200px;
450 margin: 0;
453 margin: 0;
451 padding: 0;
454 padding: 0;
452 list-style-type: none;
455 list-style-type: none;
453 overflow-x: visible;
456 overflow-x: visible;
454 overflow-y: scroll;
457 overflow-y: scroll;
455
458
456 li {
459 li {
457 padding: 0 8px;
460 padding: 0 8px;
458 line-height: 1em;
461 line-height: 1em;
459 color: @grey6;
462 color: @grey6;
460
463
461 &>.select2-result-label {
464 &>.select2-result-label {
462 padding: 8px 0;
465 padding: 8px 0;
463 border-bottom: @border-thickness solid @grey3;
466 border-bottom: @border-thickness solid @grey3;
464 white-space: nowrap;
467 white-space: nowrap;
465 color: @grey5;
468 color: @grey5;
466 cursor: pointer;
469 cursor: pointer;
467 }
470 }
468
471
469 &.select2-result-with-children {
472 &.select2-result-with-children {
470 margin: 0;
473 margin: 0;
471 padding: 0;
474 padding: 0;
472 }
475 }
473
476
474 &.select2-result-unselectable > .select2-result-label {
477 &.select2-result-unselectable > .select2-result-label {
475 margin: 0 8px;
478 margin: 0 8px;
476 }
479 }
477
480
478 }
481 }
479 }
482 }
480
483
481 ul.select2-result-sub {
484 ul.select2-result-sub {
482 margin: 0;
485 margin: 0;
483 padding: 0;
486 padding: 0;
484
487
485 li {
488 li {
486 display: block;
489 display: block;
487 margin: 0;
490 margin: 0;
488 border-right: none;
491 border-right: none;
489 line-height: 1em;
492 line-height: 1em;
490 font-family: @text-light;
493 font-family: @text-light;
491 color: @grey2;
494 color: @grey2;
492 list-style-type: none;
495 list-style-type: none;
493
496
494 &:hover {
497 &:hover {
495 background-color: @grey3;
498 background-color: @grey3;
496 }
499 }
497 }
500 }
498 }
501 }
499 }
502 }
500
503
501
504
502 #context-bar {
505 #context-bar {
503 display: block;
506 display: block;
504 margin: 0 auto 20px 0;
507 margin: 0 auto 20px 0;
505 padding: 0 @header-padding;
508 padding: 0 @header-padding;
506 background-color: @grey7;
509 background-color: @grey7;
507 border-bottom: 1px solid @grey5;
510 border-bottom: 1px solid @grey5;
508
511
509 .clear {
512 .clear {
510 clear: both;
513 clear: both;
511 }
514 }
512 }
515 }
513
516
514 ul#context-pages {
517 ul#context-pages {
515 li {
518 li {
516 list-style-type: none;
519 list-style-type: none;
517
520
518 a {
521 a {
519 color: @grey2;
522 color: @grey2;
520
523
521 &:hover {
524 &:hover {
522 color: @grey1;
525 color: @grey1;
523 }
526 }
524 }
527 }
525
528
526 &.active {
529 &.active {
527 // special case, non-variable color
530 // special case, non-variable color
528 border-bottom: 2px solid @rcblue;
531 border-bottom: 2px solid @rcblue;
529
532
530 a {
533 a {
531 color: @rcblue;
534 color: @rcblue;
532 }
535 }
533 }
536 }
534 }
537 }
535 }
538 }
536
539
537 // PAGINATION
540 // PAGINATION
538
541
539 .pagination {
542 .pagination {
540 border: @border-thickness solid @grey5;
543 border: @border-thickness solid @grey5;
541 color: @grey2;
544 color: @grey2;
542 box-shadow: @button-shadow;
545 box-shadow: @button-shadow;
543
546
544 .current {
547 .current {
545 color: @grey4;
548 color: @grey4;
546 }
549 }
547 }
550 }
548
551
549 .dataTables_processing {
552 .dataTables_processing {
550 text-align: center;
553 text-align: center;
551 font-size: 1.1em;
554 font-size: 1.1em;
552 position: relative;
555 position: relative;
553 top: 95px;
556 top: 95px;
554 }
557 }
555
558
556 .dataTables_paginate, .pagination-wh {
559 .dataTables_paginate, .pagination-wh {
557 text-align: left;
560 text-align: left;
558 display: inline-block;
561 display: inline-block;
559 border-left: 1px solid @grey5;
562 border-left: 1px solid @grey5;
560 float: none;
563 float: none;
561 overflow: hidden;
564 overflow: hidden;
562 box-shadow: @button-shadow;
565 box-shadow: @button-shadow;
563
566
564 .paginate_button, .pager_curpage,
567 .paginate_button, .pager_curpage,
565 .pager_link, .pg-previous, .pg-next, .pager_dotdot {
568 .pager_link, .pg-previous, .pg-next, .pager_dotdot {
566 display: inline-block;
569 display: inline-block;
567 padding: @menupadding/4 @menupadding;
570 padding: @menupadding/4 @menupadding;
568 border: 1px solid @grey5;
571 border: 1px solid @grey5;
569 border-left: 0;
572 border-left: 0;
570 color: @grey2;
573 color: @grey2;
571 cursor: pointer;
574 cursor: pointer;
572 float: left;
575 float: left;
573
576
574 &:hover {
577 &:hover {
575 color: @rcdarkblue;
578 color: @rcdarkblue;
576 }
579 }
577 }
580 }
578
581
579 .paginate_button.disabled,
582 .paginate_button.disabled,
580 .disabled {
583 .disabled {
581 color: @grey3;
584 color: @grey3;
582 cursor: default;
585 cursor: default;
583 opacity: 0.5;
586 opacity: 0.5;
584 }
587 }
585
588
586 .paginate_button.current, .pager_curpage {
589 .paginate_button.current, .pager_curpage {
587 background: @rcblue;
590 background: @rcblue;
588 border-color: @rcblue;
591 border-color: @rcblue;
589 color: @white;
592 color: @white;
590 }
593 }
591
594
592 .ellipsis {
595 .ellipsis {
593 display: inline-block;
596 display: inline-block;
594 text-align: left;
597 text-align: left;
595 padding: @menupadding/4 @menupadding;
598 padding: @menupadding/4 @menupadding;
596 border: 1px solid @grey5;
599 border: 1px solid @grey5;
597 border-left: 0;
600 border-left: 0;
598 float: left;
601 float: left;
599 }
602 }
600 }
603 }
601
604
602 // SIDEBAR
605 // SIDEBAR
603
606
604 .sidebar {
607 .sidebar {
605 .block-left;
608 .block-left;
606 clear: left;
609 clear: left;
607 max-width: @sidebar-width;
610 max-width: @sidebar-width;
608 margin-right: @sidebarpadding;
611 margin-right: @sidebarpadding;
609 padding-right: @sidebarpadding;
612 padding-right: @sidebarpadding;
610 font-family: @text-regular;
613 font-family: @text-regular;
611 color: @grey1;
614 color: @grey1;
612
615
613 &#graph_nodes {
616 &#graph_nodes {
614 clear:both;
617 clear:both;
615 width: auto;
618 width: auto;
616 margin-left: -100px;
619 margin-left: -100px;
617 padding: 0;
620 padding: 0;
618 border: none;
621 border: none;
619 }
622 }
620
623
621 .nav-pills {
624 .nav-pills {
622 margin: 0;
625 margin: 0;
623 }
626 }
624
627
625 .nav {
628 .nav {
626 list-style: none;
629 list-style: none;
627 padding: 0;
630 padding: 0;
628
631
629 li {
632 li {
630 padding-bottom: @menupadding;
633 padding-bottom: @menupadding;
631 line-height: 1em;
634 line-height: 1em;
632 color: @grey4;
635 color: @grey4;
633 list-style-type: none;
636 list-style-type: none;
634
637
635 &.active a {
638 &.active a {
636 color: @grey2;
639 color: @grey2;
637 }
640 }
638
641
639 a {
642 a {
640 color: @grey4;
643 color: @grey4;
641 }
644 }
642 }
645 }
643
646
644 }
647 }
645 }
648 }
646
649
647 .main_filter_help_box {
650 .main_filter_help_box {
648 padding: 7px 7px;
651 padding: 7px 7px;
649 display: inline-block;
652 display: inline-block;
650 vertical-align: top;
653 vertical-align: top;
651 background: inherit;
654 background: inherit;
652 position: absolute;
655 position: absolute;
653 right: 0;
656 right: 0;
654 top: 9px;
657 top: 9px;
655 }
658 }
656
659
657 .main_filter_input_box {
660 .main_filter_input_box {
658 display: inline-block;
661 display: inline-block;
659
662
660 .searchItems {
663 .searchItems {
661 display:flex;
664 display:flex;
662 background: @black;
665 background: @black;
663 padding: 0px;
666 padding: 0px;
664 border-radius: 3px;
667 border-radius: 3px;
665 border: 1px solid @black;
668 border: 1px solid @black;
666
669
667 a {
670 a {
668 border: none !important;
671 border: none !important;
669 }
672 }
670 }
673 }
671
674
672 .searchTag {
675 .searchTag {
673 line-height: 28px;
676 line-height: 28px;
674 padding: 0 5px;
677 padding: 0 5px;
675
678
676 .tag {
679 .tag {
677 color: @grey5;
680 color: @grey5;
678 border-color: @grey2;
681 border-color: @grey2;
679 background: @grey1;
682 background: @grey1;
680 }
683 }
681 }
684 }
682
685
683 .searchTagFilter {
686 .searchTagFilter {
684 background-color: @black !important;
687 background-color: @black !important;
685 margin-right: 0;
688 margin-right: 0;
686 }
689 }
687
690
688 .searchTagHelp {
691 .searchTagHelp {
689 background-color: @grey1 !important;
692 background-color: @grey1 !important;
690 margin: 0;
693 margin: 0;
691 }
694 }
692 .searchTagHelp:hover {
695 .searchTagHelp:hover {
693 background-color: @grey1 !important;
696 background-color: @grey1 !important;
694 }
697 }
695 .searchTagInput {
698 .searchTagInput {
696 background-color: @grey1 !important;
699 background-color: @grey1 !important;
697 margin-right: 0;
700 margin-right: 0;
698 }
701 }
699 }
702 }
700
703
701 .main_filter_box {
704 .main_filter_box {
702 margin: 9px 0 0 0;
705 margin: 9px 0 0 0;
703 }
706 }
704
707
705 #main_filter_help {
708 #main_filter_help {
706 background: @grey3;
709 background: @grey3;
707 border: 1px solid black;
710 border: 1px solid black;
708 position: absolute;
711 position: absolute;
709 white-space: pre;
712 white-space: pre;
710 z-index: 9999;
713 z-index: 9999;
711 color: @nav-grey;
714 color: @nav-grey;
712 margin: 1px 7px;
715 margin: 1px 7px;
713 padding: 0 10px;
716 padding: 0 10px;
714 }
717 }
715
718
716 input {
719 input {
717
720
718 &.main_filter_input {
721 &.main_filter_input {
719 padding: 5px 10px;
722 padding: 5px 10px;
720 min-width: 260px;
723 min-width: 260px;
721 color: @grey7;
724 color: @grey7;
722 background: @black;
725 background: @black;
723 min-height: 18px;
726 min-height: 18px;
724 border: 0;
727 border: 0;
725
728
726 &:active {
729 &:active {
727 color: @grey2 !important;
730 color: @grey2 !important;
728 background: white !important;
731 background: white !important;
729 }
732 }
730 &:focus {
733 &:focus {
731 color: @grey2 !important;
734 color: @grey2 !important;
732 background: white !important;
735 background: white !important;
733 }
736 }
734 }
737 }
735 }
738 }
736
739
737
740
738
741
739 .main_filter_input::placeholder {
742 .main_filter_input::placeholder {
740 color: @nav-grey;
743 color: @nav-grey;
741 opacity: 1;
744 opacity: 1;
742 }
745 }
743
746
744 .notice-box {
747 .notice-box {
745 display:block !important;
748 display:block !important;
746 padding: 9px 0 !important;
749 padding: 9px 0 !important;
747 }
750 }
748
751
749 .menulabel-notice {
752 .menulabel-notice {
750 border: 1px solid @color5;
753 border: 1px solid @color5;
751 padding:7px 10px;
754 padding:7px 10px;
752 color: @color5;
755 color: @color5;
753 }
756 }
@@ -1,244 +1,240 b''
1 // select2.less
1 // select2.less
2 // For use in RhodeCode application drop down select boxes;
2 // For use in RhodeCode application drop down select boxes;
3 // see style guide documentation for guidelines.
3 // see style guide documentation for guidelines.
4
4
5
5
6 // SELECT2 DROPDOWN MENUS
6 // SELECT2 DROPDOWN MENUS
7
7
8 //Select2 Dropdown
8 //Select2 Dropdown
9 .select2-results{
9 .select2-results{
10 .box-sizing(border-box);
10 .box-sizing(border-box);
11 overflow-y: scroll;
11 overflow-y: scroll;
12 }
12 }
13
13
14 .select2-container{margin: 0; position: relative; display: inline-block; zoom: 1;}
14 .select2-container{margin: 0; position: relative; display: inline-block; zoom: 1;}
15 .select2-container,
15 .select2-container,
16 .select2-drop,
16 .select2-drop,
17 .select2-search,
17 .select2-search,
18 .select2-search input {.box-sizing(border-box);}
18 .select2-search input {.box-sizing(border-box);}
19 .select2-container .select2-choice{display:block; line-height:1em; -webkit-touch-callout:none;-moz-user-select:none;-ms-user-select:none;user-select:none; }
19 .select2-container .select2-choice{display:block; line-height:1em; -webkit-touch-callout:none;-moz-user-select:none;-ms-user-select:none;user-select:none; }
20 .main .select2-container .select2-choice { background-color: white; box-shadow: @button-shadow;}
20 .main .select2-container .select2-choice { background-color: white; box-shadow: @button-shadow;}
21 .select2-container .select2-choice abbr { display: none; width: 12px; height: 12px; position: absolute; right: 24px; top: 8px; font-size: 1px; text-decoration: none; border: 0; background: url('../images/select2.png') right top no-repeat; cursor: pointer; outline: 0; }
21 .select2-container .select2-choice abbr { display: none; width: 12px; height: 12px; position: absolute; right: 24px; top: 8px; font-size: 1px; text-decoration: none; border: 0; background: url('../images/select2.png') right top no-repeat; cursor: pointer; outline: 0; }
22 .select2-container.select2-allowclear .select2-choice abbr {display: inline-block;}
22 .select2-container.select2-allowclear .select2-choice abbr {display: inline-block;}
23 .select2-container .select2-choice abbr:hover { background-position: right -11px; cursor: pointer; }
23 .select2-container .select2-choice abbr:hover { background-position: right -11px; cursor: pointer; }
24 .select2-drop-mask { border: 0; margin: 0; padding: 0; position: fixed; left: 0; top: 0; min-height: 100%; min-width: 100%; height: auto; width: auto; opacity: 0; z-index: 998; background-color: #fff; filter: alpha(opacity=0); }
24 .select2-drop-mask { border: 0; margin: 0; padding: 0; position: fixed; left: 0; top: 0; min-height: 100%; min-width: 100%; height: auto; width: auto; opacity: 0; z-index: 998; background-color: #fff; filter: alpha(opacity=0); }
25 .select2-drop { width: 100%; margin-top: -1px; position: absolute; z-index: 999; top: 100%; background: #fff; color: #000; border: @border-thickness solid @rcblue; border-top: 0; border-radius: 0 0 @border-radius @border-radius; }
25 .select2-drop { width: 100%; margin-top: -1px; position: absolute; z-index: 999; top: 100%; background: #fff; color: #000; border: @border-thickness solid @rcblue; border-top: 0; border-radius: 0 0 @border-radius @border-radius; }
26 .select2-drop.select2-drop-above { margin-top: 1px; border-top: @border-thickness solid @rclightblue; border-bottom: 0; border-radius: @border-radius @border-radius 0 0; }
26 .select2-drop.select2-drop-above { margin-top: 1px; border-top: @border-thickness solid @rclightblue; border-bottom: 0; border-radius: @border-radius @border-radius 0 0; }
27 .select2-drop-active { border: @border-thickness solid #5897fb; border-top: none; }
27 .select2-drop-active { border: @border-thickness solid #5897fb; border-top: none; }
28 .select2-drop.select2-drop-above.select2-drop-active {border-top: @border-thickness solid #5897fb;}
28 .select2-drop.select2-drop-above.select2-drop-active {border-top: @border-thickness solid #5897fb;}
29 .select2-drop-auto-width { border-top: @border-thickness solid #aaa; width: auto; }
29 .select2-drop-auto-width { border-top: @border-thickness solid #aaa; width: auto; }
30 .select2-drop-auto-width .select2-search {padding-top: 4px;}
30 .select2-drop-auto-width .select2-search {padding-top: 4px;}
31 html[dir="rtl"] .select2-container .select2-choice .select2-arrow { left: 0; right: auto; border-left: none; border-right: @border-thickness solid @grey5; border-radius: @border-radius 0 0 @border-radius; }
31 html[dir="rtl"] .select2-container .select2-choice .select2-arrow { left: 0; right: auto; border-left: none; border-right: @border-thickness solid @grey5; border-radius: @border-radius 0 0 @border-radius; }
32 html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {background-position: 2px 1px;}
32 html[dir="rtl"] .select2-container .select2-choice .select2-arrow b {background-position: 2px 1px;}
33 .select2-search { display: inline-block; width: 100%; min-height: 26px; margin: 0; padding-left: 4px; padding-right: 4px; position: relative; z-index: 1000; white-space: nowrap; }
33 .select2-search { display: inline-block; width: 100%; min-height: 26px; margin: 0; padding-left: 4px; padding-right: 4px; position: relative; z-index: 1000; white-space: nowrap; }
34 .select2-search input { width: 100%; height: auto !important; min-height: 26px; padding: 4px 20px 4px 5px; margin: 0; outline: 0; }
34 .select2-search input { width: 100%; height: auto !important; min-height: 26px; padding: 4px 20px 4px 5px; margin: 0; outline: 0; }
35 html[dir="rtl"] .select2-search input { padding: 4px 5px 4px 20px; background: #fff url('../images/select2.png') no-repeat -37px -22px; }
35 html[dir="rtl"] .select2-search input { padding: 4px 5px 4px 20px; background: #fff url('../images/select2.png') no-repeat -37px -22px; }
36 .select2-drop.select2-drop-above .select2-search input {margin-top: 4px;}
36 .select2-drop.select2-drop-above .select2-search input {margin-top: 4px;}
37 .select2-dropdown-open .select2-choice .select2-arrow { background: transparent; border-left: none; filter: none; }
37 .select2-dropdown-open .select2-choice .select2-arrow { background: transparent; border-left: none; filter: none; }
38 html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow {border-right: none;}
38 html[dir="rtl"] .select2-dropdown-open .select2-choice .select2-arrow {border-right: none;}
39 .select2-hidden-accessible { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
39 .select2-hidden-accessible { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
40 /* results */
40 /* results */
41 .select2-results { max-height: 200px; padding: 0 0 0 4px; margin: 4px 4px 4px 0; position: relative; overflow-x: hidden; overflow-y: auto; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
41 .select2-results { max-height: 200px; padding: 0 0 0 4px; margin: 4px 4px 4px 0; position: relative; overflow-x: hidden; overflow-y: auto; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
42 html[dir="rtl"] .select2-results { padding: 0 4px 0 0; margin: 4px 0 4px 4px; }
42 html[dir="rtl"] .select2-results { padding: 0 4px 0 0; margin: 4px 0 4px 4px; }
43 .select2-results .select2-disabled{background:@grey6;display:list-item;cursor:default}
43 .select2-results .select2-disabled{background:@grey6;display:list-item;cursor:default}
44 .select2-results .select2-selected{display:none}
44 .select2-results .select2-selected{display:none}
45 .select2-more-results.select2-active{background:#f4f4f4 url('../images/select2-spinner.gif') no-repeat 100%}
45 .select2-more-results.select2-active{background:#f4f4f4 url('../images/select2-spinner.gif') no-repeat 100%}
46 .select2-container.select2-container-disabled .select2-choice abbr{display:none}
46 .select2-container.select2-container-disabled .select2-choice abbr{display:none}
47 .select2-container.select2-container-disabled {background:@grey6;cursor:default}
47 .select2-container.select2-container-disabled {background:@grey6;cursor:default}
48 .select2-container.select2-container-disabled .select2-choice {background:@grey6;cursor:default}
48 .select2-container.select2-container-disabled .select2-choice {background:@grey6;cursor:default}
49 .select2-container-multi .select2-choices li{float:left;list-style:none}
49 .select2-container-multi .select2-choices li{float:left;list-style:none}
50 .select2-container-multi .select2-choices .select2-search-field{margin:0;padding:0;white-space:nowrap}
50 .select2-container-multi .select2-choices .select2-search-field{margin:0;padding:0;white-space:nowrap}
51 .select2-container-multi .select2-choices .select2-search-choice .select2-chosen{cursor:default}
51 .select2-container-multi .select2-choices .select2-search-choice .select2-chosen{cursor:default}
52 .select2-search-choice-close{display:block;width:12px;height:13px;position:absolute;right:3px;top:4px;font-size:1px;outline:none;background:url('../images/select2.png') right top no-repeat}
52 .select2-search-choice-close{display:block;width:12px;height:13px;position:absolute;right:3px;top:4px;font-size:1px;outline:none;background:url('../images/select2.png') right top no-repeat}
53 .select2-container-multi .select2-search-choice-close{left:3px}
53 .select2-container-multi .select2-search-choice-close{left:3px}
54 .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover{background-position:right -11px}
54 .select2-container-multi .select2-choices .select2-search-choice .select2-search-choice-close:hover{background-position:right -11px}
55 .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close{background-position:right -11px}
55 .select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close{background-position:right -11px}
56 .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close{display:none;background:none}
56 .select2-container-multi.select2-container-disabled .select2-choices .select2-search-choice .select2-search-choice-close{display:none;background:none}
57 .select2-offscreen,.select2-offscreen:focus{clip:rect(0 0 0 0) !important;width:1px !important;height:1px !important;
57 .select2-offscreen,.select2-offscreen:focus{clip:rect(0 0 0 0) !important;width:1px !important;height:1px !important;
58 border:0 !important;margin:0 !important;padding:0 !important;overflow:hidden !important;
58 border:0 !important;margin:0 !important;padding:0 !important;overflow:hidden !important;
59 position: absolute !important;outline:0 !important;left:0 !important;top:0 !important}
59 position: absolute !important;outline:0 !important;left:0 !important;top:0 !important}
60 .select2-display-none,
60 .select2-display-none,
61 .select2-search-hidden {display:none}
61 .select2-search-hidden {display:none}
62 .select2-search input { border-color: @rclightblue; }
62 .select2-search input { border-color: @rclightblue; }
63
63
64 .select2-measure-scrollbar{position:absolute;top:-10000px;left:-10000px;width:100px;height:100px;overflow:scroll}
64 .select2-measure-scrollbar{position:absolute;top:-10000px;left:-10000px;width:100px;height:100px;overflow:scroll}
65 @media only screen and (-webkit-min-device-pixel-ratio:1.5),
65 @media only screen and (-webkit-min-device-pixel-ratio:1.5),
66 only screen and (min-resolution:144dpi){
66 only screen and (min-resolution:144dpi){
67 .select2-search input,
67 .select2-search input,
68 .select2-search-choice-close,
68 .select2-search-choice-close,
69 .select2-container .select2-choice abbr,
69 .select2-container .select2-choice abbr,
70 .select2-container .select2-choice .select2-arrow b{background-image:url('../images/select2x2.png');background-repeat:no-repeat;background-size:60px 40px;}
70 .select2-container .select2-choice .select2-arrow b{background-image:url('../images/select2x2.png');background-repeat:no-repeat;background-size:60px 40px;}
71 .select2-search input{background-position:100% -21px}
71 .select2-search input{background-position:100% -21px}
72 }
72 }
73 [class^="input-"] [class^="select2-choice"]>div{display:none}
73 [class^="input-"] [class^="select2-choice"]>div{display:none}
74 [class^="input-"] .select2-offscreen{position:absolute}
74 [class^="input-"] .select2-offscreen{position:absolute}
75 select.select2{height:28px;visibility:hidden}
75 select.select2{height:28px;visibility:hidden}
76 .autocomplete-suggestions{overflow:auto}
76 .autocomplete-suggestions{overflow:auto}
77 .autocomplete-suggestion{white-space:nowrap;overflow:hidden}
77 .autocomplete-suggestion{white-space:nowrap;overflow:hidden}
78
78
79 /* Retina-ize icons */
79 /* Retina-ize icons */
80 @media only screen and (-webkit-min-device-pixel-ratio:1.5),
80 @media only screen and (-webkit-min-device-pixel-ratio:1.5),
81 only screen and (min-resolution:144dpi){
81 only screen and (min-resolution:144dpi){
82 .select2-search input,
82 .select2-search input,
83 .select2-search-choice-close,
83 .select2-search-choice-close,
84 .select2-container .select2-choice abbr,
84 .select2-container .select2-choice abbr,
85 .select2-container .select2-choice .select2-arrow b{background-image:url('../images/select2x2.png');background-repeat:no-repeat;background-size:60px 40px;}
85 .select2-container .select2-choice .select2-arrow b{background-image:url('../images/select2x2.png');background-repeat:no-repeat;background-size:60px 40px;}
86 .select2-search input{background-position:100% -21px}
86 .select2-search input{background-position:100% -21px}
87 }
87 }
88
88
89 //Internal Select2 Dropdown Menus
89 //Internal Select2 Dropdown Menus
90
90
91 .drop-menu-core {
91 .drop-menu-core {
92 min-width: 160px;
92 min-width: 160px;
93 margin: 0 @padding 0 0;
93 margin: 0 @padding 0 0;
94 padding: 0;
94 padding: 0;
95 border: @border-thickness solid @grey5;
95 border: @border-thickness solid @grey5;
96 border-radius: @border-radius;
96 border-radius: @border-radius;
97 color: @grey2;
97 color: @grey2;
98 background-color: white;
98 background-color: white;
99
99
100 a {
100 a {
101 color: @grey2;
101 color: @grey2;
102
102
103 &:hover {
103 &:hover {
104 color: @rcdarkblue;
104 color: @rcdarkblue;
105 }
105 }
106 }
106 }
107
108 &:hover {
109 border-color: @grey4;
110 }
111 }
107 }
112
108
113 .drop-menu-dropdown {
109 .drop-menu-dropdown {
114 .drop-menu-core;
110 .drop-menu-core;
115
111
116 .flag_status {
112 .flag_status {
117 margin-top: 0;
113 margin-top: 0;
118 }
114 }
119 }
115 }
120
116
121 .drop-menu-base {
117 .drop-menu-base {
122 .drop-menu-core;
118 .drop-menu-core;
123 position: relative;
119 position: relative;
124 display: inline-block;
120 display: inline-block;
125 line-height: 1em;
121 line-height: 1em;
126 z-index: 2;
122 z-index: 2;
127 cursor: pointer;
123 cursor: pointer;
128
124
129 .flag_status {
125 .flag_status {
130 margin-top: 0;
126 margin-top: 0;
131 }
127 }
132
128
133 a {
129 a {
134 display:block;
130 display:block;
135 padding: .7em;
131 padding: .7em;
136 padding-right: 2em;
132 padding-right: 2em;
137 position: relative;
133 position: relative;
138
134
139 &:after {
135 &:after {
140 position: absolute;
136 position: absolute;
141 content: "\00A0\25BE";
137 content: "\00A0\25BE";
142 right: .1em;
138 right: .1em;
143 line-height: 1em;
139 line-height: 1em;
144 top: 0.2em;
140 top: 0.2em;
145 width: 1em;
141 width: 1em;
146 font-size: 20px;
142 font-size: 20px;
147 }
143 }
148 }
144 }
149 }
145 }
150
146
151 .drop-menu {
147 .drop-menu {
152 .drop-menu-base;
148 .drop-menu-base;
153 width: auto !important;
149 width: auto !important;
154 }
150 }
155
151
156 .drop-menu-no-width {
152 .drop-menu-no-width {
157 .drop-menu-base;
153 .drop-menu-base;
158 width: auto;
154 width: auto;
159 }
155 }
160
156
161 .field-sm .drop-menu {
157 .field-sm .drop-menu {
162 padding: 1px 0 0 0;
158 padding: 1px 0 0 0;
163 a {
159 a {
164 padding: 6px;
160 padding: 6px;
165 };
161 };
166 }
162 }
167
163
168 .select2-search input {
164 .select2-search input {
169 width: 100%;
165 width: 100%;
170 margin: .5em 0;
166 margin: .5em 0;
171 padding: .5em;
167 padding: .5em;
172 border-color: @grey4;
168 border-color: @grey4;
173
169
174 &:focus, &:hover {
170 &:focus, &:hover {
175 border-color: @rcblue;
171 border-color: @rcblue;
176 box-shadow: @button-shadow;
172 box-shadow: @button-shadow;
177 }
173 }
178 }
174 }
179
175
180 .select2-no-results {
176 .select2-no-results {
181 padding: .5em;
177 padding: .5em;
182 }
178 }
183
179
184 .drop-menu-dropdown ul {
180 .drop-menu-dropdown ul {
185 width: auto;
181 width: auto;
186 margin: 0;
182 margin: 0;
187 padding: 0;
183 padding: 0;
188 z-index: 50;
184 z-index: 50;
189
185
190 li {
186 li {
191 margin: 0;
187 margin: 0;
192 line-height: 1em;
188 line-height: 1em;
193 list-style-type: none;
189 list-style-type: none;
194
190
195 &:hover,
191 &:hover,
196 &.select2-highlighted {
192 &.select2-highlighted {
197 background-color: @grey7;
193 background-color: @grey7;
198
194
199 .select2-result-label {
195 .select2-result-label {
200 &:hover {
196 &:hover {
201 color: @grey1!important;
197 color: @grey1!important;
202 }
198 }
203 }
199 }
204 }
200 }
205
201
206 &.select2-result-with-children {
202 &.select2-result-with-children {
207 &:hover {
203 &:hover {
208 background-color: white;
204 background-color: white;
209 }
205 }
210 }
206 }
211
207
212 .select2-result-label {
208 .select2-result-label {
213 display:block;
209 display:block;
214 padding: 8px;
210 padding: 8px;
215 font-family: @text-regular;
211 font-family: @text-regular;
216 color: @grey2;
212 color: @grey2;
217 cursor: pointer;
213 cursor: pointer;
218 }
214 }
219 &.select2-result-with-children {
215 &.select2-result-with-children {
220
216
221 .select2-result-label {
217 .select2-result-label {
222 color: @rcdarkblue;
218 color: @rcdarkblue;
223 cursor: default;
219 cursor: default;
224 font-weight: @text-semibold-weight;
220 font-weight: @text-semibold-weight;
225 font-family: @text-semibold;
221 font-family: @text-semibold;
226 }
222 }
227
223
228 ul.select2-result-sub li .select2-result-label {
224 ul.select2-result-sub li .select2-result-label {
229 padding-left: 16px;
225 padding-left: 16px;
230 font-family: @text-regular;
226 font-family: @text-regular;
231 color: @grey2;
227 color: @grey2;
232 cursor: pointer;
228 cursor: pointer;
233 }
229 }
234 }
230 }
235 }
231 }
236 }
232 }
237
233
238 .side-by-side-selector {
234 .side-by-side-selector {
239 .left-group,
235 .left-group,
240 .middle-group,
236 .middle-group,
241 .right-group {
237 .right-group {
242 margin-bottom: @padding;
238 margin-bottom: @padding;
243 }
239 }
244 }
240 }
@@ -1,152 +1,154 b''
1 // variables for use in all RhodeCode products
1 // variables for use in all RhodeCode products
2
2
3 // FONTS
3 // FONTS
4 //Primary Colors (brand)
4 //Primary Colors (brand)
5 @rcblue: #427cc9; //RhodeCode blue
5 @rcblue: #427cc9; //RhodeCode blue
6 @rcdarkblue: #305b91; //RhodeCode dark blue
6 @rcdarkblue: #305b91; //RhodeCode dark blue
7 @rclightblue: lighten(@rcblue, 30%);
7 @rclightblue: lighten(@rcblue, 30%);
8 @rchighlightblue: lighten(@rcblue, 35%);
8 @rchighlightblue: lighten(@rcblue, 35%);
9
9
10 // Secondary Colors (greyscale)
10 // Secondary Colors (greyscale)
11 @black: #000;
11 @black: #000;
12 @white: #fff;
12 @white: #fff;
13 @grey1: #2B2B2D; //midnight
13 @grey1: #2B2B2D; //midnight
14 @grey2: #5C5C5C; //charcoal
14 @grey2: #5C5C5C; //charcoal
15 @grey3: #7E7F7F; //tungsten
15 @grey3: #7E7F7F; //tungsten
16 @grey4: #949494; //light grey
16 @grey4: #949494; //light grey
17 @grey5: #dbd9da; //greyish
17 @grey5: #dbd9da; //greyish
18 @grey6: #eeeeee; //silver
18 @grey6: #eeeeee; //silver
19 @grey7: #F5F5F5; //light silver
19 @grey7: #F5F5F5; //light silver
20
20
21 // special for navigation
21 // special for navigation
22 @nav-grey: #CDCCCD;
22 @nav-grey: #CDCCCD;
23
23
24 @grey5-alpha: rgba(219, 217, 218, 0.3);
24 @grey5-alpha: rgba(219, 217, 218, 0.3);
25
25
26 // Tertiary Colors
26 // Tertiary Colors
27 @color1: #879938; //olive green
27 @color1: #879938; //olive green
28 @color2: #fcc93a; //bright yellow
28 @color2: #fcc93a; //bright yellow
29 @color3: #ff9e07; //orange-yellow
29 @color3: #ff9e07; //orange-yellow
30 @color4: #fc663a; //bright orange
30 @color4: #fc663a; //bright orange
31 @color5: #d63d44; //signal red
31 @color5: #d63d44; //signal red
32 @color6: #99287c; //violet
32 @color6: #99287c; //violet
33 @color7: #682668; //dark purple
33 @color7: #682668; //dark purple
34 @color8: #194f8e; //dark blue
34 @color8: #194f8e; //dark blue
35
35
36 // Alert Colors (bright)
36 // Alert Colors (bright)
37 @alert1: #0ac878; //bright green
37 @alert1: #0ac878; //bright green
38 @alert2: #e85e4d; //soft red
38 @alert2: #e85e4d; //soft red
39 @alert3: #ffc854; //corn yellow
39 @alert3: #ffc854; //corn yellow
40 @alert4: #84a5d2; //light blue
40 @alert4: #84a5d2; //light blue
41
41
42 // Alert Inner Colors
42 // Alert Inner Colors
43 @alert1-inner: #daf7eb; //bright green
43 @alert1-inner: #daf7eb; //bright green
44 @alert2-inner: #fbdfdb; //soft red
44 @alert2-inner: #fbdfdb; //soft red
45 @alert3-inner: #fff4dd; //corn yellow
45 @alert3-inner: #fff4dd; //corn yellow
46 @alert4-inner: #e6edf6; //light blue
46 @alert4-inner: #e6edf6; //light blue
47
47
48 // Highlight color for lines and colors
48 // Highlight color for lines and colors
49 @comment-highlight-color: #ffd887;
49 @comment-highlight-color: #ffd887;
50
50
51 // FONTS
51 // FONTS
52 @basefontsize: 13px;
52 @basefontsize: 13px;
53 @navigation-fontsize: 14px;
53 @navigation-fontsize: 14px;
54 @journal-fontsize: @basefontsize+7px;
54 @journal-fontsize: @basefontsize+7px;
55 @text-color: @grey2;
55 @text-color: @grey2;
56 @repo-title-fontsize: 18px;
56 @repo-title-fontsize: 18px;
57
57
58 @text-regular: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
58 @text-regular: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
59 @text-monospace: 'Menlo', 'Liberation Mono', 'Consolas', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace;
59 @text-monospace: 'Menlo', 'Liberation Mono', 'Consolas', 'DejaVu Sans Mono', 'Ubuntu Mono', 'Courier New', 'andale mono', 'lucida console', monospace;
60
60
61 @text-italic: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
61 @text-italic: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
62
62
63 @text-bold: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
63 @text-bold: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
64 @text-bold-weight: 600;
64 @text-bold-weight: 600;
65
65
66 @text-semibold: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
66 @text-semibold: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
67 @text-semibold-weight: 500;
67 @text-semibold-weight: 500;
68
68
69 @text-bold-italic: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
69 @text-bold-italic: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
70 @text-bold-italic-weight: 600;
70 @text-bold-italic-weight: 600;
71
71
72 @text-code: @text-monospace;
72 @text-code: @text-monospace;
73 @text-light: @text-regular;
73 @text-light: @text-regular;
74
74
75
75
76 // Used for .close buttons
76 // Used for .close buttons
77 @text-bootstrap: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
77 @text-bootstrap: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
78
78
79 @panel-title: @basefontsize;
79 @panel-title: @basefontsize;
80 @panel-footer: @basefontsize;
80 @panel-footer: @basefontsize;
81
81
82 // BORDERS
82 // BORDERS
83 @border-thickness: 1px;
83 @border-thickness: 1px;
84 @border-thickness-buttons: 1px;
84 @border-thickness-buttons: 1px;
85 @border-thickness-tags: 1px;
85 @border-thickness-tags: 1px;
86 @border-radius: 2px;
86 @border-radius: 2px;
87 @border-default-color: @grey5;
87 @border-default-color: @grey5;
88 @border-highlight-color: @grey4;
88 @border-highlight-color: @grey4;
89
89
90 // SPACING
90 // SPACING
91 @contentpadding: 15px; //padding on left and right of pages
91 @contentpadding: 15px; //padding on left and right of pages
92 @pagepadding: 40px; //padding on top and bottom of pages
92 @pagepadding: 40px; //padding on top and bottom of pages
93 @menupadding: 12px; //padding for sidebar and content
93 @menupadding: 12px; //padding for sidebar and content
94 @sidebarpadding: 15px; //spacing between sections
94 @sidebarpadding: 15px; //spacing between sections
95 @space: 40px; //spacing between sections
95 @space: 40px; //spacing between sections
96 @padding: 15px; //padding inside modules
96 @padding: 15px; //padding inside modules
97 @textmargin: 20px; //spacing below headers
97 @textmargin: 20px; //spacing below headers
98 @header-padding: 20px;
98 @header-padding: 20px;
99 @panel-padding: @padding;
99 @panel-padding: @padding;
100 @gravatar-size: 16px; // height/width of gravatar w/o border
100 @gravatar-size: 16px; // height/width of gravatar w/o border
101
101
102 // ADMIN
102 // ADMIN
103 @form-max-width: 750px;
103 @form-max-width: 750px;
104
104
105 // FORMS (new)
105 // FORMS (new)
106 @border-thickness-inputs: 1px;
106 @border-thickness-inputs: 1px;
107 @input-padding: .6em; //needs to match button padding
107 @input-padding: .6em; //needs to match button padding
108 // TODO: johbo: Needed for working computation of paddings around labels etc.
108 // TODO: johbo: Needed for working computation of paddings around labels etc.
109 // Expected to be replaced once we are done with the form refactoring.
109 // Expected to be replaced once we are done with the form refactoring.
110 @input-padding-px: 12px;
110 @input-padding-px: 12px;
111 @legend-width: 220px;
111 @legend-width: 220px;
112 @form-vertical-margin: 20px;
112 @form-vertical-margin: 20px;
113 @form-check-width: 20px;
113 @form-check-width: 20px;
114 @form-radio-width: 10px;
114 @form-radio-width: 10px;
115 @form-textcolor: @grey3;
115 @form-textcolor: @grey3;
116
116
117 // FORMS
117 // FORMS
118 @label-width: 220px;
118 @label-width: 220px;
119 //TODO: lisa: Eventually we don't need both of these; remove
119 //TODO: lisa: Eventually we don't need both of these; remove
120 // label-width when legend-width is no longer used
120 // label-width when legend-width is no longer used
121
121
122 @input-border-thickness: @border-thickness;
122 @input-border-thickness: @border-thickness;
123 @medium-inline-input-width: 115px;
123 @medium-inline-input-width: 115px;
124 @input-description-minwidth: 300px;
124 @input-description-minwidth: 300px;
125 @label2-width: 200px;
125 @label2-width: 200px;
126 @checkboxes-width: 420px;
126 @checkboxes-width: 420px;
127 @label-summary-minwidth: 80px;
127 @label-summary-minwidth: 80px;
128 @search-form-width: 400px;
128 @search-form-width: 400px;
129 @fields-input-m: 400px;
129 @fields-input-m: 400px;
130 @fields-input-l: 720px;
130 @fields-input-l: 720px;
131
131
132 // BUTTONS
132 // BUTTONS
133 @button-padding: .7em;
133 @button-padding: .7em;
134 @button-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.07);
134 @button-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.07);
135
135
136 // DROPDOWNS
137 @dropdown-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.07);
136
138
137 // DEFAULT WIDTHS
139 // DEFAULT WIDTHS
138 @wrapper-maxwidth: 1600px;
140 @wrapper-maxwidth: 1600px;
139 @sidebar-width: 145px;
141 @sidebar-width: 145px;
140 @sidebar-all-width: @sidebar-width + 2 * @sidebarpadding;
142 @sidebar-all-width: @sidebar-width + 2 * @sidebarpadding;
141 @sidebar-small-width: 100px;
143 @sidebar-small-width: 100px;
142 @sidebar-small-all-width: @sidebar-small-width + 2 * @sidebarpadding;
144 @sidebar-small-all-width: @sidebar-small-width + 2 * @sidebarpadding;
143 @texteditor-width: 660px;
145 @texteditor-width: 660px;
144 @maincontent-maxwidth: 940px;
146 @maincontent-maxwidth: 940px;
145 @pullrequest-width: 1025px;
147 @pullrequest-width: 1025px;
146 @summary-menu-stats-width: 200px;
148 @summary-menu-stats-width: 200px;
147
149
148 // SCREEN WIDTHS
150 // SCREEN WIDTHS
149 @screen-sm-min: 320px;
151 @screen-sm-min: 320px;
150
152
151 // For Bootstrap
153 // For Bootstrap
152 @panel-border-radius: @border-radius;
154 @panel-border-radius: @border-radius;
General Comments 0
You need to be logged in to leave comments. Login now