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 .btn-group > .btn:not(:first-child) {
62 border-top-left-radius: 0 !important;
63 border-bottom-left-radius: 0 !important;
68 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);
71 color: pvar(--mainForegroundColor);
72 background-color: pvar(--mainBackgroundColor);
75 @include padding-left(1rem);
81 color: pvar(--mainForegroundColor);
82 background-color: pvar(--mainBackgroundColor);
85 color: pvar(--mainBackgroundColor) !important;
86 background-color: pvar(--mainHoverColor);
92 color: pvar(--mainForegroundColor) !important;
93 background-color: pvar(--mainBackgroundHoverColor);
102 @include disable-default-a-behaviour;
106 @include disable-default-a-behaviour;
114 @media screen and (min-width: #{breakpoint(md)}) {
116 vertical-align: middle;
124 &:not(.modal-lg):not(.modal-xl) {
136 background-color: pvar(--mainBackgroundColor);
137 word-break: break-word;
146 font-weight: $font-semibold;
160 &[iconName=cross] { /* stylelint-disable-line selector-max-compound-selectors */
172 > *:not(:first-child) {
173 @include margin-left(10px);
179 // On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close
181 overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect
182 width: 100vw; // Make sure the content fits all the available width
185 // On touchscreen devices, simply overflow: hidden to avoid detached overlay on scroll
186 @media (hover: none) and (pointer: coarse) {
189 overflow: hidden !important;
192 // On touchscreen devices display content overlay when opened menu
196 background-color: #000;
209 // Nav customizations
211 display: flex !important;
213 height: 30px !important;
214 padding: 10px 15px !important;
218 font-size: 16px !important;
219 font-weight: $font-semibold !important;
222 opacity: 0.6 !important;
228 opacity: 1 !important;
233 @include disable-default-a-behaviour;
235 color: pvar(--mainForegroundColor);
239 .nav-tabs .nav-link {
240 @include disable-default-a-behaviour;
242 color: pvar(--mainForegroundColor);
243 font-weight: $font-semibold;
245 border-bottom: 2px solid transparent;
249 color: pvar(--mainForegroundColor);
250 background-color: pvar(--mainBackgroundColor) !important;
251 border-bottom-color: pvar(--mainColor);
263 background-color: pvar(--mainBackgroundColor);
264 border-color: #dee2e6;
267 .collapse-transition {
268 // Animation when we show/hide the filters
269 transition: max-height 0.3s;
270 display: block !important;
271 overflow: hidden !important;
276 overflow: inherit !important;
284 .btn-outline-secondary {
285 border-color: $input-border-color;
291 background-color: #6c757d;
295 .btn-outline-tertiary {
296 color: pvar(--secondaryColor);
297 border-color: pvar(--secondaryColor);
302 color: pvar(--mainBackgroundColor);
303 background-color: pvar(--secondaryColor);
307 .btn-group.select-button {
308 font-weight: $font-semibold;
311 @include orange-button;
315 @include grey-button;
319 @include peertube-button-link;
321 box-shadow: none !important;
323 &:not(:first-child) {
324 border-top-left-radius: 0 !important;
325 border-bottom-left-radius: 0 !important;
329 border-top-right-radius: 0 !important;
330 border-bottom-right-radius: 0 !important;
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);