Summary Files Commits Branches @commit @diff @stats
path: root / dist / spectre.css
diff options
context:
space:
mode:
Commit3db73e976f60f54003f1183d880bce98e122876a (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-02-22 18:50:32 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-02-22 18:50:32 +0800
Filese6de042acb9a06fc2f5bb66a94bcb20a28bb4082 /dist/spectre.css
Spectre-Dark-Gruvbox-3db73e976f60f54003f1183d880bce98e122876a.tar
Spectre-Dark-Gruvbox-3db73e976f60f54003f1183d880bce98e122876a.tar.gz
Spectre-Dark-Gruvbox-3db73e976f60f54003f1183d880bce98e122876a.zip
Parentef1531efb14c8433845c7d3f10d1ec284221f263 (diff)
ADD: Steps component and improve docs
1 files changed, 74 insertions, 1 deletions
-rw-r--r--dist/spectre.css75
diff --git a/dist/spectre.css b/dist/spectre.css
index 570655d..177a68a 100644
--- a/dist/spectre.css
+++ b/dist/spectre.css
@@ -2142,6 +2142,67 @@ small.label {
.nav .nav a {
color: #808080;
}
+.step {
+ display: flex;
+ display: -ms-flexbox;
+ display: -webkit-flex;
+ -webkit-flex-wrap: nowrap;
+ -ms-flex-wrap: nowrap;
+ flex-wrap: nowrap;
+ list-style: none;
+ margin: .5rem 0;
+ width: 100%;
+}
+.step .step-item {
+ -webkit-flex: 1 1 0;
+ -ms-flex: 1 1 0;
+ flex: 1 1 0;
+ margin-top: 0;
+ min-height: 2rem;
+ position: relative;
+ text-align: center;
+}
+.step .step-item:not(:first-child)::before {
+ background: #5764c6;
+ content: "";
+ height: .4rem;
+ left: -50%;
+ position: absolute;
+ top: .8rem;
+ width: 100%;
+}
+.step .step-item a {
+ color: #888;
+ display: inline-block;
+ padding: 2rem 1rem 0;
+ text-decoration: none;
+}
+.step .step-item a::before {
+ background: #5764c6;
+ border: .2rem solid #fff;
+ border-radius: 50%;
+ content: "";
+ display: block;
+ height: 1.4rem;
+ left: 50%;
+ position: absolute;
+ top: .3rem;
+ -webkit-transform: translateX(-50%);
+ -ms-transform: translateX(-50%);
+ transform: translateX(-50%);
+ width: 1.4rem;
+ z-index: 99;
+}
+.step .step-item.active a::before {
+ background: #fff;
+ border: .4rem solid #5764c6;
+}
+.step .step-item.active ~ .step-item::before {
+ background: #efefef;
+}
+.step .step-item.active ~ .step-item a::before {
+ background: #c5c5c5;
+}
.tile {
-webkit-align-content: space-between;
align-content: space-between;
@@ -2248,6 +2309,7 @@ small.label {
-ms-transform: translate(-50%, 0);
transform: translate(-50%, 0);
transition: all .216s ease;
+ white-space: nowrap;
z-index: 99;
}
.tooltip:focus::after,
@@ -2480,9 +2542,20 @@ small.label {
background: transparent;
border: 0;
color: transparent;
- font: 0/0 a;
+ font-size: 0;
+ line-height: 0;
text-shadow: none;
}
+.text-assistive {
+ border: 0;
+ clip: rect(0, 0, 0, 0);
+ height: .1rem;
+ margin: -.1rem;
+ overflow: hidden;
+ padding: 0;
+ position: absolute;
+ width: .1rem;
+}
.text-left {
text-align: left;
}