]>
Commit | Line | Data |
---|---|---|
2f4c784a C |
1 | $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; |
2 | @import '_bootstrap'; | |
3 | ||
4 | @import '_variables'; | |
5 | @import '_mixins'; | |
6 | ||
7 | // Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d | |
8 | .glyphicon-refresh-animate { | |
9 | animation: spin .7s infinite linear; | |
10 | } | |
11 | ||
f409f0c3 RK |
12 | .flex-auto { |
13 | flex: auto; | |
14 | } | |
15 | ||
d3217560 RK |
16 | .c-hand { |
17 | cursor: pointer; | |
18 | } | |
19 | ||
2f4c784a | 20 | @keyframes spin { |
a3705089 C |
21 | from { |
22 | transform: scale(1) rotate(0deg); | |
23 | } | |
24 | to { | |
25 | transform: scale(1) rotate(360deg); | |
26 | } | |
2f4c784a C |
27 | } |
28 | ||
757ffdfe | 29 | /* rules for dropdowns excepts when in button group, to avoid impacting the dropdown-toggle */ |
25a42e29 | 30 | .dropdown:not(.btn-group):not(.dropdown-root):not(.action-dropdown):not(.input-group-prepend) { |
f8cce49c | 31 | z-index: z(dropdown) !important; |
26ede95e | 32 | |
f8cce49c | 33 | &.list-overflow-menu, |
26ede95e | 34 | &.parent-entry { |
f8cce49c | 35 | z-index: z(header) - 1 !important; |
26ede95e | 36 | } |
eb7c7a51 RK |
37 | } |
38 | ||
2f4c784a | 39 | .dropdown-menu { |
e0433a5f C |
40 | z-index: z(dropdown) + 1 !important; |
41 | ||
2f4c784a | 42 | border-radius: 3px; |
6f6e89db | 43 | box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); |
2f4c784a C |
44 | font-size: 15px; |
45 | ||
0d3a2982 RK |
46 | .dropdown-header { |
47 | padding-left: 1rem; | |
48 | } | |
49 | ||
2f4c784a C |
50 | .dropdown-item { |
51 | padding: 3px 15px; | |
52 | ||
24e7916c | 53 | &.active { |
e66883b3 RK |
54 | color: pvar(--mainBackgroundColor) !important; |
55 | background-color: pvar(--mainHoverColor); | |
24e7916c | 56 | opacity: .9; |
2f4c784a | 57 | } |
45c6bcf3 | 58 | |
d3217560 RK |
59 | &::after { |
60 | display: none; | |
61 | } | |
2f4c784a C |
62 | } |
63 | ||
64 | button { | |
65 | @include disable-default-a-behaviour; | |
66 | } | |
67 | ||
68 | a { | |
69 | @include disable-default-a-behaviour; | |
70 | color: #000 !important; | |
71 | } | |
72 | } | |
73 | ||
3921166d | 74 | |
165ee292 | 75 | @media screen and (min-width: #{breakpoint(md)}) { |
3921166d | 76 | .modal:before { |
3921166d RK |
77 | vertical-align: middle; |
78 | content: " "; | |
79 | height: 100%; | |
80 | } | |
81 | ||
82 | .modal-dialog { | |
3921166d | 83 | text-align: left; |
2bc9bd08 RK |
84 | |
85 | &:not(.modal-lg):not(.modal-xl) { | |
86 | min-width: 500px; | |
87 | width: 40vw; | |
88 | max-width: 900px; | |
89 | } | |
3921166d RK |
90 | } |
91 | } | |
92 | ||
2f4c784a | 93 | .modal { |
3921166d RK |
94 | text-align: center; |
95 | ||
2f4c784a | 96 | .modal-content { |
e66883b3 | 97 | background-color: pvar(--mainBackgroundColor); |
2f4c784a C |
98 | } |
99 | ||
100 | .modal-header { | |
101 | border-bottom: none; | |
102 | margin-bottom: 5px; | |
103 | ||
104 | .modal-title { | |
105 | font-size: 20px; | |
106 | font-weight: $font-semibold; | |
107 | } | |
108 | ||
109 | my-global-icon { | |
54e78847 | 110 | @include icon(22px); |
2f4c784a C |
111 | |
112 | position: relative; | |
54e78847 | 113 | top: 5px; |
2f4c784a C |
114 | float: right; |
115 | ||
116 | margin: 0; | |
117 | padding: 0; | |
54e78847 | 118 | opacity: .5; |
8319d6ae RK |
119 | |
120 | &[iconName="cross"] { | |
121 | @include icon(16px); | |
122 | top: -3px; | |
123 | } | |
2f4c784a C |
124 | } |
125 | } | |
126 | ||
127 | .inputs { | |
128 | margin-bottom: 0; | |
129 | text-align: right; | |
130 | ||
131 | .action-button-cancel { | |
132 | @include peertube-button; | |
54e78847 | 133 | @include tertiary-button; |
2f4c784a C |
134 | |
135 | display: inline-block; | |
136 | margin-right: 10px; | |
137 | } | |
138 | ||
139 | .action-button-submit { | |
140 | @include peertube-button; | |
141 | @include orange-button; | |
142 | } | |
143 | } | |
144 | } | |
145 | ||
8110705d | 146 | |
147 | // On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close | |
148 | .modal-open { | |
149 | overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect | |
150 | position: fixed; // Fix the body position to disable any scroll content | |
151 | width: 100vw; // Make sure the content fits all the available width when position: fixed | |
152 | } | |
153 | ||
2f4c784a C |
154 | // Nav customizations |
155 | .nav .nav-link { | |
156 | display: flex !important; | |
157 | align-items: center; | |
158 | height: 30px !important; | |
159 | padding: 10px 15px !important; | |
160 | } | |
161 | ||
162 | .nav.nav-pills { | |
163 | font-size: 16px !important; | |
164 | ||
165 | .nav-link.active { | |
166 | font-weight: $font-semibold !important; | |
167 | } | |
168 | ||
169 | a { | |
170 | @include disable-default-a-behaviour; | |
171 | ||
e66883b3 | 172 | color: pvar(--mainForegroundColor); |
2f4c784a C |
173 | } |
174 | } | |
175 | ||
45c6bcf3 | 176 | .nav-tabs { |
2f4c784a C |
177 | |
178 | .nav-link { | |
45c6bcf3 | 179 | @include disable-default-a-behaviour; |
2f4c784a | 180 | |
e66883b3 | 181 | color: pvar(--mainForegroundColor) !important; |
2f4c784a C |
182 | } |
183 | } | |
184 | ||
758f0d19 RK |
185 | .nav-tabs .nav-link { |
186 | &:not(.active) { | |
758f0d19 RK |
187 | border-bottom: 3px solid transparent; |
188 | } | |
189 | &.active { | |
482fa503 | 190 | font-weight: $font-semibold; |
e66883b3 | 191 | background-color: pvar(--mainBackgroundColor) !important; |
758f0d19 | 192 | border: none; |
e66883b3 | 193 | border-bottom: 2px solid pvar(--mainColor); |
758f0d19 RK |
194 | } |
195 | &:hover { | |
196 | border-top-color: transparent; | |
197 | border-left-color: transparent; | |
198 | border-right-color: transparent; | |
199 | } | |
2f4c784a C |
200 | } |
201 | ||
a4610bc6 | 202 | .card { |
e66883b3 | 203 | background-color: pvar(--mainBackgroundColor); |
a4610bc6 JM |
204 | border-color: #dee2e6; |
205 | } | |
206 | ||
2f4c784a C |
207 | .collapse-transition { |
208 | // Animation when we show/hide the filters | |
209 | transition: max-height 0.3s; | |
210 | display: block !important; | |
211 | overflow: hidden !important; | |
212 | max-height: 0; | |
213 | ||
214 | &.show { | |
215 | max-height: 1500px; | |
216 | } | |
217 | } | |
bc584963 RK |
218 | |
219 | .dropdown-divider { | |
220 | margin: 0.3rem 0; | |
000eb0e4 RK |
221 | } |
222 | ||
223 | ngb-modal-backdrop { | |
36f2981f RK |
224 | z-index: z(modal) - 1 !important; |
225 | } | |
226 | ||
227 | ngb-modal-window { | |
228 | z-index: z(modal) !important; | |
000eb0e4 | 229 | } |
aa0f1963 | 230 | |
757ffdfe RK |
231 | ngb-popover-window { |
232 | z-index: z(popover) !important; | |
233 | } | |
234 | ||
235 | ngb-tooltip-window { | |
236 | z-index: z(tooltip) !important; | |
237 | } | |
238 | ||
947d0102 RK |
239 | .btn-outline-secondary { |
240 | border-color: $input-border-color; | |
241 | ||
242 | &:focus-within, | |
243 | &:focus, | |
244 | &:hover { | |
245 | color: #fff; | |
246 | background-color: #6c757d; | |
247 | } | |
248 | } | |
249 | ||
aa0f1963 | 250 | .btn-outline-tertiary { |
e66883b3 RK |
251 | color: pvar(--secondaryColor); |
252 | border-color: pvar(--secondaryColor); | |
a3705089 | 253 | |
947d0102 RK |
254 | &:focus-within, |
255 | &:focus, | |
aa0f1963 | 256 | &:hover { |
e66883b3 RK |
257 | color: pvar(--mainBackgroundColor); |
258 | background-color: pvar(--secondaryColor); | |
aa0f1963 RK |
259 | } |
260 | } | |
a6d5ff76 RK |
261 | |
262 | // input box-shadow on focus | |
263 | .form-control { | |
264 | font-size: 15px; | |
e66883b3 RK |
265 | color: pvar(--mainForegroundColor); |
266 | background-color: pvar(--inputBackgroundColor); | |
a6d5ff76 RK |
267 | outline: none; |
268 | ||
269 | &:focus-within, | |
270 | &:focus { | |
e66883b3 | 271 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
a6d5ff76 RK |
272 | |
273 | &.input-error { | |
6a4c30de | 274 | box-shadow: #{$focus-box-shadow-form} #{scale-color($red, $alpha: -75%)}; |
a6d5ff76 RK |
275 | } |
276 | } | |
277 | } | |
947d0102 | 278 | |
0d3a2982 RK |
279 | .input-group { |
280 | & > .form-control { | |
281 | flex: initial; | |
282 | } | |
25a42e29 RK |
283 | input.form-control { |
284 | width: unset !important; | |
285 | flex-grow: 1; | |
0d3a2982 RK |
286 | } |
287 | ||
288 | .input-group-prepend + input { | |
289 | border-top-left-radius: 0 !important; | |
290 | border-bottom-left-radius: 0 !important; | |
291 | } | |
947d0102 | 292 | } |
25a42e29 RK |
293 | |
294 | .has-feedback.has-clear { | |
295 | position: relative; | |
296 | ||
297 | input { | |
298 | padding-right: 1.5rem !important; | |
299 | } | |
300 | ||
301 | .form-control-clear { | |
302 | color: rgba(0, 0, 0, 0.4); | |
303 | /* | |
304 | * Enable pointer events as they have been disabled since Bootstrap 3.3 | |
305 | * See https://github.com/twbs/bootstrap/pull/14104 | |
306 | */ | |
307 | pointer-events: all; | |
308 | display: flex; | |
309 | justify-content: center; | |
310 | align-items: center; | |
311 | position: absolute; | |
312 | right: .5rem; | |
313 | height: 95%; | |
314 | ||
315 | &:hover { | |
316 | color: rgba(0, 0, 0, 0.7); | |
317 | cursor: pointer; | |
318 | } | |
319 | } | |
320 | ||
321 | input:placeholder-shown + .form-control-clear { | |
322 | display: none; | |
323 | } | |
324 | } |