Summary Files Commits Branches @commit @diff @stats
path: root / src / bars.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/bars.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, 8 insertions, 9 deletions
-rw-r--r--src/bars.less17
diff --git a/src/bars.less b/src/bars.less
index e494a3e..96848d2 100644
--- a/src/bars.less
+++ b/src/bars.less
@@ -4,11 +4,11 @@
border-radius: @border-radius;
display: flex;
flex-wrap: nowrap;
- height: 1.6rem;
+ height: @unit-4;
width: 100%;
&.bar-sm {
- height: .4rem;
+ height: @unit-1;
}
// TODO: attr() support
@@ -18,9 +18,8 @@
display: block;
font-size: @font-size-sm;
flex-shrink: 0;
- line-height: 1;
+ line-height: @unit-4;
height: 100%;
- padding: .2rem 0;
position: relative;
text-align: center;
width: 0;
@@ -39,8 +38,8 @@
// Slider bar
.bar-slider {
- height: .2rem;
- margin: 1rem 0;
+ height: @border-width-lg;
+ margin: @layout-spacing 0;
position: relative;
.bar-item {
@@ -57,16 +56,16 @@
background: @primary-color;
border: 0;
border-radius: 50%;
- height: 1.2rem;
+ height: @unit-3;
padding: 0;
position: absolute;
right: 0;
top: 50%;
transform: translate(50%, -50%);
- width: 1.2rem;
+ width: @unit-3;
&:active {
- box-shadow: 0 0 0 .2rem @primary-color;
+ box-shadow: 0 0 0 2px @primary-color;
}
}
}