diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-08-05 00:50:07 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-08-11 09:03:39 +0200 |
commit | 02c01341f4dae30ec6b81fcb644952393d73c4a8 (patch) | |
tree | aca3f2b118bb123457fd38724be68fe877504c75 /client/src/sass/ng-select.scss | |
parent | 766d13b4470de02d3d7bec94188260b89a356399 (diff) | |
download | PeerTube-02c01341f4dae30ec6b81fcb644952393d73c4a8.tar.gz PeerTube-02c01341f4dae30ec6b81fcb644952393d73c4a8.tar.zst PeerTube-02c01341f4dae30ec6b81fcb644952393d73c4a8.zip |
add ng-select for templatable select options
- create select-tags component to replace ngx-chips
- create select-options to factorize option selection in forms
- create select-channel to simplify channel selection
- refactor tags validation
Diffstat (limited to 'client/src/sass/ng-select.scss')
-rw-r--r-- | client/src/sass/ng-select.scss | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/client/src/sass/ng-select.scss b/client/src/sass/ng-select.scss new file mode 100644 index 000000000..f836e203c --- /dev/null +++ b/client/src/sass/ng-select.scss | |||
@@ -0,0 +1,29 @@ | |||
1 | @import '_variables'; | ||
2 | |||
3 | $ng-select-highlight: #f2690d; | ||
4 | // $ng-select-primary-text: #333 !default; | ||
5 | // $ng-select-disabled-text: #f9f9f9 !default; | ||
6 | // $ng-select-border: #ccc !default; | ||
7 | // $ng-select-border-radius: 4px !default; | ||
8 | // $ng-select-bg: #ffffff !default; | ||
9 | // $ng-select-selected: lighten($ng-select-highlight, 46) !default; | ||
10 | // $ng-select-marke d: lighten($ng-select-highlight, 48) !default; | ||
11 | $ng-select-box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); | ||
12 | // $ng-select-placeholder: lighten($ng-select-primary-text, 40) !default; | ||
13 | $ng-select-height: 30px; | ||
14 | // $ng-select-value-padding-left: 10px !default; | ||
15 | // $ng-select-value-font-size: 0.9em !default; | ||
16 | |||
17 | @import "~@ng-select/ng-select/scss/default.theme.scss"; | ||
18 | |||
19 | .ng-input { | ||
20 | font-size: .9em; | ||
21 | } | ||
22 | |||
23 | .ng-select { | ||
24 | &.ng-select-focused { | ||
25 | &:not(.ng-select-opened) > .ng-select-container { | ||
26 | border-color: #ccc !important; | ||
27 | } | ||
28 | } | ||
29 | } | ||