Summary Files Commits Branches @commit @diff @stats
path: root / src / chips.less
diff options
context:
space:
mode:
Commitf4831f0a2ef077360b03127e3d29504039fde7c3 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-01-07 18:54:23 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-01-07 18:54:23 +0800
Filesbb6e7fa893dad49fc6e5891a53191eb17bc02f5b /src/chips.less
Spectre-Dark-Gruvbox-f4831f0a2ef077360b03127e3d29504039fde7c3.tar
Spectre-Dark-Gruvbox-f4831f0a2ef077360b03127e3d29504039fde7c3.tar.gz
Spectre-Dark-Gruvbox-f4831f0a2ef077360b03127e3d29504039fde7c3.zip
Parent05070ecb4d6bbe772aacc5922c89e9008feec6de (diff)
CHG: Improve all components
1 files changed, 18 insertions, 17 deletions
-rw-r--r--src/chips.less35
diff --git a/src/chips.less b/src/chips.less
index df312cf..11c6ab3 100644
--- a/src/chips.less
+++ b/src/chips.less
@@ -3,7 +3,7 @@
align-content: space-around;
align-items: center;
border: .1rem solid transparent;
- border-radius: .3rem;
+ border-radius: @border-radius;
display: flex;
list-style: none;
margin: 0;
@@ -33,37 +33,38 @@
.chip-sm {
align-items: center;
background: @core-border-color;
- border-radius: .3rem;
+ border-radius: @border-radius;
color: #666;
display: inline-flex;
height: 3rem;
- margin-bottom: .1rem;
- margin-top: .1rem;
+ margin: .1rem .2rem .1rem 0;
max-width: 100%;
- padding: .4rem .8rem;
+ padding: .5rem .7rem;
text-decoration: none;
vertical-align: middle;
- .btn-clear {
- &::before {
- color: currentColor;
- font-size: 1.6rem;
- }
- }
-
&.selected {
background: @core-color;
color: @core-light-color;
}
- .chip-name {
- margin: 0 .4rem;
- .text-ellipsis;
- }
-
.avatar {
font-size: 1rem;
height: 2rem;
width: 2rem;
}
+
+ .chip-name {
+ .text-ellipsis;
+ &:not(:first-child) {
+ margin-left: .4rem;
+ }
+ }
+
+ .btn-clear {
+ &::before {
+ color: currentColor;
+ font-size: 1.6rem;
+ }
+ }
}