diff options
author | Chocobozzz <me@florianbigard.com> | 2023-03-15 14:20:26 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-03-15 14:28:27 +0100 |
commit | dc9c9500bf5f0fd66906576ee3df4f1c49a1871d (patch) | |
tree | 347853ac17beb366bac111e3bc3e3acae31ca267 /client/src/sass/class-helpers | |
parent | 5ccf98a4ecc39d1b50df5b748e885683f71276a9 (diff) | |
download | PeerTube-dc9c9500bf5f0fd66906576ee3df4f1c49a1871d.tar.gz PeerTube-dc9c9500bf5f0fd66906576ee3df4f1c49a1871d.tar.zst PeerTube-dc9c9500bf5f0fd66906576ee3df4f1c49a1871d.zip |
Improve accessibility
Diffstat (limited to 'client/src/sass/class-helpers')
-rw-r--r-- | client/src/sass/class-helpers/_common.scss | 24 | ||||
-rw-r--r-- | client/src/sass/class-helpers/_text.scss | 47 | ||||
-rw-r--r-- | client/src/sass/class-helpers/index.scss | 1 |
3 files changed, 48 insertions, 24 deletions
diff --git a/client/src/sass/class-helpers/_common.scss b/client/src/sass/class-helpers/_common.scss index 0a81a415d..e42d7d587 100644 --- a/client/src/sass/class-helpers/_common.scss +++ b/client/src/sass/class-helpers/_common.scss | |||
@@ -3,30 +3,6 @@ | |||
3 | @use '_variables' as *; | 3 | @use '_variables' as *; |
4 | @use '_mixins' as *; | 4 | @use '_mixins' as *; |
5 | 5 | ||
6 | .link-orange { | ||
7 | color: pvar(--mainForegroundColor); | ||
8 | font-weight: $font-semibold; | ||
9 | border-bottom: 0.18em solid pvar(--mainColor); | ||
10 | display: inline-block; | ||
11 | line-height: 1.1; | ||
12 | |||
13 | &:hover { | ||
14 | color: pvar(--mainForegroundColor); | ||
15 | opacity: 0.8; | ||
16 | } | ||
17 | } | ||
18 | |||
19 | .underline-orange { | ||
20 | display: inline-block; | ||
21 | border-bottom: 0.19em solid pvar(--mainColor); | ||
22 | } | ||
23 | |||
24 | // --------------------------------------------------------------------------- | ||
25 | |||
26 | .muted { | ||
27 | @include muted; | ||
28 | } | ||
29 | |||
30 | // --------------------------------------------------------------------------- | 6 | // --------------------------------------------------------------------------- |
31 | 7 | ||
32 | .pt-badge { | 8 | .pt-badge { |
diff --git a/client/src/sass/class-helpers/_text.scss b/client/src/sass/class-helpers/_text.scss new file mode 100644 index 000000000..0fe698d4f --- /dev/null +++ b/client/src/sass/class-helpers/_text.scss | |||
@@ -0,0 +1,47 @@ | |||
1 | @use '_badges' as *; | ||
2 | @use '_icons' as *; | ||
3 | @use '_variables' as *; | ||
4 | @use '_mixins' as *; | ||
5 | |||
6 | .link-orange { | ||
7 | color: pvar(--mainForegroundColor); | ||
8 | font-weight: $font-semibold; | ||
9 | border-bottom: 0.18em solid pvar(--mainColor); | ||
10 | display: inline-block; | ||
11 | line-height: 1.1; | ||
12 | |||
13 | &:hover { | ||
14 | color: pvar(--mainForegroundColor); | ||
15 | opacity: 0.8; | ||
16 | } | ||
17 | } | ||
18 | |||
19 | .underline-orange { | ||
20 | display: inline-block; | ||
21 | border-bottom: 0.19em solid pvar(--mainColor); | ||
22 | } | ||
23 | |||
24 | // --------------------------------------------------------------------------- | ||
25 | |||
26 | .muted { | ||
27 | @include muted; | ||
28 | } | ||
29 | |||
30 | // --------------------------------------------------------------------------- | ||
31 | |||
32 | @mixin ellipsis-multiline($number-of-lines) { | ||
33 | display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */ | ||
34 | -webkit-line-clamp: $number-of-lines; | ||
35 | -webkit-box-orient: vertical; | ||
36 | overflow: hidden; | ||
37 | } | ||
38 | |||
39 | .ellipsis-multiline-2 { | ||
40 | @include ellipsis-multiline(2); | ||
41 | } | ||
42 | |||
43 | .ellipsis-multiline-3 { | ||
44 | @include ellipsis-multiline(3); | ||
45 | } | ||
46 | |||
47 | // --------------------------------------------------------------------------- | ||
diff --git a/client/src/sass/class-helpers/index.scss b/client/src/sass/class-helpers/index.scss index 28beb3b7f..4fe935ab1 100644 --- a/client/src/sass/class-helpers/index.scss +++ b/client/src/sass/class-helpers/index.scss | |||
@@ -3,3 +3,4 @@ | |||
3 | @use './_custom-bootstrap-helpers'; | 3 | @use './_custom-bootstrap-helpers'; |
4 | @use './_forms'; | 4 | @use './_forms'; |
5 | @use './_menu'; | 5 | @use './_menu'; |
6 | @use './_text'; | ||