From 22d0e27a96c9fd7ebbad11ba4d3f94ef5c4ab8c9 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Sun, 25 Oct 2020 11:09:26 +0100 Subject: [PATCH 1/2] Added spectre license --- scss/spectre/LICENSE | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 scss/spectre/LICENSE diff --git a/scss/spectre/LICENSE b/scss/spectre/LICENSE new file mode 100644 index 0000000..7d4eb70 --- /dev/null +++ b/scss/spectre/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2016 - 2020 Yan Zhu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. From eee944c928159bd475908a4dd3cdaf284d7b8324 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Sun, 25 Oct 2020 11:13:44 +0100 Subject: [PATCH 2/2] Updated to spectre 0.5.9 --- scss/spectre/_accordions.scss | 4 ++-- scss/spectre/_comparison-sliders.scss | 1 + scss/spectre/_layout.scss | 2 ++ scss/spectre/_variables.scss | 2 +- scss/spectre/utilities/_loading.scss | 3 +++ scss/spectre/utilities/_text.scss | 12 ++++++++++++ 6 files changed, 21 insertions(+), 3 deletions(-) diff --git a/scss/spectre/_accordions.scss b/scss/spectre/_accordions.scss index fd21585..ee57ac0 100755 --- a/scss/spectre/_accordions.scss +++ b/scss/spectre/_accordions.scss @@ -2,8 +2,8 @@ .accordion { input:checked ~, &[open] { - & .accordion-header { - .icon { + & .accordion-header > { + .icon:first-child { transform: rotate(90deg); } } diff --git a/scss/spectre/_comparison-sliders.scss b/scss/spectre/_comparison-sliders.scss index 72bb25f..ec3609b 100755 --- a/scss/spectre/_comparison-sliders.scss +++ b/scss/spectre/_comparison-sliders.scss @@ -58,6 +58,7 @@ color: $light-color; content: ""; height: 3px; + pointer-events: none; position: absolute; right: $unit-2; top: 50%; diff --git a/scss/spectre/_layout.scss b/scss/spectre/_layout.scss index 1f6b77c..e6bad9a 100755 --- a/scss/spectre/_layout.scss +++ b/scss/spectre/_layout.scss @@ -39,6 +39,7 @@ } // Responsive grid system +.cols, .columns { display: flex; flex-wrap: wrap; @@ -59,6 +60,7 @@ overflow-x: auto; } } +[class~="col-"], .column { flex: 1; max-width: 100%; diff --git a/scss/spectre/_variables.scss b/scss/spectre/_variables.scss index 7bf1a13..604c006 100755 --- a/scss/spectre/_variables.scss +++ b/scss/spectre/_variables.scss @@ -1,5 +1,5 @@ // Core variables -$version: "0.5.8"; +$version: "0.5.9"; // Core features $rtl: false !default; diff --git a/scss/spectre/utilities/_loading.scss b/scss/spectre/utilities/_loading.scss index 1b4ea60..2cfdefa 100755 --- a/scss/spectre/utilities/_loading.scss +++ b/scss/spectre/utilities/_loading.scss @@ -6,6 +6,7 @@ position: relative; &::after { animation: loading 500ms infinite linear; + background: transparent; border: $border-width-lg solid $primary-color; border-radius: 50%; border-right-color: transparent; @@ -16,6 +17,8 @@ left: 50%; margin-left: -$unit-2; margin-top: -$unit-2; + opacity: 1; + padding: 0; position: absolute; top: 50%; width: $unit-4; diff --git a/scss/spectre/utilities/_text.scss b/scss/spectre/utilities/_text.scss index 67793ac..5796905 100755 --- a/scss/spectre/utilities/_text.scss +++ b/scss/spectre/utilities/_text.scss @@ -46,6 +46,18 @@ font-size: 1.2em; } +.text-small { + font-size: .9em; +} + +.text-tiny { + font-size: .8em; +} + +.text-muted { + opacity: .8; +} + // Text overflow utilities .text-ellipsis { @include text-ellipsis();