Skip to content

Commit

Permalink
feat: 添加 is-samll for wsui-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Apr 4, 2021
1 parent 32855c0 commit ad1046e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
7 changes: 7 additions & 0 deletions __stories__/components/tag.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@
<span class="tippy-tag">Tag1</span>
<span class="tippy-tag">Tag2</span>
</div>

<div class="blank-10"></div>

<div class="is-block">
<span class="tippy-tag is-small">Tag1</span>
<span class="tippy-tag is-small">Tag2</span>
</div>
11 changes: 8 additions & 3 deletions src/components/tag.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.#{$prefix}-tag {
$color: #4e1cc7;
color: $color;
background: lighten($color, 50%);
border:1px dashed lighten($color, 40%);
background: lighten($color, 50%);
border: 1px dashed lighten($color, 40%);
font-family: Menlo, "Dank Mono", Inconsolata, "Operator Mono", Consolas, "Andale Mono WT", "Andale Mono",
"Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono",
"Nimbus Mono L", "Courier New", Courier, monospace;
Expand All @@ -12,7 +12,12 @@
font-size: 14px;
cursor: pointer;
transition: background 0.3s;
&:hover{
&:hover {
background: lighten($color: $color, $amount: 40%);
}

&.is-small {
padding: 0.15em 0.5em;
font-size: 12px;
}
}

0 comments on commit ad1046e

Please sign in to comment.