Summary Files Commits Branches @commit @diff @stats
path: root / src / buttons.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/buttons.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, 6 insertions, 4 deletions
-rw-r--r--src/buttons.less10
diff --git a/src/buttons.less b/src/buttons.less
index 6adbc19..3f0900a 100644
--- a/src/buttons.less
+++ b/src/buttons.less
@@ -5,6 +5,7 @@
border: .1rem solid @core-color;
border-radius: @border-radius;
color: @core-link-color;
+ .control-transition();
cursor: pointer;
display: inline-block;
font-size: 1.4rem;
@@ -19,6 +20,7 @@
white-space: nowrap;
&:focus {
background: lighten(@core-secondary-color, 1%);
+ .control-shadow();
}
&:hover {
background: @core-color;
@@ -69,12 +71,10 @@
color: @core-link-color;
&:focus,
&:hover {
- background: fade(@core-border-color, 25%);
color: darken(@core-link-color, 15%);
}
&:active,
&.active {
- background: fade(@core-border-color, 50%);
color: darken(@core-link-color, 25%);
}
}
@@ -109,10 +109,12 @@
font-family: sans-serif;
height: 2rem;
line-height: 1.8rem;
- margin-left: .4rem;
+ margin-left: .2rem;
+ margin-right: -.4rem;
opacity: .45;
- padding: 0;
+ padding: 0 .4rem;
text-decoration: none;
+ width: 2rem;
&:hover {
opacity: .85;