diff options
author | Chocobozzz <me@florianbigard.com> | 2023-01-19 09:29:47 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-01-19 13:53:40 +0100 |
commit | 9589907c89d29a6c0acd52c8cb789af9f93ce9af (patch) | |
tree | f1d238e6144231bbfbed5614e05a21eca8aa6fc2 /client/src/sass | |
parent | b379759f55a35837b803a3b988674972db2903d1 (diff) | |
download | PeerTube-9589907c89d29a6c0acd52c8cb789af9f93ce9af.tar.gz PeerTube-9589907c89d29a6c0acd52c8cb789af9f93ce9af.tar.zst PeerTube-9589907c89d29a6c0acd52c8cb789af9f93ce9af.zip |
Implement signup approval in client
Diffstat (limited to 'client/src/sass')
-rw-r--r-- | client/src/sass/class-helpers.scss | 6 | ||||
-rw-r--r-- | client/src/sass/include/_badges.scss | 4 | ||||
-rw-r--r-- | client/src/sass/include/_fonts.scss | 4 | ||||
-rw-r--r-- | client/src/sass/include/_mixins.scss | 36 |
4 files changed, 24 insertions, 26 deletions
diff --git a/client/src/sass/class-helpers.scss b/client/src/sass/class-helpers.scss index bc965331a..feb3a6de2 100644 --- a/client/src/sass/class-helpers.scss +++ b/client/src/sass/class-helpers.scss | |||
@@ -284,3 +284,9 @@ label + .form-group-description { | |||
284 | border: 2px solid pvar(--mainColorLightest); | 284 | border: 2px solid pvar(--mainColorLightest); |
285 | } | 285 | } |
286 | } | 286 | } |
287 | |||
288 | // --------------------------------------------------------------------------- | ||
289 | |||
290 | .chip { | ||
291 | @include chip; | ||
292 | } | ||
diff --git a/client/src/sass/include/_badges.scss b/client/src/sass/include/_badges.scss index 4bc70d4a9..7efd2fb81 100644 --- a/client/src/sass/include/_badges.scss +++ b/client/src/sass/include/_badges.scss | |||
@@ -9,6 +9,10 @@ | |||
9 | font-weight: $font-semibold; | 9 | font-weight: $font-semibold; |
10 | line-height: 1.1; | 10 | line-height: 1.1; |
11 | 11 | ||
12 | &.badge-fs-normal { | ||
13 | font-size: 100%; | ||
14 | } | ||
15 | |||
12 | &.badge-primary { | 16 | &.badge-primary { |
13 | color: pvar(--mainBackgroundColor); | 17 | color: pvar(--mainBackgroundColor); |
14 | background-color: pvar(--mainColor); | 18 | background-color: pvar(--mainColor); |
diff --git a/client/src/sass/include/_fonts.scss b/client/src/sass/include/_fonts.scss index e5a40af34..514261d01 100644 --- a/client/src/sass/include/_fonts.scss +++ b/client/src/sass/include/_fonts.scss | |||
@@ -15,7 +15,3 @@ | |||
15 | font-display: swap; | 15 | font-display: swap; |
16 | src: url('../fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2') format('woff2'); | 16 | src: url('../fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2') format('woff2'); |
17 | } | 17 | } |
18 | |||
19 | @mixin muted { | ||
20 | color: pvar(--greyForegroundColor) !important; | ||
21 | } | ||
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index b5ccb6598..8816437d9 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -36,6 +36,10 @@ | |||
36 | max-height: $font-size * $number-of-lines; | 36 | max-height: $font-size * $number-of-lines; |
37 | } | 37 | } |
38 | 38 | ||
39 | @mixin muted { | ||
40 | color: pvar(--greyForegroundColor) !important; | ||
41 | } | ||
42 | |||
39 | @mixin fade-text ($fade-after, $background-color) { | 43 | @mixin fade-text ($fade-after, $background-color) { |
40 | position: relative; | 44 | position: relative; |
41 | overflow: hidden; | 45 | overflow: hidden; |
@@ -791,51 +795,39 @@ | |||
791 | } | 795 | } |
792 | 796 | ||
793 | @mixin chip { | 797 | @mixin chip { |
794 | --chip-radius: 5rem; | 798 | --avatar-size: 1.2rem; |
795 | --chip-padding: .2rem .4rem; | ||
796 | $avatar-height: 1.2rem; | ||
797 | 799 | ||
798 | align-items: center; | ||
799 | border-radius: var(--chip-radius); | ||
800 | display: inline-flex; | 800 | display: inline-flex; |
801 | font-size: 90%; | ||
802 | color: pvar(--mainForegroundColor); | 801 | color: pvar(--mainForegroundColor); |
803 | height: $avatar-height; | 802 | height: var(--avatar-size); |
804 | line-height: 1rem; | ||
805 | margin: .1rem; | ||
806 | max-width: 320px; | 803 | max-width: 320px; |
807 | overflow: hidden; | 804 | overflow: hidden; |
808 | padding: var(--chip-padding); | ||
809 | text-decoration: none; | 805 | text-decoration: none; |
810 | text-overflow: ellipsis; | 806 | text-overflow: ellipsis; |
811 | vertical-align: middle; | 807 | vertical-align: middle; |
812 | white-space: nowrap; | 808 | white-space: nowrap; |
813 | 809 | ||
814 | &.rectangular { | ||
815 | --chip-radius: .2rem; | ||
816 | --chip-padding: .2rem .3rem; | ||
817 | } | ||
818 | |||
819 | my-actor-avatar { | 810 | my-actor-avatar { |
820 | @include margin-left(-.4rem); | ||
821 | @include margin-right(.2rem); | 811 | @include margin-right(.2rem); |
812 | |||
813 | border-radius: 5rem; | ||
814 | width: var(--avatar-size); | ||
815 | height: var(--avatar-size); | ||
822 | } | 816 | } |
823 | 817 | ||
824 | &.two-lines { | 818 | &.two-lines { |
825 | $avatar-height: 2rem; | 819 | --avatar-size: 2rem; |
826 | 820 | ||
827 | height: $avatar-height; | 821 | font-size: 14px; |
822 | line-height: 1rem; | ||
828 | 823 | ||
829 | my-actor-avatar { | 824 | my-actor-avatar { |
830 | display: inline-block; | 825 | display: inline-block; |
831 | } | 826 | } |
832 | 827 | ||
833 | div { | 828 | > div { |
834 | margin: 0 .1rem; | ||
835 | |||
836 | display: flex; | 829 | display: flex; |
837 | flex-direction: column; | 830 | flex-direction: column; |
838 | height: $avatar-height; | ||
839 | justify-content: center; | 831 | justify-content: center; |
840 | } | 832 | } |
841 | } | 833 | } |