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/comparison-sliders.less | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/comparison-sliders.less') 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; -- cgit v1.3.1-26-gb76a From b15b0cee1110e83a26326dacdbc995364dd07cdb Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sun, 13 Aug 2017 16:47:13 +0800 Subject: Completely rewritten Docs experience --- README.md | 2 +- docs/components.html | 238 +++++++++-------- docs/css/docs.css | 349 +++++++++++++++---------- docs/dist/spectre-exp.css | 15 +- docs/dist/spectre-exp.min.css | 2 +- docs/dist/spectre.css | 108 ++++---- docs/dist/spectre.min.css | 2 +- docs/elements.html | 185 +++++++------- docs/experimentals.html | 99 +++---- docs/getting-started.html | 547 +++++++++++++++++++++++++++++++++++++++ docs/img/spectre-logo.svg | 19 ++ docs/index.html | 583 +++++------------------------------------- docs/layout.html | 132 ++++------ docs/src/docs.less | 352 +++++++++++++++---------- docs/utilities.html | 160 +++++------- src/accordions.less | 3 +- src/cards.less | 4 - src/comparison-sliders.less | 5 +- src/forms.less | 1 - src/menus.less | 1 + src/mixins.less | 2 +- src/panels.less | 4 - src/tables.less | 3 + src/tooltips.less | 2 +- src/typography.less | 32 ++- src/utilities/colors.less | 3 - src/utilities/loading.less | 24 +- src/utilities/position.less | 4 +- src/variables.less | 4 +- 29 files changed, 1562 insertions(+), 1323 deletions(-) create mode 100644 docs/getting-started.html create mode 100644 docs/img/spectre-logo.svg (limited to 'src/comparison-sliders.less') diff --git a/README.md b/README.md index 4894b24..a3a2991 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Spectre.css is a lightweight, responsive and modern CSS framework for faster and - Lightweight (~10KB gzipped) starting point for your projects - Flexbox-based, responsive and mobile-friendly layout -- Carefully designed elements and components +- Elegantly designed and developed elements and components Spectre is a side project based on years of CSS development work on a large web service project. Spectre only includes modern base styles, responsive layout system, CSS components and utilities, and it can be modified for your project with LESS compiler. diff --git a/docs/components.html b/docs/components.html index 7089ade..8ea64c9 100644 --- a/docs/components.html +++ b/docs/components.html @@ -12,24 +12,19 @@ -
-
- -
-
- -
-
-