Summary Files Commits Branches @commit @diff @stats
path: root / dist / spectre.css
diff options
context:
space:
mode:
Commit40879a53fdfcea871af4f0cd16060391b9994772 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2016-12-31 19:18:56 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2016-12-31 19:18:56 +0800
Files2bd18d94a805363ed918837b66f8052afc63398e /dist/spectre.css
Spectre-Dark-Gruvbox-40879a53fdfcea871af4f0cd16060391b9994772.tar
Spectre-Dark-Gruvbox-40879a53fdfcea871af4f0cd16060391b9994772.tar.gz
Spectre-Dark-Gruvbox-40879a53fdfcea871af4f0cd16060391b9994772.zip
Parent5a2d8bf3cbfb202672fcd197d98da089c87719c9 (diff)
ADD: New dropdown menu component
1 files changed, 33 insertions, 3 deletions
-rw-r--r--dist/spectre.css36
diff --git a/dist/spectre.css b/dist/spectre.css
index 7f82c40..4044604 100644
--- a/dist/spectre.css
+++ b/dist/spectre.css
@@ -408,6 +408,16 @@ a:hover {
margin-right: .2rem;
vertical-align: -20%;
}
+.icon-caret {
+ border-left: .4rem solid transparent;
+ border-right: .4rem solid transparent;
+ border-top: .4rem solid currentColor;
+ display: inline-block;
+ height: 0;
+ margin: 0 .2rem;
+ vertical-align: middle;
+ width: 0;
+}
h1,
h2,
h3,
@@ -672,15 +682,15 @@ pre code {
-ms-flex: 1 0 auto;
flex: 1 0 auto;
}
-.btn-group .btn:first-child:not(:last-child) {
+.btn-group .btn:first-of-type:not(:last-of-type) {
border-bottom-right-radius: 0;
border-top-right-radius: 0;
}
-.btn-group .btn:not(:first-child):not(:last-child) {
+.btn-group .btn:not(:first-of-type):not(:last-of-type) {
border-radius: 0;
margin-left: -.1rem;
}
-.btn-group .btn:last-child:not(:first-child) {
+.btn-group .btn:last-of-type:not(:first-of-type) {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
margin-left: -.1rem;
@@ -1912,6 +1922,26 @@ textarea.form-input {
transform: translateY(-1rem);
width: 100%;
}
+.dropdown {
+ position: relative;
+}
+.dropdown .menu {
+ -webkit-animation: slide-down .216s;
+ animation: slide-down .216s;
+ display: none;
+ left: 0;
+ min-width: 18rem;
+ position: absolute;
+ top: 100%;
+ -webkit-transform: translateY(.5rem);
+ -ms-transform: translateY(.5rem);
+ transform: translateY(.5rem);
+}
+.dropdown.active .menu,
+.dropdown .dropdown-toggle:focus + .menu,
+.dropdown .menu:hover {
+ display: block;
+}
.breadcrumb,
.tab,
.pagination {