Summary Files Commits Branches @commit @diff @stats
path: root / src / chips.less
diff options
context:
space:
mode:
Commitbdc68333d66fca64db3f65a790a11de2d15db958 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-01-23 15:38:53 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-01-23 15:38:53 +0800
Files854c7509281697c4cffaa48ab5963939f3563e7d /src/chips.less
Spectre-Dark-Gruvbox-bdc68333d66fca64db3f65a790a11de2d15db958.tar
Spectre-Dark-Gruvbox-bdc68333d66fca64db3f65a790a11de2d15db958.tar.gz
Spectre-Dark-Gruvbox-bdc68333d66fca64db3f65a790a11de2d15db958.zip
Parent57b1059f46317619baea9896d02695c7c3316040 (diff)
CHG: Cleanup codes and add more focus style
1 files changed, 9 insertions, 9 deletions
-rw-r--r--src/chips.less18
diff --git a/src/chips.less b/src/chips.less
index 11c6ab3..6b48df9 100644
--- a/src/chips.less
+++ b/src/chips.less
@@ -2,7 +2,6 @@
.chip {
align-content: space-around;
align-items: center;
- border: .1rem solid transparent;
border-radius: @border-radius;
display: flex;
list-style: none;
@@ -14,18 +13,25 @@
}
.chip-content {
flex: 1 1 auto;
- padding: 0 1rem;
.text-ellipsis;
+ &:not(:first-child) {
+ padding-left: 1rem;
+ }
+ &:not(:last-child) {
+ padding-right: 1rem;
+ }
}
.chip-action {
flex: 0 0 auto;
}
.chip-title {
font-size: 1.4rem;
+ line-height: 1.6rem;
}
.chip-meta {
color: lighten(@body-font-color, 50%);
font-size: 1.2rem;
+ line-height: 1.6rem;
}
}
@@ -51,16 +57,10 @@
.avatar {
font-size: 1rem;
height: 2rem;
+ margin-right: .4rem;
width: 2rem;
}
- .chip-name {
- .text-ellipsis;
- &:not(:first-child) {
- margin-left: .4rem;
- }
- }
-
.btn-clear {
&::before {
color: currentColor;