Skip to content

Commit

Permalink
fix(next): fix scss variables
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Apr 27, 2021
1 parent 645666d commit c99a380
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion packages/next/src/array-base/main.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '~@alifd/next/lib/core/index-noreset.scss';

$array-base-prefix-cls: #{$css-prefix}+"formily-array-base";
$array-base-prefix-cls: '#{$css-prefix}formily-array-base';


.#{$array-base-prefix-cls}-remove {
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/array-cards/main.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '~@alifd/next/lib/core/index-noreset.scss';

$array-cards-prefix-cls: #{$css-prefix}+"formily-array-cards";
$array-cards-prefix-cls: '#{$css-prefix}formily-array-cards';

.#{$css-prefix}empty {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/array-items/main.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import '~@alifd/next/lib/core/index-noreset.scss';


$array-items-prefix-cls: #{$css-prefix}+"formily-array-items";
$array-items-prefix-cls: '#{$css-prefix}formily-array-items';

.#{$array-items-prefix-cls} {
.#{$css-prefix}form-item {
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/array-table/main.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '~@alifd/next/lib/core/index-noreset.scss';

$array-table-prefix-cls: #{$css-prefix}+"formily-array-table";
$array-table-prefix-cls: '#{$css-prefix}formily-array-table';

.#{$array-table-prefix-cls} {

Expand Down
4 changes: 2 additions & 2 deletions packages/next/src/editable/main.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import '~@alifd/next/lib/core/index-noreset.scss';

$editable-prefix-cls: #{$css-prefix}+"formily-editable";
$editable-popover-prefix-cls: #{$css-prefix}+"formily-editable-popover";
$editable-prefix-cls: '#{$css-prefix}formily-editable';
$editable-popover-prefix-cls: '#{$css-prefix}formily-editable-popover';

.#{$editable-prefix-cls} {
cursor: pointer;
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/form-button-group/main.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import '~@alifd/next/lib/core/index-noreset.scss';


$btn-group-prefix-cls: #{$css-prefix}+"formily-button-group";
$btn-group-prefix-cls: '#{$css-prefix}formily-button-group';

.#{$btn-group-prefix-cls}-sticky {
padding: 10px 0;
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/form-grid/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '~@alifd/next/lib/core/index-noreset.scss';

$form-grid-prefix-cls: #{$css-prefix}+"formily-grid";
$form-grid-prefix-cls: '#{$css-prefix}formily-grid';

.#{$form-grid-prefix-cls}-layout {
display: grid;
Expand Down
5 changes: 3 additions & 2 deletions packages/next/src/preview-text/main.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
@import '~@alifd/next/lib/core/index-noreset.scss';

$form-text-prefix-cls: #{$css-prefix}+"form-text";
$form-text-prefix-cls: '#{$css-prefix}form-text';

.#{$form-text-prefix-cls} {
font-size: 14px;
font-weight: 400;
.#{$css-prefix}tag{

.#{$css-prefix}tag {
margin-right: 4px;
}
}
2 changes: 1 addition & 1 deletion packages/next/src/upload/main.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@import '~@alifd/next/lib/core/index-noreset.scss';

$upload-prefix-cls: #{$css-prefix}+"upload";
$upload-prefix-cls: '#{$css-prefix}upload';

.#{$upload-prefix-cls}-list {
margin-top: 4px;
Expand Down

0 comments on commit c99a380

Please sign in to comment.