diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-13 10:14:03 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-13 11:23:36 +0200 |
commit | 93c728a25a87cf6dae5fc49d42d6af52ff7f7ff2 (patch) | |
tree | d9c658b4ac3467109a7f58b141d64a190f30cbaf /client/src/sass/include | |
parent | c2faa073d113f410275021ed4de4b60fef118c13 (diff) | |
download | PeerTube-93c728a25a87cf6dae5fc49d42d6af52ff7f7ff2.tar.gz PeerTube-93c728a25a87cf6dae5fc49d42d6af52ff7f7ff2.tar.zst PeerTube-93c728a25a87cf6dae5fc49d42d6af52ff7f7ff2.zip |
Replace all glyphicon icons
Diffstat (limited to 'client/src/sass/include')
-rw-r--r-- | client/src/sass/include/_icons.scss | 58 | ||||
-rw-r--r-- | client/src/sass/include/_mixins.scss | 39 |
2 files changed, 58 insertions, 39 deletions
diff --git a/client/src/sass/include/_icons.scss b/client/src/sass/include/_icons.scss new file mode 100644 index 000000000..5d8a312db --- /dev/null +++ b/client/src/sass/include/_icons.scss | |||
@@ -0,0 +1,58 @@ | |||
1 | @use '_variables' as *; | ||
2 | |||
3 | @mixin chevron ($size, $border-width) { | ||
4 | border-style: solid; | ||
5 | border-width: $border-width $border-width 0 0; | ||
6 | content: ''; | ||
7 | display: inline-block; | ||
8 | transform: rotate(-45deg); | ||
9 | height: $size; | ||
10 | width: $size; | ||
11 | position: relative; | ||
12 | } | ||
13 | |||
14 | @mixin chevron-right ($size, $border-width) { | ||
15 | @include chevron($size, $border-width); | ||
16 | |||
17 | left: 0; | ||
18 | transform: rotate(45deg); | ||
19 | } | ||
20 | |||
21 | @mixin chevron-down ($size, $border-width) { | ||
22 | @include chevron($size, $border-width); | ||
23 | |||
24 | bottom: 0.15em; | ||
25 | transform: rotate(135deg); | ||
26 | } | ||
27 | |||
28 | @mixin chevron-up ($size, $border-width) { | ||
29 | @include chevron($size, $border-width); | ||
30 | |||
31 | top: 0.15em; | ||
32 | transform: rotate(-45deg); | ||
33 | } | ||
34 | |||
35 | @mixin chevron-left ($size, $border-width) { | ||
36 | @include chevron($size, $border-width); | ||
37 | |||
38 | left: 0.25em; | ||
39 | transform: rotate(-135deg); | ||
40 | } | ||
41 | |||
42 | // --------------------------------------------------------------------------- | ||
43 | |||
44 | @mixin arrow-up ($size) { | ||
45 | width: 0; | ||
46 | height: 0; | ||
47 | border-left: $size solid transparent; | ||
48 | border-right: $size solid transparent; | ||
49 | border-bottom: $size solid pvar(--mainForegroundColor); | ||
50 | } | ||
51 | |||
52 | @mixin arrow-down ($size) { | ||
53 | width: 0; | ||
54 | height: 0; | ||
55 | border-left: $size solid transparent; | ||
56 | border-right: $size solid transparent; | ||
57 | border-top: $size solid pvar(--mainForegroundColor); | ||
58 | } | ||
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index da216b00f..22c3b2a2f 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -562,45 +562,6 @@ | |||
562 | } | 562 | } |
563 | } | 563 | } |
564 | 564 | ||
565 | @mixin chevron ($size, $border-width) { | ||
566 | border-style: solid; | ||
567 | border-width: $border-width $border-width 0 0; | ||
568 | content: ''; | ||
569 | display: inline-block; | ||
570 | transform: rotate(-45deg); | ||
571 | height: $size; | ||
572 | width: $size; | ||
573 | position: relative; | ||
574 | } | ||
575 | |||
576 | @mixin chevron-right ($size, $border-width) { | ||
577 | @include chevron($size, $border-width); | ||
578 | |||
579 | left: 0; | ||
580 | transform: rotate(45deg); | ||
581 | } | ||
582 | |||
583 | @mixin chevron-down ($size, $border-width) { | ||
584 | @include chevron($size, $border-width); | ||
585 | |||
586 | bottom: 0.15em; | ||
587 | transform: rotate(135deg); | ||
588 | } | ||
589 | |||
590 | @mixin chevron-up ($size, $border-width) { | ||
591 | @include chevron($size, $border-width); | ||
592 | |||
593 | top: 0.15em; | ||
594 | transform: rotate(-45deg); | ||
595 | } | ||
596 | |||
597 | @mixin chevron-left ($size, $border-width) { | ||
598 | @include chevron($size, $border-width); | ||
599 | |||
600 | left: 0.25em; | ||
601 | transform: rotate(-135deg); | ||
602 | } | ||
603 | |||
604 | @mixin in-content-small-title { | 565 | @mixin in-content-small-title { |
605 | text-transform: uppercase; | 566 | text-transform: uppercase; |
606 | color: pvar(--mainColor); | 567 | color: pvar(--mainColor); |