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/transitions';
19 @import 'bootstrap/scss/dropdown';
20 @import 'bootstrap/scss/button-group';
21 @import 'bootstrap/scss/nav';
22 @import 'bootstrap/scss/card';
23 @import 'bootstrap/scss/accordion';
24 @import 'bootstrap/scss/alert';
25 @import 'bootstrap/scss/close';
26 @import 'bootstrap/scss/modal';
27 @import 'bootstrap/scss/tooltip';
28 @import 'bootstrap/scss/popover';
29 @import 'bootstrap/scss/spinners';
31 @import 'bootstrap/scss/helpers';
32 @import 'bootstrap/scss/utilities/api';
35 --bs-border-color-translucent: #{pvar(--inputBorderColor)};
39 --bs-accordion-color: #{pvar(--mainForegroundColor)};
40 --bs-accordion-bg: #{pvar(--mainBackgroundColor)};
42 --bs-accordion-btn-color: var(--bs-accordion-color);
43 --bs-accordion-btn-bg: var(--bs-accordion-bg);
47 --bs-popover-bg: #{pvar(--mainBackgroundColor)};
48 --bs-popover-body-color: #{pvar(--mainForegroundColor)};
49 --bs-popover-header-color: #{pvar(--mainForegroundColor)};
51 font-family: $main-fonts;
59 cursor: pointer !important;
62 // ---------------------------------------------------------------------------
64 // ---------------------------------------------------------------------------
67 --bs-dropdown-link-hover-bg: #{pvar(--mainBackgroundHoverColor)};
68 --bs-dropdown-link-color: #{pvar(--mainForegroundColor)};
69 --bs-dropdown-border-color: #{pvar(--inputBorderColor)};
74 @include padding-left(1rem);
81 color: pvar(--mainBackgroundColor) !important;
82 background-color: pvar(--mainHoverColor);
92 @include disable-default-a-behaviour;
100 // ---------------------------------------------------------------------------
102 // ---------------------------------------------------------------------------
110 // ---------------------------------------------------------------------------
112 // ---------------------------------------------------------------------------
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;
164 > *:not(:first-child) {
165 @include margin-left(10px);
171 // On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close
173 overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect
174 width: 100vw; // Make sure the content fits all the available width
177 // On touchscreen devices, simply overflow: hidden to avoid detached overlay on scroll
178 @media (hover: none) and (pointer: coarse) {
181 overflow: hidden !important;
184 // On touchscreen devices display content overlay when opened menu
188 background-color: #000;
201 // ---------------------------------------------------------------------------
203 // ---------------------------------------------------------------------------
206 display: flex !important;
208 height: 30px !important;
212 font-size: 16px !important;
213 font-weight: $font-semibold !important;
216 opacity: 0.7 !important;
222 opacity: 1 !important;
227 @include disable-default-a-behaviour;
229 color: pvar(--mainForegroundColor);
233 .nav-tabs .nav-link {
234 @include disable-default-a-behaviour;
236 color: pvar(--mainForegroundColor);
237 font-weight: $font-semibold;
239 border-bottom: 2px solid transparent;
243 color: pvar(--mainForegroundColor);
244 background-color: pvar(--mainBackgroundColor) !important;
245 border-bottom-color: pvar(--mainColor);
256 // ---------------------------------------------------------------------------
257 // Card, collapse and accordion
258 // ---------------------------------------------------------------------------
261 background-color: pvar(--mainBackgroundColor);
262 border-color: #dee2e6;
269 font-weight: $font-bold;
272 color: pvar(--mainColorLighter);
277 // ---------------------------------------------------------------------------
278 // Buttons & form controls
279 // ---------------------------------------------------------------------------
282 font-size: $button-font-size;
286 .btn-outline-secondary {
287 border-color: pvar(--inputBorderColor);
293 background-color: #6c757d;
297 .btn-group.select-button {
298 font-weight: $font-semibold;
301 @include orange-button;
305 @include grey-button;
309 @include peertube-button-link;
311 box-shadow: none !important;
313 &:not(:first-child) {
314 border-top-left-radius: 0 !important;
315 border-bottom-left-radius: 0 !important;
319 border-top-right-radius: 0 !important;
320 border-bottom-right-radius: 0 !important;
326 color: pvar(--mainForegroundColor);
327 background-color: pvar(--inputBackgroundColor);
333 > .input-group-text {
338 > .input-group-text {
343 .input-group-text > .dropdown-toggle {
351 border-top-right-radius: 3px !important;
352 border-bottom-right-radius: 3px !important;
358 @include padding-right(1.5rem !important);
361 .form-control-clear {
363 justify-content: center;
377 input:placeholder-shown + .form-control-clear {
383 // Prevent invalid height in parent: https://stackoverflow.com/a/22425601