Summary Files Commits Branches @commit @diff @stats
path: root / src / _bars.scss
diff options
context:
space:
mode:
Commitc811cb46631e66772a108c393f6ef53a83ca010b (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-09-01 15:34:29 +0800
Committer
 GitHub <noreply@github.com>
2017-09-01 15:34:29 +0800
Filescc78dfa6f7398e9e77dd81d8865bcca939b9549d /src/_bars.scss
Spectre-Dark-Gruvbox-c811cb46631e66772a108c393f6ef53a83ca010b.tar
Spectre-Dark-Gruvbox-c811cb46631e66772a108c393f6ef53a83ca010b.tar.gz
Spectre-Dark-Gruvbox-c811cb46631e66772a108c393f6ef53a83ca010b.zip
Parent66c492fd05c2d720c81e2be8d6845560b868e7ff (diff)
Parentcca094ecbf55e8a4f552e55219b37373d3c07d9e (diff)
Merge pull request #266 from picturepan2/0.4.0 v0.4.0
0.4.0
1 files changed, 71 insertions, 0 deletions
-rw-r--r--src/_bars.scss71
diff --git a/src/_bars.scss b/src/_bars.scss
new file mode 100644
index 0000000..47e21c9
--- /dev/null
+++ b/src/_bars.scss
@@ -0,0 +1,71 @@
+// Bars
+.bar {
+ background: $bg-color-dark;
+ border-radius: $border-radius;
+ display: flex;
+ flex-wrap: nowrap;
+ height: $unit-4;
+ width: 100%;
+
+ &.bar-sm {
+ height: $unit-1;
+ }
+
+ // TODO: attr() support
+ .bar-item {
+ background: $primary-color;
+ color: $light-color;
+ display: block;
+ font-size: $font-size-sm;
+ flex-shrink: 0;
+ line-height: $unit-4;
+ height: 100%;
+ position: relative;
+ text-align: center;
+ width: 0;
+
+ &:first-child {
+ border-bottom-left-radius: $border-radius;
+ border-top-left-radius: $border-radius;
+ }
+ &:last-child {
+ border-bottom-right-radius: $border-radius;
+ border-top-right-radius: $border-radius;
+ flex-shrink: 1;
+ }
+ }
+}
+
+// Slider bar
+.bar-slider {
+ height: $border-width-lg;
+ margin: $layout-spacing 0;
+ position: relative;
+
+ .bar-item {
+ left: 0;
+ padding: 0;
+ position: absolute;
+ &:not(:last-child):first-child {
+ background: $bg-color-dark;
+ z-index: $zindex-0;
+ }
+ }
+
+ .bar-slider-btn {
+ background: $primary-color;
+ border: 0;
+ border-radius: 50%;
+ height: $unit-3;
+ padding: 0;
+ position: absolute;
+ right: 0;
+ top: 50%;
+ transform: translate(50%, -50%);
+ width: $unit-3;
+
+ &:active {
+ box-shadow: 0 0 0 .1rem $primary-color;
+ }
+ }
+}