Skip to content

Commit

Permalink
fix: fix style(close #2530)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenguzhen87 committed Jul 3, 2023
1 parent 67a801b commit d2ef0f1
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/web-vue/components/button/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@
}
}

body[arco-theme='dark'] {
@{arco-theme-tag}@{acro-theme-dark} {
.@{btn-prefix-cls}-primary.@{btn-prefix-cls}-disabled {
color: rgba(255, 255, 255, 0.3);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/web-vue/components/card/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
}

// dark mode
@{arco-theme-tag}[arco-theme='dark'] {
@{arco-theme-tag}@{acro-theme-dark} {
.@{card-prefix-cls}-grid-hoverable:hover::before,
.@{card-prefix-cls}-hoverable:hover {
box-shadow: 0 4px 10px @card-color-box-shadow_dark;
Expand Down
2 changes: 1 addition & 1 deletion packages/web-vue/components/carousel/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
}
}

@{arco-theme-tag}[arco-theme='dark'] {
@{arco-theme-tag}@{acro-theme-dark} {
.@{carousel-prefix-cls}-arrow > div {
background-color: rgba(@dark-gray-1, 0.3);

Expand Down
2 changes: 1 addition & 1 deletion packages/web-vue/components/radio/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@

// dark mode

@{arco-theme-tag}[arco-theme='dark'] {
@{arco-theme-tag}@{acro-theme-dark} {
.@{radio-prefix-cls}-button.@{radio-prefix-cls}-checked,
.@{radio-prefix-cls}-button:not(.@{radio-prefix-cls}-disabled):hover {
background-color: var(~'@{arco-cssvars-prefix}-color-fill-3');
Expand Down
2 changes: 1 addition & 1 deletion packages/web-vue/components/style/color/css-variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
@{arco-cssvars-prefix}-link-10: get-var-str(~'@{link-10}');
}

@{arco-theme-tag}[arco-theme='dark'] {
@{arco-theme-tag}@{acro-theme-dark} {
@{arco-cssvars-prefix}-red-1: get-rgb-str(@dark-red-1);
@{arco-cssvars-prefix}-red-2: get-rgb-str(@dark-red-2);
@{arco-cssvars-prefix}-red-3: get-rgb-str(@dark-red-3);
Expand Down
2 changes: 1 addition & 1 deletion packages/web-vue/components/style/theme/css-variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
@{arco-cssvars-prefix}-color-mask-bg: @mask-color-bg;
}

@{arco-theme-tag}[arco-theme='dark'] {
@{arco-theme-tag}@{acro-theme-dark} {
@{arco-cssvars-prefix}-color-white: @dark-color-white;
@{arco-cssvars-prefix}-color-black: @dark-color-black;
@{arco-cssvars-prefix}-color-border: @dark-color-border;
Expand Down
2 changes: 1 addition & 1 deletion packages/web-vue/components/style/theme/global.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import '../color/colors.less';

@arco-theme-tag: body; // css 变量定义的选择器

@acro-theme-dark: ~"[@{prefix}-theme='dark']";
@arco-vars-prefix: ~''; // css 变量的前缀

// --arco-color-white or --color-white
Expand Down
6 changes: 3 additions & 3 deletions packages/web-vue/components/style/theme/index.less
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
@import './global.less';
@import './component.less';

@prefix: arco;

@font-family: Inter, "-apple-system", BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "noto sans", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
@font-family: Inter, '-apple-system', BlinkMacSystemFont, 'PingFang SC',
'Hiragino Sans GB', 'noto sans', 'Microsoft YaHei', 'Helvetica Neue',
Helvetica, Arial, sans-serif;

@code-family: Consolas, Menlo;

Expand Down
2 changes: 1 addition & 1 deletion packages/web-vue/components/tabs/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@

@import './vertical.less';

@{arco-theme-tag}[arco-theme='dark'] {
@{arco-theme-tag}@{acro-theme-dark} {
.@{tabs-prefix-cls}-nav-type-capsule {
.@{tabs-prefix-cls}-tab {
&-active {
Expand Down
2 changes: 1 addition & 1 deletion packages/web-vue/components/tag/style/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
}
}

@{arco-theme-tag}[arco-theme='dark'] {
@{arco-theme-tag}@{acro-theme-dark} {
.@{tag-prefix-cls}-checked {
color: rgba(255, 255, 255, 0.9);
}
Expand Down

0 comments on commit d2ef0f1

Please sign in to comment.