]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/bootstrap.scss
Add ability to update embed captions
[github/Chocobozzz/PeerTube.git] / client / src / sass / bootstrap.scss
CommitLineData
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
C
39.dropdown-menu {
40 border-radius: 3px;
6f6e89db 41 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
42 font-size: 15px;
43
0d3a2982
RK
44 .dropdown-header {
45 padding-left: 1rem;
46 }
47
2f4c784a
C
48 .dropdown-item {
49 padding: 3px 15px;
50
24e7916c
RK
51 &.active {
52 color: var(--mainBackgroundColor) !important;
53 background-color: var(--mainHoverColor);
54 opacity: .9;
2f4c784a 55 }
45c6bcf3 56
d3217560
RK
57 &::after {
58 display: none;
59 }
2f4c784a
C
60 }
61
62 button {
63 @include disable-default-a-behaviour;
64 }
65
66 a {
67 @include disable-default-a-behaviour;
68 color: #000 !important;
69 }
70}
71
3921166d 72
165ee292 73@media screen and (min-width: #{breakpoint(md)}) {
3921166d 74 .modal:before {
3921166d
RK
75 vertical-align: middle;
76 content: " ";
77 height: 100%;
78 }
79
80 .modal-dialog {
3921166d 81 text-align: left;
2bc9bd08
RK
82
83 &:not(.modal-lg):not(.modal-xl) {
84 min-width: 500px;
85 width: 40vw;
86 max-width: 900px;
87 }
3921166d
RK
88 }
89}
90
2f4c784a 91.modal {
3921166d
RK
92 text-align: center;
93
2f4c784a
C
94 .modal-content {
95 background-color: var(--mainBackgroundColor);
96 }
97
98 .modal-header {
99 border-bottom: none;
100 margin-bottom: 5px;
101
102 .modal-title {
103 font-size: 20px;
104 font-weight: $font-semibold;
105 }
106
107 my-global-icon {
54e78847 108 @include icon(22px);
2f4c784a
C
109
110 position: relative;
54e78847 111 top: 5px;
2f4c784a
C
112 float: right;
113
114 margin: 0;
115 padding: 0;
54e78847 116 opacity: .5;
8319d6ae
RK
117
118 &[iconName="cross"] {
119 @include icon(16px);
120 top: -3px;
121 }
2f4c784a
C
122 }
123 }
124
125 .inputs {
126 margin-bottom: 0;
127 text-align: right;
128
129 .action-button-cancel {
130 @include peertube-button;
54e78847 131 @include tertiary-button;
2f4c784a
C
132
133 display: inline-block;
134 margin-right: 10px;
135 }
136
137 .action-button-submit {
138 @include peertube-button;
139 @include orange-button;
140 }
141 }
142}
143
144// Nav customizations
145.nav .nav-link {
146 display: flex !important;
147 align-items: center;
148 height: 30px !important;
149 padding: 10px 15px !important;
150}
151
152.nav.nav-pills {
153 font-size: 16px !important;
154
155 .nav-link.active {
156 font-weight: $font-semibold !important;
157 }
158
159 a {
160 @include disable-default-a-behaviour;
161
162 color: var(--mainForegroundColor);
163 }
164}
165
45c6bcf3 166.nav-tabs {
2f4c784a
C
167
168 .nav-link {
45c6bcf3 169 @include disable-default-a-behaviour;
2f4c784a 170
45c6bcf3 171 color: var(--mainForegroundColor) !important;
2f4c784a
C
172 }
173}
174
758f0d19
RK
175.nav-tabs .nav-link {
176 &:not(.active) {
758f0d19
RK
177 border-bottom: 3px solid transparent;
178 }
179 &.active {
482fa503 180 font-weight: $font-semibold;
758f0d19
RK
181 background-color: var(--mainBackgroundColor) !important;
182 border: none;
183 border-bottom: 2px solid var(--mainColor);
184 }
185 &:hover {
186 border-top-color: transparent;
187 border-left-color: transparent;
188 border-right-color: transparent;
189 }
2f4c784a
C
190}
191
a4610bc6
JM
192.card {
193 background-color: var(--mainBackgroundColor);
194 border-color: #dee2e6;
195}
196
2f4c784a
C
197.collapse-transition {
198 // Animation when we show/hide the filters
199 transition: max-height 0.3s;
200 display: block !important;
201 overflow: hidden !important;
202 max-height: 0;
203
204 &.show {
205 max-height: 1500px;
206 }
207}
bc584963
RK
208
209.dropdown-divider {
210 margin: 0.3rem 0;
000eb0e4
RK
211}
212
213ngb-modal-backdrop {
36f2981f
RK
214 z-index: z(modal) - 1 !important;
215}
216
217ngb-modal-window {
218 z-index: z(modal) !important;
000eb0e4 219}
aa0f1963 220
757ffdfe
RK
221ngb-popover-window {
222 z-index: z(popover) !important;
223}
224
225ngb-tooltip-window {
226 z-index: z(tooltip) !important;
227}
228
947d0102
RK
229.btn-outline-secondary {
230 border-color: $input-border-color;
231
232 &:focus-within,
233 &:focus,
234 &:hover {
235 color: #fff;
236 background-color: #6c757d;
237 }
238}
239
aa0f1963 240.btn-outline-tertiary {
a3705089 241 color: var(--secondaryColor);
aa0f1963 242 border-color: var(--secondaryColor);
a3705089 243
947d0102
RK
244 &:focus-within,
245 &:focus,
aa0f1963
RK
246 &:hover {
247 color: var(--mainBackgroundColor);
248 background-color: var(--secondaryColor);
249 }
250}
a6d5ff76
RK
251
252// input box-shadow on focus
253.form-control {
254 font-size: 15px;
255 color: var(--mainForegroundColor);
256 background-color: var(--inputBackgroundColor);
257 outline: none;
258
259 &:focus-within,
260 &:focus {
6a4c30de 261 box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
a6d5ff76
RK
262
263 &.input-error {
6a4c30de 264 box-shadow: #{$focus-box-shadow-form} #{scale-color($red, $alpha: -75%)};
a6d5ff76
RK
265 }
266 }
267}
947d0102 268
0d3a2982
RK
269.input-group {
270 & > .form-control {
271 flex: initial;
272 }
25a42e29
RK
273 input.form-control {
274 width: unset !important;
275 flex-grow: 1;
0d3a2982
RK
276 }
277
278 .input-group-prepend + input {
279 border-top-left-radius: 0 !important;
280 border-bottom-left-radius: 0 !important;
281 }
947d0102 282}
25a42e29
RK
283
284.has-feedback.has-clear {
285 position: relative;
286
287 input {
288 padding-right: 1.5rem !important;
289 }
290
291 .form-control-clear {
292 color: rgba(0, 0, 0, 0.4);
293 /*
294 * Enable pointer events as they have been disabled since Bootstrap 3.3
295 * See https://github.com/twbs/bootstrap/pull/14104
296 */
297 pointer-events: all;
298 display: flex;
299 justify-content: center;
300 align-items: center;
301 position: absolute;
302 right: .5rem;
303 height: 95%;
304
305 &:hover {
306 color: rgba(0, 0, 0, 0.7);
307 cursor: pointer;
308 }
309 }
310
311 input:placeholder-shown + .form-control-clear {
312 display: none;
313 }
314}