diff options
author | Chocobozzz <me@florianbigard.com> | 2021-05-27 18:25:00 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-28 10:54:02 +0200 |
commit | 8cbc40b2fe9d36ef0505b9441276ca561342e9e9 (patch) | |
tree | 5777288d76c0926f5b4484e2689d0fe741462a36 /client/src/app/shared/shared-forms | |
parent | fa12eacc014aae8094d108634371640f2695bf9f (diff) | |
download | PeerTube-8cbc40b2fe9d36ef0505b9441276ca561342e9e9.tar.gz PeerTube-8cbc40b2fe9d36ef0505b9441276ca561342e9e9.tar.zst PeerTube-8cbc40b2fe9d36ef0505b9441276ca561342e9e9.zip |
Move to sass module
Diffstat (limited to 'client/src/app/shared/shared-forms')
11 files changed, 24 insertions, 23 deletions
diff --git a/client/src/app/shared/shared-forms/advanced-input-filter.component.scss b/client/src/app/shared/shared-forms/advanced-input-filter.component.scss index caa671bc9..07a43761c 100644 --- a/client/src/app/shared/shared-forms/advanced-input-filter.component.scss +++ b/client/src/app/shared/shared-forms/advanced-input-filter.component.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use '_variables'; | 1 | @use '_variables' as *; |
2 | @use '_mixins'; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | input { | 4 | input { |
5 | @include peertube-input-text(250px); | 5 | @include peertube-input-text(250px); |
diff --git a/client/src/app/shared/shared-forms/dynamic-form-field.component.scss b/client/src/app/shared/shared-forms/dynamic-form-field.component.scss index ce5fa7cf5..31bf59edb 100644 --- a/client/src/app/shared/shared-forms/dynamic-form-field.component.scss +++ b/client/src/app/shared/shared-forms/dynamic-form-field.component.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use '_variables'; | 1 | @use '_variables' as *; |
2 | @use '_mixins'; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | input:not([type=submit]) { | 4 | input:not([type=submit]) { |
5 | @include peertube-input-text(340px); | 5 | @include peertube-input-text(340px); |
diff --git a/client/src/app/shared/shared-forms/input-switch.component.scss b/client/src/app/shared/shared-forms/input-switch.component.scss index a5065b669..8ee8a371d 100644 --- a/client/src/app/shared/shared-forms/input-switch.component.scss +++ b/client/src/app/shared/shared-forms/input-switch.component.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use '_variables'; | 1 | @use '_variables' as *; |
2 | @use '_mixins'; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | input { | 4 | input { |
5 | position: absolute; | 5 | position: absolute; |
diff --git a/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss b/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss index 99cd8ec0c..ef4236ebc 100644 --- a/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss +++ b/client/src/app/shared/shared-forms/input-toggle-hidden.component.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use '_variables'; | 1 | @use '_variables' as *; |
2 | @use '_mixins'; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | input { | 4 | input { |
5 | @include peertube-input-text(auto); | 5 | @include peertube-input-text(auto); |
diff --git a/client/src/app/shared/shared-forms/markdown-textarea.component.scss b/client/src/app/shared/shared-forms/markdown-textarea.component.scss index d15fd6cde..0b4872d46 100644 --- a/client/src/app/shared/shared-forms/markdown-textarea.component.scss +++ b/client/src/app/shared/shared-forms/markdown-textarea.component.scss | |||
@@ -1,5 +1,6 @@ | |||
1 | @use '_variables'; | 1 | @use 'sass:math'; |
2 | @use '_mixins'; | 2 | @use '_variables' as *; |
3 | @use '_mixins' as *; | ||
3 | 4 | ||
4 | $nav-preview-tab-height: 30px; | 5 | $nav-preview-tab-height: 30px; |
5 | $base-padding: 15px; | 6 | $base-padding: 15px; |
@@ -124,8 +125,8 @@ $input-border-radius: 3px; | |||
124 | @include padding-right(0); | 125 | @include padding-right(0); |
125 | @include padding-left(0); | 126 | @include padding-left(0); |
126 | 127 | ||
127 | padding-top: #{$nav-preview-vertical-padding / 2}; | 128 | padding-top: math.div($nav-preview-vertical-padding, 2); |
128 | padding-bottom: #{$nav-preview-vertical-padding / 2}; | 129 | padding-bottom: math.div($nav-preview-vertical-padding, 2); |
129 | position: absolute; | 130 | position: absolute; |
130 | background-color: pvar(--mainBackgroundColor); | 131 | background-color: pvar(--mainBackgroundColor); |
131 | width: 100% !important; | 132 | width: 100% !important; |
diff --git a/client/src/app/shared/shared-forms/peertube-checkbox.component.scss b/client/src/app/shared/shared-forms/peertube-checkbox.component.scss index d39b4f3eb..4e384e7e0 100644 --- a/client/src/app/shared/shared-forms/peertube-checkbox.component.scss +++ b/client/src/app/shared/shared-forms/peertube-checkbox.component.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use '_variables'; | 1 | @use '_variables' as *; |
2 | @use '_mixins'; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | .root { | 4 | .root { |
5 | display: flex; | 5 | display: flex; |
diff --git a/client/src/app/shared/shared-forms/preview-upload.component.scss b/client/src/app/shared/shared-forms/preview-upload.component.scss index 96141d1fe..b6cc2f007 100644 --- a/client/src/app/shared/shared-forms/preview-upload.component.scss +++ b/client/src/app/shared/shared-forms/preview-upload.component.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use '_variables'; | 1 | @use '_variables' as *; |
2 | @use '_mixins'; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | .root { | 4 | .root { |
5 | height: auto; | 5 | height: auto; |
diff --git a/client/src/app/shared/shared-forms/reactive-file.component.scss b/client/src/app/shared/shared-forms/reactive-file.component.scss index e766fd780..f8db1aa25 100644 --- a/client/src/app/shared/shared-forms/reactive-file.component.scss +++ b/client/src/app/shared/shared-forms/reactive-file.component.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use '_variables'; | 1 | @use '_variables' as *; |
2 | @use '_mixins'; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | .root { | 4 | .root { |
5 | height: auto; | 5 | height: auto; |
diff --git a/client/src/app/shared/shared-forms/select/select-checkbox.component.scss b/client/src/app/shared/shared-forms/select/select-checkbox.component.scss index 7f512affb..d47c4f9da 100644 --- a/client/src/app/shared/shared-forms/select/select-checkbox.component.scss +++ b/client/src/app/shared/shared-forms/select/select-checkbox.component.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use '_variables'; | 1 | @use '_variables' as *; |
2 | @use '_mixins'; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | ng-select ::ng-deep { | 4 | ng-select ::ng-deep { |
5 | .ng-option { | 5 | .ng-option { |
diff --git a/client/src/app/shared/shared-forms/select/select-shared.component.scss b/client/src/app/shared/shared-forms/select/select-shared.component.scss index 37706d3f5..1e9b60fec 100644 --- a/client/src/app/shared/shared-forms/select/select-shared.component.scss +++ b/client/src/app/shared/shared-forms/select/select-shared.component.scss | |||
@@ -1,5 +1,5 @@ | |||
1 | @use '_variables'; | 1 | @use '_variables' as *; |
2 | @use '_mixins'; | 2 | @use '_mixins' as *; |
3 | 3 | ||
4 | $form-base-input-width: auto; | 4 | $form-base-input-width: auto; |
5 | 5 | ||
diff --git a/client/src/app/shared/shared-forms/timestamp-input.component.scss b/client/src/app/shared/shared-forms/timestamp-input.component.scss index b50657f0b..d2358c027 100644 --- a/client/src/app/shared/shared-forms/timestamp-input.component.scss +++ b/client/src/app/shared/shared-forms/timestamp-input.component.scss | |||
@@ -1,4 +1,4 @@ | |||
1 | @use '_variables'; | 1 | @use '_variables' as *; |
2 | 2 | ||
3 | p-inputmask { | 3 | p-inputmask { |
4 | ::ng-deep input { | 4 | ::ng-deep input { |