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 */
64 z-index: z(dropdown) !important;
69 z-index: z(menu) - 1 !important;
77 z-index: inherit !important;
80 .btn-group > .btn:not(:first-child) {
81 border-top-left-radius: 0 !important;
82 border-bottom-left-radius: 0 !important;
86 z-index: z(dropdown) + 1 !important;
89 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);
93 @include padding-left(1rem);
100 color: pvar(--mainBackgroundColor) !important;
101 background-color: pvar(--mainHoverColor);
106 color: pvar(--mainForegroundColor) !important;
115 @include disable-default-a-behaviour;
119 @include disable-default-a-behaviour;
120 color: #000 !important;
128 @media screen and (min-width: #{breakpoint(md)}) {
130 vertical-align: middle;
138 &:not(.modal-lg):not(.modal-xl) {
150 background-color: pvar(--mainBackgroundColor);
151 word-break: break-word;
160 font-weight: $font-semibold;
174 &[iconName=cross] { /* stylelint-disable-line selector-max-compound-selectors */
186 > .peertube-button:not(:first-child) {
187 @include margin-left(10px);
193 // On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close
195 overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect
196 width: 100vw; // Make sure the content fits all the available width
199 // On touchscreen devices, simply overflow: hidden to avoid detached overlay on scroll
200 @media (hover: none) and (pointer: coarse) {
203 overflow: hidden !important;
206 // On touchscreen devices display content overlay when opened menu
210 background-color: #000;
223 // Nav customizations
225 display: flex !important;
227 height: 30px !important;
228 padding: 10px 15px !important;
232 font-size: 16px !important;
233 font-weight: $font-semibold !important;
236 opacity: 0.6 !important;
242 opacity: 1 !important;
247 @include disable-default-a-behaviour;
249 color: pvar(--mainForegroundColor);
253 .nav-tabs .nav-link {
254 @include disable-default-a-behaviour;
256 color: pvar(--mainForegroundColor);
257 font-weight: $font-semibold;
259 border-bottom: 2px solid transparent;
263 color: pvar(--mainForegroundColor);
264 background-color: pvar(--mainBackgroundColor) !important;
265 border-bottom-color: pvar(--mainColor);
277 background-color: pvar(--mainBackgroundColor);
278 border-color: #dee2e6;
281 .collapse-transition {
282 // Animation when we show/hide the filters
283 transition: max-height 0.3s;
284 display: block !important;
285 overflow: hidden !important;
290 overflow: inherit !important;
299 z-index: z(modal) - 1 !important;
303 z-index: z(modal) !important;
307 z-index: z(popover) !important;
311 z-index: z(tooltip) !important;
314 .btn-outline-secondary {
315 border-color: $input-border-color;
321 background-color: #6c757d;
325 .btn-outline-tertiary {
326 color: pvar(--secondaryColor);
327 border-color: pvar(--secondaryColor);
332 color: pvar(--mainBackgroundColor);
333 background-color: pvar(--secondaryColor);
337 // input box-shadow on focus
340 color: pvar(--mainForegroundColor);
341 background-color: pvar(--inputBackgroundColor);
346 box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest);
349 box-shadow: #{$focus-box-shadow-form} #{scale-color($red, $alpha: -75%)};
360 width: unset !important;
364 .input-group-prepend + input {
365 border-top-left-radius: 0 !important;
366 border-bottom-left-radius: 0 !important;
370 .has-feedback.has-clear {
374 @include padding-right(1.5rem !important);
377 .form-control-clear {
378 color: rgba(0, 0, 0, 0.4);
380 * Enable pointer events as they have been disabled since Bootstrap 3.3
381 * See https://github.com/twbs/bootstrap/pull/14104
385 justify-content: center;
393 color: rgba(0, 0, 0, 0.7);
398 input:placeholder-shown + .form-control-clear {
405 border: 1px solid #eee;
406 border-radius: .25rem;
412 color: #6c757d !important;
415 &:not(.callout-light) {
416 border-left-width: .25rem;
420 border-color: pvar(--mainColorLightest);
421 border-left-color: pvar(--mainColor);
425 // Override these properties for Bidi support
426 @each $size, $length in $spacers {
428 @include margin-left($length);
432 @include margin-right($length);
436 @include padding-left($length);
440 @include padding-right($length);