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/calendars.less | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'src/calendars.less') diff --git a/src/calendars.less b/src/calendars.less index 621b9d1..44f88ae 100644 --- a/src/calendars.less +++ b/src/calendars.less @@ -3,7 +3,7 @@ border: @border-width solid @border-color; border-radius: @border-radius; display: block; - min-width: 28rem; + min-width: 280px; text-align: center; .calendar-nav { @@ -13,7 +13,7 @@ border-top-right-radius: @border-radius; display: flex; font-size: @font-size-lg; - padding: 1rem; + padding: @layout-spacing; } .calendar-header, @@ -21,7 +21,7 @@ display: flex; flex-wrap: wrap; justify-content: center; - padding: 1rem 0; + padding: @layout-spacing 0; .calendar-date { flex: 0 0 14.28%; // 7 calendar-items each row @@ -42,7 +42,7 @@ .calendar-date { border: 0; - padding: .4rem; + padding: @unit-1; .date-item { appearance: none; @@ -52,16 +52,16 @@ color: @gray-color-dark; .control-transition(); cursor: pointer; - height: 2.8rem; - line-height: 2rem; + height: @unit-7; + line-height: @unit-5; outline: none; - padding: .3rem; + padding: @unit-h; position: relative; text-align: center; text-decoration: none; vertical-align: middle; white-space: nowrap; - width: 2.8rem; + width: @unit-7; &.date-today { border-color: @secondary-color-dark; @@ -90,8 +90,8 @@ &.badge { &::after { position: absolute; - top: .3rem; - right: .3rem; + top: 3px; + right: 3px; transform: translate(50%, -50%); } } @@ -113,7 +113,7 @@ &::before { background: @secondary-color; content: ""; - height: 2.8rem; + height: @unit-7; left: 0; position: absolute; right: 0; @@ -145,7 +145,7 @@ border-right: @border-width solid @border-color; display: flex; flex-direction: column; - height: 11rem; + height: 110px; padding: 0; &:nth-child(7n) { @@ -159,24 +159,24 @@ .date-item { align-self: flex-end; - height: 2.8rem; - margin-right: .5rem; - margin-top: .5rem; + height: @unit-7; + margin-right: @layout-spacing-sm; + margin-top: @layout-spacing-sm; } .calendar-range { &::before { - top: 1.9rem; + top: 19px; } &.range-start { &::before { left: auto; - width: 1.9rem; + width: 19px; } } &.range-end { &::before { - right: 1.9rem; + right: 19px; } } } @@ -185,7 +185,7 @@ flex-grow: 1; line-height: 1; overflow-y: auto; - padding: .5rem; + padding: @layout-spacing-sm; } .calendar-event { @@ -194,9 +194,9 @@ color: @primary-color; font-size: @font-size-sm; display: block; - margin: .2rem auto; + margin: @unit-h auto; overflow: hidden; - padding: .3rem .4rem; + padding: 3px 4px; text-align: left; text-overflow: ellipsis; vertical-align: baseline; -- cgit v1.3.1-26-gb76a 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. --- docs/components.html | 8 +- docs/css/docs.css | 175 +++++---- docs/dist/spectre-exp.css | 176 ++++----- docs/dist/spectre-exp.min.css | 2 +- docs/dist/spectre-icons.css | 120 +++---- docs/dist/spectre-icons.min.css | 2 +- docs/dist/spectre.css | 766 ++++++++++++++++++++-------------------- docs/dist/spectre.min.css | 2 +- docs/elements.html | 6 +- docs/experimentals.html | 2 +- docs/getting-started.html | 134 +++---- docs/index.html | 6 +- docs/src/docs.less | 165 +++++---- docs/utilities.html | 34 +- src/badges.less | 6 +- src/bars.less | 2 +- src/buttons.less | 4 +- src/calendars.less | 2 +- src/carousels.less | 12 +- src/codes.less | 2 +- src/comparison-sliders.less | 2 +- src/forms.less | 6 +- src/menus.less | 6 +- src/mixins.less | 57 ++- src/modals.less | 3 +- src/normalize.less | 1 + src/pagination.less | 6 +- src/parallax.less | 2 +- src/popovers.less | 2 +- src/sliders.less | 2 +- src/typography.less | 12 +- src/utilities.less | 1 - src/utilities/position.less | 65 +--- src/utilities/shadow.less | 16 - src/variables.less | 52 +-- 35 files changed, 935 insertions(+), 924 deletions(-) delete mode 100644 src/utilities/shadow.less (limited to 'src/calendars.less') diff --git a/docs/components.html b/docs/components.html index a61a3bd..3143683 100644 --- a/docs/components.html +++ b/docs/components.html @@ -1273,7 +1273,7 @@