Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit136b1127d32e0057f7ff558984245ac388aca820 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-03-29 15:14:09 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-03-29 15:14:09 +0800
Files8c746a7ac8caa30c0f8ab65cc1609ec85458e4ce /src
Spectre-Dark-Gruvbox-136b1127d32e0057f7ff558984245ac388aca820.tar
Spectre-Dark-Gruvbox-136b1127d32e0057f7ff558984245ac388aca820.tar.gz
Spectre-Dark-Gruvbox-136b1127d32e0057f7ff558984245ac388aca820.zip
Parentafb6282a3e2b2014f0756586f40dae00c7f9a722 (diff)
Add Slider bars code
3 files changed, 42 insertions, 5 deletions
-rw-r--r--src/bars.less37
-rw-r--r--src/parallax.less2
-rw-r--r--src/sliders.less8
diff --git a/src/bars.less b/src/bars.less
index 193f9e4..a996142 100644
--- a/src/bars.less
+++ b/src/bars.less
@@ -36,3 +36,40 @@
}
}
}
+
+// Slider bar
+.bar-slider {
+ height: .2rem;
+ margin: 1rem 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 {
+ appearance: none;
+ background: @primary-color;
+ border: 0;
+ border-radius: 50%;
+ cursor: pointer;
+ height: 1.2rem;
+ padding: 0;
+ position: absolute;
+ right: 0;
+ top: 50%;
+ transform: translate(50%, -50%);
+ transition: all .2s ease;
+ width: 1.2rem;
+
+ &:active {
+ box-shadow: 0 0 0 .2rem @primary-color;
+ }
+ }
+}
diff --git a/src/parallax.less b/src/parallax.less
index 54335e7..6a6f03a 100644
--- a/src/parallax.less
+++ b/src/parallax.less
@@ -1,6 +1,6 @@
// Parallax
@parallax-deg: 3deg;
-@parallax-offset: .4rem;
+@parallax-offset: .65rem;
@parallax-offset-z: 10rem;
.parallax {
diff --git a/src/sliders.less b/src/sliders.less
index a2d9a2f..46d6b87 100644
--- a/src/sliders.less
+++ b/src/sliders.less
@@ -14,7 +14,7 @@
border: 0;
border-radius: 50%;
height: 1.2rem;
- margin-top: -.4rem;
+ margin-top: -.5rem;
transition: transform .2s ease;
width: 1.2rem;
}
@@ -67,19 +67,19 @@
&::-webkit-slider-runnable-track {
background: @bg-color-dark;
border-radius: @border-radius;
- height: .4rem;
+ height: .2rem;
width: 100%;
}
&::-moz-range-track {
background: @bg-color-dark;
border-radius: @border-radius;
- height: .4rem;
+ height: .2rem;
width: 100%;
}
&::-ms-track {
background: @bg-color-dark;
border-radius: @border-radius;
- height: .4rem;
+ height: .2rem;
width: 100%;
}
&::-ms-fill-lower {