Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit3a8a40a1724406ce01581da1be38654526a9ab11 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-11 23:26:43 +0800
Committer
 GitHub <noreply@github.com>
2017-03-11 23:26:43 +0800
Filesbd5fef30b570fb8b3acc32f4c1a2a58b3f395605 /src
Spectre-Dark-Gruvbox-3a8a40a1724406ce01581da1be38654526a9ab11.tar
Spectre-Dark-Gruvbox-3a8a40a1724406ce01581da1be38654526a9ab11.tar.gz
Spectre-Dark-Gruvbox-3a8a40a1724406ce01581da1be38654526a9ab11.zip
Parentbe74a7866efaa33559a6c173c55a008db5be57ab (diff)
Parentd9b4f7b032f058edf7ee1b2964f1b624df2fff5c (diff)
Merge pull request #162 from bricss/feature/enhanced-button-group
feat(enhancement): support for any type of elements (e.g. <a>) in but…
1 files changed, 3 insertions, 3 deletions
-rw-r--r--src/buttons.less6
diff --git a/src/buttons.less b/src/buttons.less
index 5e6fcb8..56f52d1 100644
--- a/src/buttons.less
+++ b/src/buttons.less
@@ -151,15 +151,15 @@
.btn {
flex: 1 0 auto;
- &:first-of-type:not(:last-of-type) {
+ &:first-child:not(:last-child) {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
- &:not(:first-of-type):not(:last-of-type) {
+ &:not(:first-child):not(:last-child) {
border-radius: 0;
margin-left: -.1rem;
}
- &:last-of-type:not(:first-of-type) {
+ &:last-child:not(:first-child) {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
margin-left: -.1rem;