This repository has been archived by the owner on Jun 5, 2019. It is now read-only.
/
_toolbar.sass
319 lines (268 loc) · 6.66 KB
/
_toolbar.sass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
//-- copyright
// OpenProject is a project management system.
// Copyright (C) 2012-2017 the OpenProject Foundation (OPF)
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License version 3.
//
// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
// Copyright (C) 2006-2017 Jean-Philippe Lang
// Copyright (C) 2010-2013 the ChiliProject Team
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
// See doc/COPYRIGHT.rdoc for more details.
//++
@mixin query-select-dropdown-filter-select($color)
text-decoration: underline
color: $color
@mixin query-selection-link($color)
a
color: $color
font-weight: normal
text-decoration: none
@mixin toolbar-element-sizing
margin: 0.625rem 0 0
@extend %input--sizing
.toolbar-container
padding: 0
margin-bottom: 12px
min-height: 50px
> .subtitle
font-size: rem-calc(14px)
font-style: italic
margin-top: rem-calc(5px)
margin-bottom: 10px
&.-with-dropdown .toolbar-item.drop-down
position: relative
.toolbar
ul
margin: 0
padding: 0
float: right
li
list-style-type: none
// automatically clear the toolbar
.toolbar:after
clear: both
content: ""
display: table
.toolbar-items
.toolbar-item,
.toolbar-button-group > li
float: left
&.toolbar-item
margin: 0 5px //$drop-nav-spacing // spacing between nav items
&:last-child
margin-right: 0
// hack around the old watchers_link implementation
// remove once all watcher_links in plugins have no button wrappers anymore
.button .button
background: transparent
border: none
margin: 0
padding: 0
// The following two button rules take care of the icon alignment.
// It is a bit hacky but for now the only solution that works across browsers and OS.
.toolbar-item .button:not(button)
line-height: 38px
.button--text
vertical-align: 2px
button,
.button
padding-top: 0
padding-bottom: 0
.op-icon--wrapper
vertical-align: middle
line-height: 42px
.button--icon
font-size: 14px
.button--text,
.badge
font-size: 14px
vertical-align: 1px
.toolbar-icon
width: 40px
button,
.button,
input[type=text],
input[type=number],
select
@include toolbar-element-sizing
border: 1px solid $toolbar-item--border-color
button,
.button,
.toolbar-input--affix
background: $toolbar-item--bg-color
&.-pressed,
&:active
background: $toolbar-item--bg-color-pressed
box-shadow: inset 0 2px 3px rgba(0,0,0,.125)
select
//extend forms select
@extend .form--select
//hack vertical text alignment for select (for all browsers)
padding-top: 5px
padding-bottom: 11px
//firefox hack, outline fix for select, remove to see why
&:-moz-focusring
color: transparent
text-shadow: 0 0 0 #000
a.last,
.last
margin-right: 0
#repository-checkout-url
min-width: 350px
.toolbar-item
&.-icon-only
.button
text-align: center
.button--icon
font-size: 1.1rem
position: relative
left: 0
right: 1px
vertical-align: text-top
.title-container
@include clearfix
float: left
height: auto
padding: 0
h2
border: 0
padding: 12px 0
color: $toolbar-title-color
@include breakpoint(medium down)
font-size: $h2-font-size
span
@include varprop(color, content-link-color)
&:hover
text-decoration: underline
ul
margin: 0
padding: 0
float: left
li
float: none
span.filter-selection
@include query-select-dropdown-filter-select($primary-color)
.dropdown-scrollable
overflow-y: auto
max-height: 500px
/** Allow select2 to display correctly in the toolbar */
.toolbar .select2-container
padding: 0
.select2-choice
min-width: 150px
.select2-arrow
border-color: $toolbar-item--border-color
.toolbar-input-group
display: flex
input,
.select2-container
flex: 1
flex-basis: 150px
> div
@include toolbar-element-sizing
display: flex
align-items: center
padding: 0 5px
label
margin: 0
font-size: 1.05rem
flex-grow: 1
.toolbar-input-group--affix
background: $toolbar-item--bg-color
border: 1px solid $toolbar-item--border-color
color: $inlinelabel-color
border-radius: 2px
&.-prepend
border-right: none !important
&.-append
border-left: none !important
#querySelectDropdown
min-width: 250px
border: 1px solid #dddddd
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.15)
background: #ffffff
padding: 3px 0
.query-menu-container
float: left
clear: both
width: 100%
display: block
.search-query-wrapper
padding: 15px
overflow: hidden
.query-select-dropdown--no-results
padding: 15px 15px 0
.ui-menu-item
cursor: pointer
input
box-sizing: border-box
margin: 0 auto
width: 100%
min-width: 250px
height: 30px
line-height: 30px
background: #ffffff
border: 1px solid #cacaca
color: #222222
border-radius: 2px
.title-group-header
padding: 0 15px 0 15px
font-weight: bold
text-transform: uppercase
#magnifier
position: absolute
top: 24px
right: 22px
color: #999999
.ui-widget-content.-inplace
max-height: 55vh
overflow-x: auto
input[type="search"]::-webkit-search-cancel-button
display: none
.text
cursor: pointer
i
float: right
color: #333333
padding-left: 5px
&:hover
text-decoration: none
.toolbar
*
outline: none
@include breakpoint(680px down)
.toolbar-container .toolbar-items
background: #fff
display: flex
margin-bottom: 20px
width: calc(100% + 5px)
> li
-webkit-flex: 1 0 0
flex: 1 0 0
&:first-child
-webkit-flex: 3 0 0
flex: 3 0 0
.button
width: 100%
white-space: nowrap
.button,
input,
label,
div
margin-top: 0