]>
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 RK |
29 | /* rules for dropdowns excepts when in button group, to avoid impacting the dropdown-toggle */ |
30 | .dropdown:not(.btn-group) { | |
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 { |
757ffdfe | 40 | z-index: z(dropdown) !important; |
2f4c784a | 41 | border-radius: 3px; |
6f6e89db | 42 | 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 |
43 | font-size: 15px; |
44 | ||
45 | .dropdown-item { | |
46 | padding: 3px 15px; | |
47 | ||
24e7916c RK |
48 | &.active { |
49 | color: var(--mainBackgroundColor) !important; | |
50 | background-color: var(--mainHoverColor); | |
51 | opacity: .9; | |
2f4c784a | 52 | } |
45c6bcf3 | 53 | |
d3217560 RK |
54 | &::after { |
55 | display: none; | |
56 | } | |
2f4c784a C |
57 | } |
58 | ||
59 | button { | |
60 | @include disable-default-a-behaviour; | |
61 | } | |
62 | ||
63 | a { | |
64 | @include disable-default-a-behaviour; | |
65 | color: #000 !important; | |
66 | } | |
67 | } | |
68 | ||
3921166d | 69 | |
9b8a7aa8 | 70 | @media screen and (min-width: #{map-get($grid-breakpoints, md)}) { |
3921166d | 71 | .modal:before { |
3921166d RK |
72 | vertical-align: middle; |
73 | content: " "; | |
74 | height: 100%; | |
75 | } | |
76 | ||
77 | .modal-dialog { | |
3921166d RK |
78 | text-align: left; |
79 | vertical-align: middle; | |
80 | min-width: 500px; | |
81 | width: 40vw; | |
82 | max-width: 900px; | |
83 | } | |
84 | } | |
85 | ||
2f4c784a | 86 | .modal { |
3921166d RK |
87 | text-align: center; |
88 | ||
2f4c784a C |
89 | .modal-content { |
90 | background-color: var(--mainBackgroundColor); | |
91 | } | |
92 | ||
93 | .modal-header { | |
94 | border-bottom: none; | |
95 | margin-bottom: 5px; | |
96 | ||
97 | .modal-title { | |
98 | font-size: 20px; | |
99 | font-weight: $font-semibold; | |
100 | } | |
101 | ||
102 | my-global-icon { | |
54e78847 | 103 | @include icon(22px); |
2f4c784a C |
104 | |
105 | position: relative; | |
54e78847 | 106 | top: 5px; |
2f4c784a C |
107 | float: right; |
108 | ||
109 | margin: 0; | |
110 | padding: 0; | |
54e78847 | 111 | opacity: .5; |
8319d6ae RK |
112 | |
113 | &[iconName="cross"] { | |
114 | @include icon(16px); | |
115 | top: -3px; | |
116 | } | |
2f4c784a C |
117 | } |
118 | } | |
119 | ||
120 | .inputs { | |
121 | margin-bottom: 0; | |
122 | text-align: right; | |
123 | ||
124 | .action-button-cancel { | |
125 | @include peertube-button; | |
54e78847 | 126 | @include tertiary-button; |
2f4c784a C |
127 | |
128 | display: inline-block; | |
129 | margin-right: 10px; | |
130 | } | |
131 | ||
132 | .action-button-submit { | |
133 | @include peertube-button; | |
134 | @include orange-button; | |
135 | } | |
136 | } | |
137 | } | |
138 | ||
139 | // Nav customizations | |
140 | .nav .nav-link { | |
141 | display: flex !important; | |
142 | align-items: center; | |
143 | height: 30px !important; | |
144 | padding: 10px 15px !important; | |
145 | } | |
146 | ||
147 | .nav.nav-pills { | |
148 | font-size: 16px !important; | |
149 | ||
150 | .nav-link.active { | |
151 | font-weight: $font-semibold !important; | |
152 | } | |
153 | ||
154 | a { | |
155 | @include disable-default-a-behaviour; | |
156 | ||
157 | color: var(--mainForegroundColor); | |
158 | } | |
159 | } | |
160 | ||
45c6bcf3 | 161 | .nav-tabs { |
2f4c784a C |
162 | |
163 | .nav-link { | |
45c6bcf3 | 164 | @include disable-default-a-behaviour; |
2f4c784a | 165 | |
45c6bcf3 | 166 | color: var(--mainForegroundColor) !important; |
2f4c784a C |
167 | } |
168 | } | |
169 | ||
758f0d19 RK |
170 | .nav-tabs .nav-link { |
171 | &:not(.active) { | |
758f0d19 RK |
172 | border-bottom: 3px solid transparent; |
173 | } | |
174 | &.active { | |
482fa503 | 175 | font-weight: $font-semibold; |
758f0d19 RK |
176 | background-color: var(--mainBackgroundColor) !important; |
177 | border: none; | |
178 | border-bottom: 2px solid var(--mainColor); | |
179 | } | |
180 | &:hover { | |
181 | border-top-color: transparent; | |
182 | border-left-color: transparent; | |
183 | border-right-color: transparent; | |
184 | } | |
2f4c784a C |
185 | } |
186 | ||
a4610bc6 JM |
187 | .card { |
188 | background-color: var(--mainBackgroundColor); | |
189 | border-color: #dee2e6; | |
190 | } | |
191 | ||
2f4c784a C |
192 | .collapse-transition { |
193 | // Animation when we show/hide the filters | |
194 | transition: max-height 0.3s; | |
195 | display: block !important; | |
196 | overflow: hidden !important; | |
197 | max-height: 0; | |
198 | ||
199 | &.show { | |
200 | max-height: 1500px; | |
201 | } | |
202 | } | |
bc584963 RK |
203 | |
204 | .dropdown-divider { | |
205 | margin: 0.3rem 0; | |
000eb0e4 RK |
206 | } |
207 | ||
208 | ngb-modal-backdrop { | |
36f2981f RK |
209 | z-index: z(modal) - 1 !important; |
210 | } | |
211 | ||
212 | ngb-modal-window { | |
213 | z-index: z(modal) !important; | |
000eb0e4 | 214 | } |
aa0f1963 | 215 | |
757ffdfe RK |
216 | ngb-popover-window { |
217 | z-index: z(popover) !important; | |
218 | } | |
219 | ||
220 | ngb-tooltip-window { | |
221 | z-index: z(tooltip) !important; | |
222 | } | |
223 | ||
947d0102 RK |
224 | .btn-outline-secondary { |
225 | border-color: $input-border-color; | |
226 | ||
227 | &:focus-within, | |
228 | &:focus, | |
229 | &:hover { | |
230 | color: #fff; | |
231 | background-color: #6c757d; | |
232 | } | |
233 | } | |
234 | ||
aa0f1963 | 235 | .btn-outline-tertiary { |
a3705089 | 236 | color: var(--secondaryColor); |
aa0f1963 | 237 | border-color: var(--secondaryColor); |
a3705089 | 238 | |
947d0102 RK |
239 | &:focus-within, |
240 | &:focus, | |
aa0f1963 RK |
241 | &:hover { |
242 | color: var(--mainBackgroundColor); | |
243 | background-color: var(--secondaryColor); | |
244 | } | |
245 | } | |
a6d5ff76 RK |
246 | |
247 | // input box-shadow on focus | |
248 | .form-control { | |
249 | font-size: 15px; | |
250 | color: var(--mainForegroundColor); | |
251 | background-color: var(--inputBackgroundColor); | |
252 | outline: none; | |
253 | ||
254 | &:focus-within, | |
255 | &:focus { | |
6a4c30de | 256 | box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest); |
a6d5ff76 RK |
257 | |
258 | &.input-error { | |
6a4c30de | 259 | box-shadow: #{$focus-box-shadow-form} #{scale-color($red, $alpha: -75%)}; |
a6d5ff76 RK |
260 | } |
261 | } | |
262 | } | |
947d0102 RK |
263 | |
264 | .input-group > .form-control { | |
265 | flex: initial; | |
266 | } |