Summary Files Commits Branches @commit @diff @stats
path: root / src / comparison-sliders.less
diff options
context:
space:
mode:
Commit78de8f1a1f423a86c05f361e87012a8ea1f1211b (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2017-07-01 15:33:02 +0800
Committer
 Yan Zhu <picturepan2@hotmail.com>
2017-07-01 15:33:02 +0800
Files4efd8509510b7b831dd665a6273b07ec9cc0da5e /src/comparison-sliders.less
Spectre-Dark-Gruvbox-78de8f1a1f423a86c05f361e87012a8ea1f1211b.tar
Spectre-Dark-Gruvbox-78de8f1a1f423a86c05f361e87012a8ea1f1211b.tar.gz
Spectre-Dark-Gruvbox-78de8f1a1f423a86c05f361e87012a8ea1f1211b.zip
Parentef4918530c3d332abbfd4e3076ffc8f9405d4da7 (diff)
IMPORTANT: Replace all rem units to px
1 files changed, 14 insertions, 14 deletions
-rw-r--r--src/comparison-sliders.less28
diff --git a/src/comparison-sliders.less b/src/comparison-sliders.less
index 84a7a31..937c315 100644
--- a/src/comparison-sliders.less
+++ b/src/comparison-sliders.less
@@ -29,7 +29,7 @@
width: 100%;
.comparison-label {
- right: 1.6rem;
+ right: @unit-4;
}
}
@@ -45,7 +45,7 @@
height: 100%;
left: 0;
position: absolute;
- right: 1.6rem;
+ right: @unit-4;
top: 0;
z-index: @zindex-0;
}
@@ -53,30 +53,30 @@
&::after {
background: currentColor;
border-radius: 50%;
- box-shadow: 0 -.5rem, 0 .5rem;
+ box-shadow: 0 -5px, 0 5px;
color: @light-color;
content: "";
- height: .3rem;
+ height: 3px;
position: absolute;
- right: .8rem;
+ right: @unit-2;
top: 50%;
transform: translate(50%, -50%);
- width: .3rem;
+ width: 3px;
z-index: -@zindex-0;
}
.comparison-label {
- left: 1.6rem;
+ left: @unit-4;
}
}
.comparison-resizer {
animation: first-run 1.5s 1 ease-in-out;
cursor: ew-resize;
- height: 1.5rem;
+ height: 15px;
left: 0;
max-width: 100%;
- min-width: 1.6rem;
+ min-width: @unit-4;
opacity: 0;
outline: none;
position: relative;
@@ -88,9 +88,9 @@
.comparison-label {
background: fade(@dark-color, 50%);
- bottom: 1.6rem;
+ bottom: @unit-4;
color: @light-color;
- padding: .3rem .8rem;
+ padding: @unit-1 @unit-2;
position: absolute;
user-select: none;
}
@@ -101,13 +101,13 @@
width: 0;
}
25% {
- width: 4.8rem;
+ width: @unit-12;
}
50% {
- width: 1.6rem;
+ width: @unit-4;
}
75% {
- width: 2.4rem;
+ width: @unit-6;
}
100% {
width: 0;