aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/bootstrap.scss
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-17 13:32:11 +0100
committerChocobozzz <me@florianbigard.com>2023-02-17 13:32:11 +0100
commitdec437aa46a644fb1b3cedc9afe4503c44e15308 (patch)
tree093d6b60bf461a7be504a5435f53177dc0dda825 /client/src/sass/bootstrap.scss
parentefaf3797897533ebaac6d96110c4c56af9fc1628 (diff)
downloadPeerTube-dec437aa46a644fb1b3cedc9afe4503c44e15308.tar.gz
PeerTube-dec437aa46a644fb1b3cedc9afe4503c44e15308.tar.zst
PeerTube-dec437aa46a644fb1b3cedc9afe4503c44e15308.zip
Increase theme compatibility
Try to use CSS variable as much as possible
Diffstat (limited to 'client/src/sass/bootstrap.scss')
-rw-r--r--client/src/sass/bootstrap.scss17
1 files changed, 16 insertions, 1 deletions
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss
index 724c4ad69..7843d3be7 100644
--- a/client/src/sass/bootstrap.scss
+++ b/client/src/sass/bootstrap.scss
@@ -30,11 +30,23 @@
30@import 'bootstrap/scss/helpers'; 30@import 'bootstrap/scss/helpers';
31@import 'bootstrap/scss/utilities/api'; 31@import 'bootstrap/scss/utilities/api';
32 32
33:root {
34 --bs-border-color-translucent: #{pvar(--inputBorderColor)};
35}
36
33.accordion { 37.accordion {
34 --bs-accordion-color: #{pvar(--mainForegroundColor)}; 38 --bs-accordion-color: #{pvar(--mainForegroundColor)};
35 --bs-accordion-bg: #{pvar(--mainBackgroundColor)}; 39 --bs-accordion-bg: #{pvar(--mainBackgroundColor)};
36} 40}
37 41
42.popover {
43 --bs-popover-bg: #{pvar(--mainBackgroundColor)};
44 --bs-popover-body-color: #{pvar(--mainForegroundColor)};
45 --bs-popover-header-color: #{pvar(--mainForegroundColor)};
46
47 font-family: $main-fonts;
48}
49
38.flex-auto { 50.flex-auto {
39 flex: auto; 51 flex: auto;
40} 52}
@@ -48,12 +60,15 @@
48// --------------------------------------------------------------------------- 60// ---------------------------------------------------------------------------
49 61
50.dropdown-menu { 62.dropdown-menu {
63 --bs-dropdown-link-hover-bg: #{pvar(--mainBackgroundHoverColor)};
64 --bs-dropdown-link-color: #{pvar(--mainForegroundColor)};
65 --bs-dropdown-border-color: #{pvar(--inputBorderColor)};
66
51 .dropdown-header { 67 .dropdown-header {
52 @include padding-left(1rem); 68 @include padding-left(1rem);
53 } 69 }
54 70
55 .dropdown-item { 71 .dropdown-item {
56 color: pvar(--mainForegroundColor);
57 padding: 3px 15px; 72 padding: 3px 15px;
58 73
59 &.active { 74 &.active {