Summary Files Commits Branches @commit @diff @stats
path: root / src
diff options
context:
space:
mode:
Commit1c0fd0bd85ba36bd454f641e32caf6b19ad2d069 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-04-01 16:56:48 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-04-01 16:56:48 +0800
Files1802284d64ce9322201afc1f3043de5a49084f26 /src
Spectre-Dark-Gruvbox-1c0fd0bd85ba36bd454f641e32caf6b19ad2d069.tar
Spectre-Dark-Gruvbox-1c0fd0bd85ba36bd454f641e32caf6b19ad2d069.tar.gz
Spectre-Dark-Gruvbox-1c0fd0bd85ba36bd454f641e32caf6b19ad2d069.zip
Parent74e7420bc3727229cdffbc686a43b955b4d3d5d9 (diff)
Add comparison labels to Comparison Sliders
1 files changed, 18 insertions, 0 deletions
-rw-r--r--src/comparison-sliders.less (renamed from src/comparison-slider.less)18
diff --git a/src/comparison-slider.less b/src/comparison-sliders.less
index 15c0ec3..1991816 100644
--- a/src/comparison-slider.less
+++ b/src/comparison-sliders.less
@@ -27,11 +27,16 @@
.comparison-before {
width: 100%;
+
+ .comparison-label {
+ right: 1rem;
+ }
}
.comparison-after {
max-width: 100%;
min-width: 0;
+ z-index: @zindex-0;
&::before {
background: fade(@dark-color, 35%);
@@ -59,6 +64,10 @@
width: .4rem;
z-index: -@zindex-0;
}
+
+ .comparison-label {
+ left: 1rem;
+ }
}
.comparison-resizer {
@@ -77,6 +86,15 @@
transform: translateY(-50%) scaleY(30);
width: 0;
}
+
+ .comparison-label {
+ background: fade(@dark-color,50%);
+ bottom: 1rem;
+ color: @light-color;
+ padding: .3rem .8rem;
+ position: absolute;
+ user-select: none;
+ }
}
@keyframes first-run {