Summary Files Commits Branches @commit @diff @stats
path: root / src / carousels.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/carousels.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, 9 insertions, 9 deletions
-rw-r--r--src/carousels.less18
diff --git a/src/carousels.less b/src/carousels.less
index ee30edf..510560d 100644
--- a/src/carousels.less
+++ b/src/carousels.less
@@ -47,10 +47,10 @@
z-index: @zindex-2;
}
.item-prev {
- left: 2rem;
+ left: 20px;
}
.item-next {
- right: 2rem;
+ right: 20px;
}
}
@@ -72,31 +72,31 @@
}
.carousel-nav {
- bottom: 1rem;
+ bottom: @layout-spacing;
display: flex;
justify-content: center;
left: 50%;
position: absolute;
transform: translateX(-50%);
- width: 20rem;
+ width: 200px;
z-index: @zindex-2;
.nav-item {
color: fade(@gray-color-light, 50%);
display: block;
flex: 1 0 auto;
- height: 4rem;
- margin: .4rem;
- max-width: 5rem;
+ height: @unit-8;
+ margin: @unit-1;
+ max-width: 50px;
position: relative;
&::before {
background: currentColor;
content: "";
display: block;
- height: .3rem;
+ height: 2px;
position: absolute;
- top: 2rem;
+ top: 10px;
width: 100%;
}
}