From 78de8f1a1f423a86c05f361e87012a8ea1f1211b Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sat, 1 Jul 2017 15:33:02 +0800 Subject: IMPORTANT: Replace all rem units to px --- src/parallax.less | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/parallax.less') diff --git a/src/parallax.less b/src/parallax.less index 9886206..beca542 100644 --- a/src/parallax.less +++ b/src/parallax.less @@ -1,8 +1,8 @@ // Parallax @parallax-deg: 3deg; -@parallax-offset: .65rem; -@parallax-offset-z: 10rem; -@parallax-perspective: 100rem; +@parallax-offset: 6.5px; +@parallax-offset-z: 100px; +@parallax-perspective: 1000px; @parallax-scale: 1 - unit(@parallax-offset-z / @parallax-perspective); .parallax { @@ -13,7 +13,7 @@ .parallax-content { height: auto; - .shadow-variant(2rem); + .shadow-variant(20px); transform: perspective(@parallax-perspective); transform-style: preserve-3d; transition: all .4s ease; @@ -39,7 +39,7 @@ left: 0; position: absolute; text-align: center; - text-shadow: 0 0 3rem fade(@dark-color, 95%); + text-shadow: 0 0 4px fade(@dark-color, 95%); top: 0; transform: translateZ(@parallax-offset-z) scale(@parallax-scale); transition: all .4s ease; -- cgit v1.3.1-26-gb76a From 4cb36cd7914a52c4ea18ac34308a38250a4c0399 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Mon, 14 Aug 2017 22:30:02 +0800 Subject: Add mobile responsive support --- docs/components.html | 54 ++++++++---- docs/css/docs.css | 176 +++++++++++++++++++++++++------------ docs/dist/spectre-exp.css | 4 +- docs/dist/spectre-exp.min.css | 2 +- docs/dist/spectre.css | 16 ++-- docs/dist/spectre.min.css | 2 +- docs/elements.html | 21 +++-- docs/experimentals.html | 25 +++--- docs/getting-started.html | 21 +++-- docs/index.html | 16 ++-- docs/layout.html | 21 +++-- docs/src/docs.less | 198 ++++++++++++++++++++++++++++-------------- docs/utilities.html | 41 ++++++--- src/comparison-sliders.less | 2 +- src/layout.less | 3 +- src/parallax.less | 2 +- src/utilities/divider.less | 14 +-- 17 files changed, 403 insertions(+), 215 deletions(-) (limited to 'src/parallax.less') diff --git a/docs/components.html b/docs/components.html index 8ea64c9..ea1bbdf 100644 --- a/docs/components.html +++ b/docs/components.html @@ -12,18 +12,21 @@ -
+
-