1 $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/';
3 @use '_variables' as *;
6 @import './_bootstrap-variables';
8 @import '~bootstrap/scss/functions';
9 @import '~bootstrap/scss/variables';
11 @import '~bootstrap/scss/mixins';
12 @import '~bootstrap/scss/root';
13 @import '~bootstrap/scss/reboot';
14 @import '~bootstrap/scss/type';
15 @import '~bootstrap/scss/grid';
16 @import '~bootstrap/scss/tables';
17 @import '~bootstrap/scss/forms';
18 @import '~bootstrap/scss/buttons';
19 @import '~bootstrap/scss/dropdown';
20 @import '~bootstrap/scss/button-group';
21 @import '~bootstrap/scss/input-group';
22 @import '~bootstrap/scss/nav';
23 @import '~bootstrap/scss/card';
24 @import '~bootstrap/scss/badge';
25 @import '~bootstrap/scss/alert';
26 @import '~bootstrap/scss/close';
27 @import '~bootstrap/scss/modal';
28 @import '~bootstrap/scss/tooltip';
29 @import '~bootstrap/scss/popover';
30 @import '~bootstrap/scss/utilities';
32 @import '~@neos21/bootstrap3-glyphicons/assets/stylesheets/bootstrap3-glyphicons';
34 // Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
35 .glyphicon-refresh-animate {
36 animation: spin 0.7s infinite linear;
39 .glyphicon-duplicate {
53 transform: scale(1) rotate(0deg);
57 transform: scale(1) rotate(360deg);
61 /* rules for dropdowns excepts when in button group, to avoid impacting the dropdown-toggle */
63 z-index: z(dropdown) !important;
68 z-index: z(header) - 1 !important;
76 z-index: inherit !important;
79 .btn-group > .btn:not(:first-child) {
80 border-top-left-radius: 0 !important;
81 border-bottom-left-radius: 0 !important;
85 z-index: z(dropdown) + 1 !important;
88 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);
92 @include padding-left(1rem);
99 color: pvar(--mainBackgroundColor) !important;
100 background-color: pvar(--mainHoverColor);
105 color: pvar(--mainForegroundColor) !important;
114 @include disable-default-a-behaviour;
118 @include disable-default-a-behaviour;
119 color: #000 !important;
127 @media screen and (min-width: #{breakpoint(md)}) {
129 vertical-align: middle;
137 &:not(.modal-lg):not(.modal-xl) {
149 background-color: pvar(--mainBackgroundColor);
150 word-break: break-word;
159 font-weight: $font-semibold;
173 &[iconName=cross] { /* stylelint-disable-line selector-max-compound-selectors */
185 > .peertube-button:not(:first-child) {
186 @include margin-left(10px);
192 // On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close
194 overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect
195 width: 100vw; // Make sure the content fits all the available width
198 // On touchscreen devices, simply overflow: hidden to avoid detached overlay on scroll
199 @media (hover: none) and (pointer: coarse) {
202 overflow: hidden !important;
205 // On touchscreen devices display content overlay when opened menu
209 background-color: #000;
216 z-index: z('menu') - 1;
222 // Nav customizations
224 display: flex !important;
226 height: 30px !important;
227 padding: 10px 15px !important;
231 font-size: 16px !important;
232 font-weight: $font-semibold !important;
235 opacity: 0.6 !important;
241 opacity: 1 !important;
246 @include disable-default-a-behaviour;
248 color: pvar(--mainForegroundColor);
252 .nav-tabs .nav-link {
253 @include disable-default-a-behaviour;
255 color: pvar(--mainForegroundColor);
256 font-weight: $font-semibold;
258 border-bottom: 2px solid transparent;
262 color: pvar(--mainForegroundColor);
263 background-color: pvar(--mainBackgroundColor) !important;
264 border-bottom-color: pvar(--mainColor);
276 background-color: pvar(--mainBackgroundColor);
277 border-color: #dee2e6;
280 .collapse-transition {
281 // Animation when we show/hide the filters
282 transition: max-height 0.3s;
283 display: block !important;
284 overflow: hidden !important;
297 z-index: z(modal) - 1 !important;
301 z-index: z(modal) !important;
305 z-index: z(popover) !important;
309 z-index: z(tooltip) !important;
312 .btn-outline-secondary {
313 border-color: $input-border-color;
319 background-color: #6c757d;
323 .btn-outline-tertiary {
324 color: pvar(--secondaryColor);
325 border-color: pvar(--secondaryColor);
330 color: pvar(--mainBackgroundColor);
331 background-color: pvar(--secondaryColor);
335 // input box-shadow on focus
338 color: pvar(--mainForegroundColor);
339 background-color: pvar(--inputBackgroundColor);
344 box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
347 box-shadow: #{$focus-box-shadow-form} #{scale-color($red, $alpha: -75%)};
358 width: unset !important;
362 .input-group-prepend + input {
363 border-top-left-radius: 0 !important;
364 border-bottom-left-radius: 0 !important;
368 .has-feedback.has-clear {
372 @include padding-right(1.5rem !important);
375 .form-control-clear {
376 color: rgba(0, 0, 0, 0.4);
378 * Enable pointer events as they have been disabled since Bootstrap 3.3
379 * See https://github.com/twbs/bootstrap/pull/14104
383 justify-content: center;
391 color: rgba(0, 0, 0, 0.7);
396 input:placeholder-shown + .form-control-clear {
403 border: 1px solid #eee;
404 border-radius: .25rem;
410 color: #6c757d !important;
413 &:not(.callout-light) {
414 border-left-width: .25rem;
418 border-color: pvar(--mainColorLightest);
419 border-left-color: pvar(--mainColor);
423 // Override these properties for Bidi support
424 @each $size, $length in $spacers {
426 @include margin-left($length);
430 @include margin-right($length);
434 @include padding-left($length);
438 @include padding-right($length);