Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit25bcc1b78a000e2d0803dca8df5f3db5d20c17e3 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-03-11 18:24:11 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-03-11 18:24:11 +0800
Files24c67bcfd5cd27b1f320babed3b9c4f0e5b6934b /src
Spectre-Dark-Gruvbox-25bcc1b78a000e2d0803dca8df5f3db5d20c17e3.tar
Spectre-Dark-Gruvbox-25bcc1b78a000e2d0803dca8df5f3db5d20c17e3.tar.gz
Spectre-Dark-Gruvbox-25bcc1b78a000e2d0803dca8df5f3db5d20c17e3.zip
Parent8952210ff0063d1c7a10a8bbe837c7c73e4e3648 (diff)
add button sizes small and large
1 files changed, 24 insertions, 2 deletions
-rw-r--r--src/buttons.less26
diff --git a/src/buttons.less b/src/buttons.less
index ae5b7d7..6654c47 100644
--- a/src/buttons.less
+++ b/src/buttons.less
@@ -2,16 +2,17 @@
.btn,
button {
display: inline-block;
+ height: 3.2rem;
padding: .7rem 1.5rem;
+ border: .1rem solid @core-color;
background-color: transparent;
border-radius: 3px;
color: @core-color;
font-size: 1.4rem;
- line-height: 1.2;
+ line-height: 1.6rem;
text-align: center;
text-decoration: none;
vertical-align: middle;
- border: 1px solid @core-color;
white-space: nowrap;
cursor: pointer;
user-select: none;
@@ -57,6 +58,7 @@ button {
cursor: default;
}
+ // Button Primary
&.btn-primary {
color: #fff;
border-color: @core-color;
@@ -84,6 +86,7 @@ button {
}
}
+ // Button Link
&.btn-link {
color: @core-color;
border-color: transparent;
@@ -99,5 +102,24 @@ button {
}
}
+ // Button Small
+ &.btn-sm {
+ height: 2.4rem;
+ border-radius: 2px;
+ font-size: 1.2rem;
+ line-height: 1.4rem;
+ padding: .4rem 1rem;
+ }
+
+ // Button Large
+ &.btn-lg {
+ height: 4.2rem;
+ border-radius: 4px;
+ font-size: 1.8rem;
+ line-height: 2rem;
+ padding: 1rem 1.8rem;
+ }
+
// TODO: Button with icons
+ // TODO: Button groups
} \ No newline at end of file