aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-06-28 11:29:54 +0200
committerChocobozzz <me@florianbigard.com>2022-06-28 11:29:54 +0200
commita334597283a3384fa4df7b6b25fd2a9ff9221467 (patch)
tree1125357d4486d8b9a52750f44697cae607e217da /client/src/sass
parent4c8a099198cd3af049847df91140735354b85a92 (diff)
downloadPeerTube-a334597283a3384fa4df7b6b25fd2a9ff9221467.tar.gz
PeerTube-a334597283a3384fa4df7b6b25fd2a9ff9221467.tar.zst
PeerTube-a334597283a3384fa4df7b6b25fd2a9ff9221467.zip
Theme fixes
Diffstat (limited to 'client/src/sass')
-rw-r--r--client/src/sass/application.scss1
-rw-r--r--client/src/sass/bootstrap.scss10
-rw-r--r--client/src/sass/include/_bootstrap-variables.scss9
-rw-r--r--client/src/sass/include/_mixins.scss14
-rw-r--r--client/src/sass/include/_variables.scss2
-rw-r--r--client/src/sass/primeng-custom.scss6
6 files changed, 28 insertions, 14 deletions
diff --git a/client/src/sass/application.scss b/client/src/sass/application.scss
index add01fb71..224efbffd 100644
--- a/client/src/sass/application.scss
+++ b/client/src/sass/application.scss
@@ -43,6 +43,7 @@ body {
43 --inputForegroundColor: #{$input-foreground-color}; 43 --inputForegroundColor: #{$input-foreground-color};
44 --inputBackgroundColor: #{$input-background-color}; 44 --inputBackgroundColor: #{$input-background-color};
45 --inputPlaceholderColor: #{$input-placeholder-color}; 45 --inputPlaceholderColor: #{$input-placeholder-color};
46 --inputBorderColor: #{$input-border-color};
46 47
47 --textareaForegroundColor: #{$textarea-foreground-color}; 48 --textareaForegroundColor: #{$textarea-foreground-color};
48 --textareaBackgroundColor: #{$textarea-background-color}; 49 --textareaBackgroundColor: #{$textarea-background-color};
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss
index 688407683..eed6abe41 100644
--- a/client/src/sass/bootstrap.scss
+++ b/client/src/sass/bootstrap.scss
@@ -42,14 +42,12 @@
42// --------------------------------------------------------------------------- 42// ---------------------------------------------------------------------------
43 43
44.dropdown-menu { 44.dropdown-menu {
45 color: pvar(--mainForegroundColor);
46 background-color: pvar(--mainBackgroundColor);
47
48 .dropdown-header { 45 .dropdown-header {
49 @include padding-left(1rem); 46 @include padding-left(1rem);
50 } 47 }
51 48
52 .dropdown-item { 49 .dropdown-item {
50 color: pvar(--mainForegroundColor);
53 padding: 3px 15px; 51 padding: 3px 15px;
54 52
55 &.active { 53 &.active {
@@ -271,7 +269,7 @@
271} 269}
272 270
273.btn-outline-secondary { 271.btn-outline-secondary {
274 border-color: $input-border-color; 272 border-color: pvar(--inputBorderColor);
275 273
276 &:focus-within, 274 &:focus-within,
277 &:focus, 275 &:focus,
@@ -342,7 +340,6 @@
342 } 340 }
343 341
344 .form-control-clear { 342 .form-control-clear {
345 color: rgba(0, 0, 0, 0.4);
346 display: flex; 343 display: flex;
347 justify-content: center; 344 justify-content: center;
348 align-items: center; 345 align-items: center;
@@ -350,9 +347,10 @@
350 font-size: 14px; 347 font-size: 14px;
351 position: absolute; 348 position: absolute;
352 right: .5rem; 349 right: .5rem;
350 opacity: 0.4;
353 351
354 &:hover { 352 &:hover {
355 color: rgba(0, 0, 0, 0.7); 353 opacity: 0.7;
356 cursor: pointer; 354 cursor: pointer;
357 } 355 }
358 } 356 }
diff --git a/client/src/sass/include/_bootstrap-variables.scss b/client/src/sass/include/_bootstrap-variables.scss
index 3e461dbef..5c6a56283 100644
--- a/client/src/sass/include/_bootstrap-variables.scss
+++ b/client/src/sass/include/_bootstrap-variables.scss
@@ -46,8 +46,17 @@ $dropdown-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0,
46$dropdown-border-radius: 3px; 46$dropdown-border-radius: 3px;
47$dropdown-link-active-color: pvar(--mainForegroundColor); 47$dropdown-link-active-color: pvar(--mainForegroundColor);
48$dropdown-link-active-bg: pvar(--mainBackgroundHoverColor); 48$dropdown-link-active-bg: pvar(--mainBackgroundHoverColor);
49$dropdown-link-hover-color: pvar(--mainForegroundColor);
50$dropdown-link-hover-bg: pvar(--mainBackgroundHoverColor);
51$dropdown-color: pvar(--mainForegroundColor);
52$dropdown-bg: pvar(--mainBackgroundColor);
49 53
54$accordion-color: pvar(--mainForegroundColor);
55$accordion-bg: pvar(--mainBackgroundColor);
50$accordion-button-active-bg: pvar(--mainColorVeryLight); 56$accordion-button-active-bg: pvar(--mainColorVeryLight);
51$accordion-button-active-color: pvar(--mainForegroundColor); 57$accordion-button-active-color: pvar(--mainForegroundColor);
52$accordion-button-focus-border-color: pvar(--mainColorLightest); 58$accordion-button-focus-border-color: pvar(--mainColorLightest);
53$accordion-button-focus-box-shadow: 0 0 0 .15rem pvar(--mainColorLightest); 59$accordion-button-focus-box-shadow: 0 0 0 .15rem pvar(--mainColorLightest);
60$accordion-border-color: pvar(--inputBorderColor);
61
62$input-group-addon-color: pvar(--mainForegroundColor);
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss
index 1b460b723..6b93a5728 100644
--- a/client/src/sass/include/_mixins.scss
+++ b/client/src/sass/include/_mixins.scss
@@ -92,7 +92,7 @@
92 max-width: $width; 92 max-width: $width;
93 color: pvar(--inputForegroundColor); 93 color: pvar(--inputForegroundColor);
94 background-color: pvar(--inputBackgroundColor); 94 background-color: pvar(--inputBackgroundColor);
95 border: 1px solid $input-border-color; 95 border: 1px solid pvar(--inputBorderColor);
96 border-radius: 3px; 96 border-radius: 3px;
97 font-size: $form-input-font-size; 97 font-size: $form-input-font-size;
98 line-height: $form-input-line-height; 98 line-height: $form-input-line-height;
@@ -138,7 +138,7 @@
138 &.disabled { 138 &.disabled {
139 cursor: default; 139 cursor: default;
140 color: #fff; 140 color: #fff;
141 background-color: $input-border-color; 141 background-color: pvar(--inputBorderColor);
142 } 142 }
143 143
144 my-global-icon { 144 my-global-icon {
@@ -168,7 +168,7 @@
168 &.disabled { 168 &.disabled {
169 cursor: default; 169 cursor: default;
170 color: pvar(--mainColor); 170 color: pvar(--mainColor);
171 background-color: $input-border-color; 171 background-color: pvar(--inputBorderColor);
172 } 172 }
173 173
174 my-global-icon { 174 my-global-icon {
@@ -393,7 +393,7 @@
393 select { 393 select {
394 padding: 0 35px 0 12px; 394 padding: 0 35px 0 12px;
395 position: relative; 395 position: relative;
396 border: 1px solid $input-border-color; 396 border: 1px solid pvar(--inputBorderColor);
397 background: transparent none; 397 background: transparent none;
398 appearance: none; 398 appearance: none;
399 height: $button-height; 399 height: $button-height;
@@ -461,7 +461,7 @@
461 top: 0; 461 top: 0;
462 width: 18px; 462 width: 18px;
463 height: 18px; 463 height: 18px;
464 border: 1px solid $input-border-color; 464 border: 1px solid pvar(--inputBorderColor);
465 border-radius: 100%; 465 border-radius: 100%;
466 background: #fff; 466 background: #fff;
467 } 467 }
@@ -508,7 +508,7 @@
508 width: 18px; 508 width: 18px;
509 min-width: 18px; 509 min-width: 18px;
510 height: 18px; 510 height: 18px;
511 border: $border-width solid $input-border-color; 511 border: $border-width solid pvar(--inputBorderColor);
512 border-radius: 3px; 512 border-radius: 3px;
513 vertical-align: middle; 513 vertical-align: middle;
514 cursor: pointer; 514 cursor: pointer;
@@ -601,7 +601,7 @@
601 margin-bottom: 20px; 601 margin-bottom: 20px;
602 602
603 @if $separator { 603 @if $separator {
604 border-bottom: 1px solid $input-border-color; 604 border-bottom: 1px solid pvar(--inputBorderColor);
605 } 605 }
606 606
607 @media screen and (max-width: $small-view) { 607 @media screen and (max-width: $small-view) {
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss
index 2b893a62b..225cad9c2 100644
--- a/client/src/sass/include/_variables.scss
+++ b/client/src/sass/include/_variables.scss
@@ -48,7 +48,6 @@ $search-input-width: 375px;
48 48
49$menu-background: #000; 49$menu-background: #000;
50$menu-color: #fff; 50$menu-color: #fff;
51$menu-bottom-color: #C6C6C6;
52$menu-width: 240px; 51$menu-width: 240px;
53$menu-lateral-padding: 26px; 52$menu-lateral-padding: 26px;
54 53
@@ -135,6 +134,7 @@ $variables: (
135 --inputForegroundColor: var(--inputForegroundColor), 134 --inputForegroundColor: var(--inputForegroundColor),
136 --inputBackgroundColor: var(--inputBackgroundColor), 135 --inputBackgroundColor: var(--inputBackgroundColor),
137 --inputPlaceholderColor: var(--inputPlaceholderColor), 136 --inputPlaceholderColor: var(--inputPlaceholderColor),
137 --inputBorderColor: var(--inputBorderColor),
138 138
139 --textareaForegroundColor: var(--textareaForegroundColor), 139 --textareaForegroundColor: var(--textareaForegroundColor),
140 --textareaBackgroundColor: var(--textareaBackgroundColor), 140 --textareaBackgroundColor: var(--textareaBackgroundColor),
diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss
index 37e7a4275..a82cdbbb9 100644
--- a/client/src/sass/primeng-custom.scss
+++ b/client/src/sass/primeng-custom.scss
@@ -623,6 +623,12 @@ p-table {
623 } 623 }
624 } 624 }
625 625
626 .p-dropdown,
627 .p-dropdown-trigger {
628 color: pvar(--mainForegroundColor);
629 background-color: pvar(--mainBackgroundColor);
630 }
631
626 .p-paginator-current { 632 .p-paginator-current {
627 position: absolute; 633 position: absolute;
628 right: 0; 634 right: 0;