1 @use '_variables' as *;
4 @import './_bootstrap-variables';
6 @import 'bootstrap/scss/functions';
7 @import 'bootstrap/scss/variables';
8 @import 'bootstrap/scss/maps';
9 @import 'bootstrap/scss/mixins';
10 @import 'bootstrap/scss/utilities';
12 @import 'bootstrap/scss/root';
13 @import 'bootstrap/scss/reboot';
14 @import 'bootstrap/scss/type';
15 @import 'bootstrap/scss/grid';
16 @import 'bootstrap/scss/forms';
17 @import 'bootstrap/scss/buttons';
18 @import 'bootstrap/scss/dropdown';
19 @import 'bootstrap/scss/button-group';
20 @import 'bootstrap/scss/nav';
21 @import 'bootstrap/scss/card';
22 @import 'bootstrap/scss/accordion';
23 @import 'bootstrap/scss/alert';
24 @import 'bootstrap/scss/close';
25 @import 'bootstrap/scss/modal';
26 @import 'bootstrap/scss/tooltip';
27 @import 'bootstrap/scss/popover';
28 @import 'bootstrap/scss/spinners';
30 @import 'bootstrap/scss/helpers';
31 @import 'bootstrap/scss/utilities/api';
34 --bs-border-color-translucent: #{pvar(--inputBorderColor)};
38 --bs-accordion-color: #{pvar(--mainForegroundColor)};
39 --bs-accordion-bg: #{pvar(--mainBackgroundColor)};
41 --bs-accordion-btn-color: var(--bs-accordion-color);
42 --bs-accordion-btn-bg: var(--bs-accordion-bg);
46 --bs-popover-bg: #{pvar(--mainBackgroundColor)};
47 --bs-popover-body-color: #{pvar(--mainForegroundColor)};
48 --bs-popover-header-color: #{pvar(--mainForegroundColor)};
50 font-family: $main-fonts;
58 cursor: pointer !important;
61 // ---------------------------------------------------------------------------
63 // ---------------------------------------------------------------------------
66 --bs-dropdown-link-hover-bg: #{pvar(--mainBackgroundHoverColor)};
67 --bs-dropdown-link-color: #{pvar(--mainForegroundColor)};
68 --bs-dropdown-border-color: #{pvar(--inputBorderColor)};
71 @include padding-left(1rem);
78 color: pvar(--mainBackgroundColor) !important;
79 background-color: pvar(--mainHoverColor);
89 @include disable-default-a-behaviour;
97 // ---------------------------------------------------------------------------
99 // ---------------------------------------------------------------------------
107 // ---------------------------------------------------------------------------
109 // ---------------------------------------------------------------------------
111 @media screen and (min-width: #{breakpoint(md)}) {
113 vertical-align: middle;
121 &:not(.modal-lg):not(.modal-xl) {
133 background-color: pvar(--mainBackgroundColor);
134 word-break: break-word;
143 font-weight: $font-semibold;
161 > *:not(:first-child) {
162 @include margin-left(10px);
168 // On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close
170 overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect
171 width: 100vw; // Make sure the content fits all the available width
174 // On touchscreen devices, simply overflow: hidden to avoid detached overlay on scroll
175 @media (hover: none) and (pointer: coarse) {
178 overflow: hidden !important;
181 // On touchscreen devices display content overlay when opened menu
185 background-color: #000;
198 // ---------------------------------------------------------------------------
200 // ---------------------------------------------------------------------------
203 display: flex !important;
205 height: 30px !important;
206 padding: 10px 15px !important;
210 font-size: 16px !important;
211 font-weight: $font-semibold !important;
214 opacity: 0.7 !important;
220 opacity: 1 !important;
225 @include disable-default-a-behaviour;
227 color: pvar(--mainForegroundColor);
231 .nav-tabs .nav-link {
232 @include disable-default-a-behaviour;
234 color: pvar(--mainForegroundColor);
235 font-weight: $font-semibold;
237 border-bottom: 2px solid transparent;
241 color: pvar(--mainForegroundColor);
242 background-color: pvar(--mainBackgroundColor) !important;
243 border-bottom-color: pvar(--mainColor);
254 // ---------------------------------------------------------------------------
255 // Card, collapse and accordion
256 // ---------------------------------------------------------------------------
259 background-color: pvar(--mainBackgroundColor);
260 border-color: #dee2e6;
263 .collapse-transition {
264 // Animation when we show/hide the filters
265 transition: max-height 0.3s;
266 display: block !important;
267 overflow: hidden !important;
272 overflow: inherit !important;
280 font-weight: $font-bold;
283 color: pvar(--mainColorLighter);
288 // ---------------------------------------------------------------------------
289 // Buttons & form controls
290 // ---------------------------------------------------------------------------
293 font-size: $button-font-size;
297 .btn-outline-secondary {
298 border-color: pvar(--inputBorderColor);
304 background-color: #6c757d;
308 .btn-group.select-button {
309 font-weight: $font-semibold;
312 @include orange-button;
316 @include grey-button;
320 @include peertube-button-link;
322 box-shadow: none !important;
324 &:not(:first-child) {
325 border-top-left-radius: 0 !important;
326 border-bottom-left-radius: 0 !important;
330 border-top-right-radius: 0 !important;
331 border-bottom-right-radius: 0 !important;
337 color: pvar(--mainForegroundColor);
338 background-color: pvar(--inputBackgroundColor);
344 > .input-group-text {
349 > .input-group-text {
354 .input-group-text > .dropdown-toggle {
362 border-top-right-radius: 3px !important;
363 border-bottom-right-radius: 3px !important;
369 @include padding-right(1.5rem !important);
372 .form-control-clear {
374 justify-content: center;
388 input:placeholder-shown + .form-control-clear {