Browse Source

style: tag add $tag-font-size

richard1015 4 years ago
parent
commit
6435d0d1ce
2 changed files with 3 additions and 2 deletions
  1. 1 1
      src/packages/__VUE/tag/index.scss
  2. 2 1
      src/packages/styles/variables.scss

+ 1 - 1
src/packages/__VUE/tag/index.scss

@@ -2,7 +2,7 @@
   padding: 0 4px;
   padding: 0 4px;
   display: inline-flex;
   display: inline-flex;
   align-items: center;
   align-items: center;
-  font-size: 12px;
+  font-size: $tag-font-size;
   &--default {
   &--default {
     color: $tag-default-color;
     color: $tag-default-color;
     background: $tag-default-background-color;
     background: $tag-default-background-color;

+ 2 - 1
src/packages/styles/variables.scss

@@ -287,6 +287,7 @@ $noticeBar-left-icon-width: 16px !default;
 $noticeBar-right-icon-width: 16px !default;
 $noticeBar-right-icon-width: 16px !default;
 
 
 //tag
 //tag
+$tag-font-size: 12px !default;
 $tag-default-background-color: #000000 !default;
 $tag-default-background-color: #000000 !default;
 $tag-primary-background-color: #3460fa !default;
 $tag-primary-background-color: #3460fa !default;
 $tag-success-background-color: #4fc08d !default;
 $tag-success-background-color: #4fc08d !default;
@@ -297,7 +298,7 @@ $tag-danger-background-color: linear-gradient(
   rgba(242, 77, 12, 1) 100%
   rgba(242, 77, 12, 1) 100%
 ) !default;
 ) !default;
 $tag-warning-background-color: #f3812e !default;
 $tag-warning-background-color: #f3812e !default;
-$tag-default-color: #ffffff;
+$tag-default-color: #ffffff !default;
 $tag-border-width: 1px !default;
 $tag-border-width: 1px !default;
 
 
 $tag-plain-background-color: #fff !default;
 $tag-plain-background-color: #fff !default;