diff options
Diffstat (limited to 'client/src/sass')
-rw-r--r-- | client/src/sass/bootstrap.scss | 20 | ||||
-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 | ||||
-rw-r--r-- | client/src/sass/include/_bootstrap-variables.scss | 1 | ||||
-rw-r--r-- | client/src/sass/include/_miniature.scss | 2 | ||||
-rw-r--r-- | client/src/sass/include/_mixins.scss | 19 | ||||
-rw-r--r-- | client/src/sass/ng-select.scss | 3 |
8 files changed, 61 insertions, 56 deletions
diff --git a/client/src/sass/bootstrap.scss b/client/src/sass/bootstrap.scss index 4d956d652..d04652184 100644 --- a/client/src/sass/bootstrap.scss +++ b/client/src/sass/bootstrap.scss | |||
@@ -15,6 +15,7 @@ | |||
15 | @import 'bootstrap/scss/grid'; | 15 | @import 'bootstrap/scss/grid'; |
16 | @import 'bootstrap/scss/forms'; | 16 | @import 'bootstrap/scss/forms'; |
17 | @import 'bootstrap/scss/buttons'; | 17 | @import 'bootstrap/scss/buttons'; |
18 | @import 'bootstrap/scss/transitions'; | ||
18 | @import 'bootstrap/scss/dropdown'; | 19 | @import 'bootstrap/scss/dropdown'; |
19 | @import 'bootstrap/scss/button-group'; | 20 | @import 'bootstrap/scss/button-group'; |
20 | @import 'bootstrap/scss/nav'; | 21 | @import 'bootstrap/scss/nav'; |
@@ -203,7 +204,6 @@ body { | |||
203 | display: flex !important; | 204 | display: flex !important; |
204 | align-items: center; | 205 | align-items: center; |
205 | height: 30px !important; | 206 | height: 30px !important; |
206 | padding: 10px 15px !important; | ||
207 | } | 207 | } |
208 | 208 | ||
209 | .nav.nav-pills { | 209 | .nav.nav-pills { |
@@ -260,19 +260,6 @@ body { | |||
260 | border-color: #dee2e6; | 260 | border-color: #dee2e6; |
261 | } | 261 | } |
262 | 262 | ||
263 | .collapse-transition { | ||
264 | // Animation when we show/hide the filters | ||
265 | transition: max-height 0.3s; | ||
266 | display: block !important; | ||
267 | overflow: hidden !important; | ||
268 | max-height: 0; | ||
269 | |||
270 | &.show { | ||
271 | max-height: 1500px; | ||
272 | overflow: inherit !important; | ||
273 | } | ||
274 | } | ||
275 | |||
276 | .accordion-button { | 263 | .accordion-button { |
277 | font-size: 18px; | 264 | font-size: 18px; |
278 | 265 | ||
@@ -389,3 +376,8 @@ body { | |||
389 | display: none; | 376 | display: none; |
390 | } | 377 | } |
391 | } | 378 | } |
379 | |||
380 | .text-truncate { | ||
381 | // Prevent invalid height in parent: https://stackoverflow.com/a/22425601 | ||
382 | vertical-align: top; | ||
383 | } | ||
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'; | ||
diff --git a/client/src/sass/include/_bootstrap-variables.scss b/client/src/sass/include/_bootstrap-variables.scss index ca4a835f9..47ebe685c 100644 --- a/client/src/sass/include/_bootstrap-variables.scss +++ b/client/src/sass/include/_bootstrap-variables.scss | |||
@@ -41,6 +41,7 @@ $input-focus-bg: pvar(--inputBackgroundColor); | |||
41 | $input-btn-focus-width: 0; | 41 | $input-btn-focus-width: 0; |
42 | $input-btn-focus-color: inherit; | 42 | $input-btn-focus-color: inherit; |
43 | $input-focus-border-color: #ced4da; | 43 | $input-focus-border-color: #ced4da; |
44 | $input-focus-box-shadow: 0 0 0 0.25rem pvar(--mainColorLightest); | ||
44 | 45 | ||
45 | $input-group-addon-color: pvar(--mainForegroundColor); | 46 | $input-group-addon-color: pvar(--mainForegroundColor); |
46 | $input-group-addon-bg: pvar(--greyBackgroundColor); | 47 | $input-group-addon-bg: pvar(--greyBackgroundColor); |
diff --git a/client/src/sass/include/_miniature.scss b/client/src/sass/include/_miniature.scss index a1b963400..eb77f2c3d 100644 --- a/client/src/sass/include/_miniature.scss +++ b/client/src/sass/include/_miniature.scss | |||
@@ -2,9 +2,9 @@ | |||
2 | @use '_mixins' as *; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | @mixin miniature-name { | 4 | @mixin miniature-name { |
5 | @include ellipsis-multiline(1.1em, 2); | ||
6 | @include peertube-word-wrap(false); | 5 | @include peertube-word-wrap(false); |
7 | 6 | ||
7 | font-size: 1.1em; | ||
8 | transition: color 0.2s; | 8 | transition: color 0.2s; |
9 | font-weight: $font-semibold; | 9 | font-weight: $font-semibold; |
10 | color: pvar(--mainForegroundColor); | 10 | color: pvar(--mainForegroundColor); |
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss index cafe830fe..1ce584f9b 100644 --- a/client/src/sass/include/_mixins.scss +++ b/client/src/sass/include/_mixins.scss | |||
@@ -8,13 +8,16 @@ | |||
8 | &:focus, | 8 | &:focus, |
9 | &:active { | 9 | &:active { |
10 | text-decoration: none !important; | 10 | text-decoration: none !important; |
11 | } | ||
12 | |||
13 | &:focus:not(.focus-visible) { | ||
11 | outline: none !important; | 14 | outline: none !important; |
12 | } | 15 | } |
13 | } | 16 | } |
14 | 17 | ||
15 | @mixin disable-outline { | 18 | @mixin disable-outline { |
16 | &:focus:not(.focus-visible) { | 19 | &:focus:not(.focus-visible) { |
17 | outline: none; | 20 | outline: none !important; |
18 | } | 21 | } |
19 | } | 22 | } |
20 | 23 | ||
@@ -24,20 +27,6 @@ | |||
24 | text-overflow: ellipsis; | 27 | text-overflow: ellipsis; |
25 | } | 28 | } |
26 | 29 | ||
27 | @mixin ellipsis-multiline($font-size: 16px, $number-of-lines: 2, $line-height: $font-size) { | ||
28 | display: block; | ||
29 | /* Fallback for non-webkit */ | ||
30 | display: -webkit-box; /* stylelint-disable-line value-no-vendor-prefix */ | ||
31 | -webkit-line-clamp: $number-of-lines; | ||
32 | -webkit-box-orient: vertical; | ||
33 | /* Fallback for non-webkit */ | ||
34 | font-size: $font-size; | ||
35 | line-height: $line-height; | ||
36 | overflow: hidden; | ||
37 | text-overflow: ellipsis; | ||
38 | max-height: $font-size * $number-of-lines; | ||
39 | } | ||
40 | |||
41 | @mixin muted { | 30 | @mixin muted { |
42 | color: pvar(--greyForegroundColor) !important; | 31 | color: pvar(--greyForegroundColor) !important; |
43 | } | 32 | } |
diff --git a/client/src/sass/ng-select.scss b/client/src/sass/ng-select.scss index a9455b38b..4c7258232 100644 --- a/client/src/sass/ng-select.scss +++ b/client/src/sass/ng-select.scss | |||
@@ -41,8 +41,7 @@ $ng-select-input-text: pvar(--mainForegroundColor); | |||
41 | 41 | ||
42 | &.ng-select-focused { | 42 | &.ng-select-focused { |
43 | &:not(.ng-select-opened) > .ng-select-container { | 43 | &:not(.ng-select-opened) > .ng-select-container { |
44 | border-color: #ccc !important; | 44 | border-color: $ng-select-border !important; |
45 | box-shadow: none !important; | ||
46 | } | 45 | } |
47 | } | 46 | } |
48 | 47 | ||