Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commita96cdce493cd6a31ae351cd978868e814dda1d67 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-03-14 00:14:57 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-03-14 00:14:57 +0800
Filesd1031650aa2e36d852f700b519738a2d52bfde8c /src
Spectre-Dark-Gruvbox-a96cdce493cd6a31ae351cd978868e814dda1d67.tar
Spectre-Dark-Gruvbox-a96cdce493cd6a31ae351cd978868e814dda1d67.tar.gz
Spectre-Dark-Gruvbox-a96cdce493cd6a31ae351cd978868e814dda1d67.zip
Parent1364eadd2c09215fdf77631893319d1066b1be9b (diff)
add label delete button
2 files changed, 42 insertions, 1 deletions
-rw-r--r--src/buttons.less40
-rw-r--r--src/labels.less3
diff --git a/src/buttons.less b/src/buttons.less
index b3cf357..e04aaa9 100644
--- a/src/buttons.less
+++ b/src/buttons.less
@@ -126,6 +126,46 @@ button {
display: block;
}
+ // Button Clear
+ &.btn-clear {
+ width: 1.4rem;
+ height: 1.4rem;
+ padding: 0;
+ margin: .1rem -.2rem .1rem .2rem;
+ border: 0;
+ border-radius: .7rem;
+ vertical-align: top;
+ background-color: rgba(0, 0, 0, .15);
+ transform: rotate(-45deg);
+
+ &:hover {
+ background-color: rgba(0, 0, 0, .35);
+ }
+
+ &::before,
+ &::after {
+ content: "";
+ display: block;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ background-color: #fff;
+ }
+
+ &::before {
+ width: .8rem;
+ height: .2rem;
+ margin-left: -.4rem;
+ margin-top: -.1rem;
+ }
+ &::after {
+ width: .2rem;
+ height: .8rem;
+ margin-left: -.1rem;
+ margin-top: -.4rem;
+ }
+ }
+
// TODO: Button with icons
// TODO: Button groups
} \ No newline at end of file
diff --git a/src/labels.less b/src/labels.less
index e586680..57995ee 100644
--- a/src/labels.less
+++ b/src/labels.less
@@ -17,7 +17,8 @@
}
&.label-lg {
- padding: .4rem .8rem;
+ padding: .2rem .8rem;
font-size: 1.4rem;
+ line-height: 1.6rem;
}
} \ No newline at end of file