From a8ba146553cdbe25c782aea323a8f7df0ad664f0 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Tue, 15 Aug 2017 16:06:33 +0800 Subject: IMPORTANT: Change back to rem unit, and default html font size is 20px. --- src/carousels.less | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/carousels.less') diff --git a/src/carousels.less b/src/carousels.less index 510560d..276bc1f 100644 --- a/src/carousels.less +++ b/src/carousels.less @@ -47,10 +47,10 @@ z-index: @zindex-2; } .item-prev { - left: 20px; + left: 1rem; } .item-next { - right: 20px; + right: 1rem; } } @@ -78,7 +78,7 @@ left: 50%; position: absolute; transform: translateX(-50%); - width: 200px; + width: 10rem; z-index: @zindex-2; .nav-item { @@ -87,16 +87,16 @@ flex: 1 0 auto; height: @unit-8; margin: @unit-1; - max-width: 50px; + max-width: 2.5rem; position: relative; &::before { background: currentColor; content: ""; display: block; - height: 2px; + height: @border-width-lg; position: absolute; - top: 10px; + top: .5rem; width: 100%; } } -- cgit v1.3.1-26-gb76a