aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/sass/include
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-04-03 12:30:52 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-04-03 12:30:56 +0200
commit6a4c30de0e2ff82b8df1fc8ab4172ef63bd25566 (patch)
treee704bc3ae81de879a8b4b9b0036ca95c3591efe6 /client/src/sass/include
parent23f1b9da1577c64e2caa1dff8f3aa92eb8d184cf (diff)
downloadPeerTube-6a4c30de0e2ff82b8df1fc8ab4172ef63bd25566.tar.gz
PeerTube-6a4c30de0e2ff82b8df1fc8ab4172ef63bd25566.tar.zst
PeerTube-6a4c30de0e2ff82b8df1fc8ab4172ef63bd25566.zip
Put box-shadow for input focus in variables, apply form-control to p-multiselect
Diffstat (limited to 'client/src/sass/include')
-rw-r--r--client/src/sass/include/_miniature.scss3
-rw-r--r--client/src/sass/include/_mixins.scss6
-rw-r--r--client/src/sass/include/_variables.scss2
3 files changed, 7 insertions, 4 deletions
diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss
index c1d1b3c59..5e591cf45 100644
--- a/client/src/sass/include/_miniature.scss
+++ b/client/src/sass/include/_miniature.scss
@@ -80,7 +80,8 @@ $play-overlay-width: 18px;
80 } 80 }
81 81
82 &.focus-visible { 82 &.focus-visible {
83 box-shadow: 0 0 0 2px var(--mainColor); 83 box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
84 outline: none;
84 } 85 }
85 86
86 img { 87 img {
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss
index d414704e9..56ada6b9e 100644
--- a/client/src/sass/include/_mixins.scss
+++ b/client/src/sass/include/_mixins.scss
@@ -83,7 +83,7 @@
83@mixin button-focus($color) { 83@mixin button-focus($color) {
84 &:focus, 84 &:focus,
85 &.focus-visible { 85 &.focus-visible {
86 box-shadow: 0 0 0 .2rem $color; 86 box-shadow: #{$focus-box-shadow-form} $color;
87 } 87 }
88} 88}
89 89
@@ -372,7 +372,7 @@
372 position: absolute; 372 position: absolute;
373 373
374 &:focus + span { 374 &:focus + span {
375 box-shadow: 0 0 0 .2rem var(--mainColorLightest); 375 box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
376 } 376 }
377 377
378 & + span { 378 & + span {
@@ -721,7 +721,7 @@
721 height: max-content; 721 height: max-content;
722 722
723 &:focus-within { 723 &:focus-within {
724 box-shadow: 0 0 0 .2rem var(--mainColorLightest); 724 box-shadow: #{$focus-box-shadow-form} var(--mainColorLightest);
725 } 725 }
726 } 726 }
727 727
diff --git a/client/src/sass/include/_variables.scss b/client/src/sass/include/_variables.scss
index d0f1a3630..f60d8ce94 100644
--- a/client/src/sass/include/_variables.scss
+++ b/client/src/sass/include/_variables.scss
@@ -72,6 +72,8 @@ $sub-menu-margin-bottom: 30px;
72 72
73$activated-action-button-color: black; 73$activated-action-button-color: black;
74 74
75$focus-box-shadow-form: 0 0 0 .2rem;
76
75/*** map theme ***/ 77/*** map theme ***/
76 78
77// pass variables into a sass map, 79// pass variables into a sass map,