From 13d9c624811c4a4be67a9bd8562834dbc18885d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20DeNexus?= Date: Fri, 17 May 2024 18:02:16 +0200 Subject: [PATCH] Rollback hamburguers to 1.1.3 version --- _sass/libraries/{hamburgers => }/_base.scss | 4 +- .../{hamburgers => }/hamburgers.scss | 86 +++++++++---------- .../{hamburgers => }/types/_3dx-r.scss | 0 .../{hamburgers => }/types/_3dx.scss | 0 .../{hamburgers => }/types/_3dxy-r.scss | 0 .../{hamburgers => }/types/_3dxy.scss | 0 .../{hamburgers => }/types/_3dy-r.scss | 0 .../{hamburgers => }/types/_3dy.scss | 0 .../{hamburgers => }/types/_arrow-r.scss | 0 .../{hamburgers => }/types/_arrow.scss | 0 .../{hamburgers => }/types/_arrowalt-r.scss | 0 .../{hamburgers => }/types/_arrowalt.scss | 0 .../{hamburgers => }/types/_arrowturn-r.scss | 0 .../{hamburgers => }/types/_arrowturn.scss | 0 .../{hamburgers => }/types/_boring.scss | 0 .../{hamburgers => }/types/_collapse-r.scss | 0 .../{hamburgers => }/types/_collapse.scss | 0 .../{hamburgers => }/types/_elastic-r.scss | 0 .../{hamburgers => }/types/_elastic.scss | 0 .../{hamburgers => }/types/_emphatic-r.scss | 0 .../{hamburgers => }/types/_emphatic.scss | 0 .../{hamburgers => }/types/_minus.scss | 0 .../{hamburgers => }/types/_slider-r.scss | 0 .../{hamburgers => }/types/_slider.scss | 6 +- .../{hamburgers => }/types/_spin-r.scss | 0 .../{hamburgers => }/types/_spin.scss | 0 .../{hamburgers => }/types/_spring-r.scss | 0 .../{hamburgers => }/types/_spring.scss | 0 .../{hamburgers => }/types/_squeeze.scss | 0 .../{hamburgers => }/types/_stand-r.scss | 0 .../{hamburgers => }/types/_stand.scss | 0 .../{hamburgers => }/types/_vortex-r.scss | 0 .../{hamburgers => }/types/_vortex.scss | 0 33 files changed, 46 insertions(+), 50 deletions(-) rename _sass/libraries/{hamburgers => }/_base.scss (96%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/hamburgers.scss (55%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_3dx-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_3dx.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_3dxy-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_3dxy.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_3dy-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_3dy.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_arrow-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_arrow.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_arrowalt-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_arrowalt.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_arrowturn-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_arrowturn.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_boring.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_collapse-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_collapse.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_elastic-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_elastic.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_emphatic-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_emphatic.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_minus.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_slider-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_slider.scss (81%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_spin-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_spin.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_spring-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_spring.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_squeeze.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_stand-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_stand.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_vortex-r.scss (100%) mode change 100755 => 100644 rename _sass/libraries/{hamburgers => }/types/_vortex.scss (100%) mode change 100755 => 100644 diff --git a/_sass/libraries/hamburgers/_base.scss b/_sass/libraries/_base.scss old mode 100755 new mode 100644 similarity index 96% rename from _sass/libraries/hamburgers/_base.scss rename to _sass/libraries/_base.scss index 30ef6baeca..72630679dd --- a/_sass/libraries/hamburgers/_base.scss +++ b/_sass/libraries/_base.scss @@ -1,7 +1,5 @@ // Hamburger // ================================================== -@use "sass:math"; - .hamburger { padding: $hamburger-padding-y $hamburger-padding-x; display: inline-block; @@ -57,7 +55,7 @@ .hamburger-inner { display: block; top: 50%; - margin-top: math.div($hamburger-layer-height, -2); + margin-top: $hamburger-layer-height / -2; &, &::before, diff --git a/_sass/libraries/hamburgers/hamburgers.scss b/_sass/libraries/hamburgers.scss old mode 100755 new mode 100644 similarity index 55% rename from _sass/libraries/hamburgers/hamburgers.scss rename to _sass/libraries/hamburgers.scss index cdbfdac915..915746bbad --- a/_sass/libraries/hamburgers/hamburgers.scss +++ b/_sass/libraries/hamburgers.scss @@ -9,22 +9,22 @@ // Settings // ================================================== -$hamburger-padding-x: 15px !default; -$hamburger-padding-y: 15px !default; -$hamburger-layer-width: 36px; -$hamburger-layer-height: 3px !default; -$hamburger-layer-spacing: 7px; -$hamburger-layer-color: $primary !default; -$hamburger-layer-border-radius: 3px !default; -$hamburger-hover-opacity: 0.7 !default; -$hamburger-active-layer-color: #fff !default; +$hamburger-padding-x : 15px !default; +$hamburger-padding-y : 15px !default; +$hamburger-layer-width : 40px !default; +$hamburger-layer-height : 4px !default; +$hamburger-layer-spacing : 6px !default; +$hamburger-layer-color : #000 !default; +$hamburger-layer-border-radius : 4px !default; +$hamburger-hover-opacity : 0.7 !default; +$hamburger-active-layer-color : $hamburger-layer-color !default; $hamburger-active-hover-opacity: $hamburger-hover-opacity !default; // To use CSS filters as the hover effect instead of opacity, // set $hamburger-hover-use-filter as true and // change the value of $hamburger-hover-filter accordingly. -$hamburger-hover-use-filter: false !default; -$hamburger-hover-filter: opacity(50%) !default; +$hamburger-hover-use-filter : false !default; +$hamburger-hover-filter : opacity(50%) !default; $hamburger-active-hover-filter: $hamburger-hover-filter !default; // Types (Remove or comment out what you don’t need) @@ -65,41 +65,41 @@ $hamburger-types: ( // Base Hamburger (We need this) // ================================================== -@import 'base'; +@import "base"; // Hamburger types // ================================================== -// @import "types/3dx"; -// @import "types/3dx-r"; -// @import "types/3dy"; -// @import "types/3dy-r"; -// @import "types/3dxy"; -// @import "types/3dxy-r"; -// @import "types/arrow"; -// @import "types/arrow-r"; -// @import "types/arrowalt"; -// @import "types/arrowalt-r"; -// @import "types/arrowturn"; -// @import "types/arrowturn-r"; -// @import "types/boring"; -// @import "types/collapse"; -// @import "types/collapse-r"; -// @import "types/elastic"; -// @import "types/elastic-r"; -// @import "types/emphatic"; -// @import "types/emphatic-r"; -// @import "types/minus"; -@import 'types/slider'; -// @import "types/slider-r"; -// @import "types/spin"; -// @import "types/spin-r"; -// @import "types/spring"; -// @import "types/spring-r"; -// @import "types/stand"; -// @import "types/stand-r"; -// @import "types/squeeze"; -// @import "types/vortex"; -// @import "types/vortex-r"; +@import "types/3dx"; +@import "types/3dx-r"; +@import "types/3dy"; +@import "types/3dy-r"; +@import "types/3dxy"; +@import "types/3dxy-r"; +@import "types/arrow"; +@import "types/arrow-r"; +@import "types/arrowalt"; +@import "types/arrowalt-r"; +@import "types/arrowturn"; +@import "types/arrowturn-r"; +@import "types/boring"; +@import "types/collapse"; +@import "types/collapse-r"; +@import "types/elastic"; +@import "types/elastic-r"; +@import "types/emphatic"; +@import "types/emphatic-r"; +@import "types/minus"; +@import "types/slider"; +@import "types/slider-r"; +@import "types/spin"; +@import "types/spin-r"; +@import "types/spring"; +@import "types/spring-r"; +@import "types/stand"; +@import "types/stand-r"; +@import "types/squeeze"; +@import "types/vortex"; +@import "types/vortex-r"; // ================================================== // Cooking up additional types: diff --git a/_sass/libraries/hamburgers/types/_3dx-r.scss b/_sass/libraries/types/_3dx-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_3dx-r.scss rename to _sass/libraries/types/_3dx-r.scss diff --git a/_sass/libraries/hamburgers/types/_3dx.scss b/_sass/libraries/types/_3dx.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_3dx.scss rename to _sass/libraries/types/_3dx.scss diff --git a/_sass/libraries/hamburgers/types/_3dxy-r.scss b/_sass/libraries/types/_3dxy-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_3dxy-r.scss rename to _sass/libraries/types/_3dxy-r.scss diff --git a/_sass/libraries/hamburgers/types/_3dxy.scss b/_sass/libraries/types/_3dxy.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_3dxy.scss rename to _sass/libraries/types/_3dxy.scss diff --git a/_sass/libraries/hamburgers/types/_3dy-r.scss b/_sass/libraries/types/_3dy-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_3dy-r.scss rename to _sass/libraries/types/_3dy-r.scss diff --git a/_sass/libraries/hamburgers/types/_3dy.scss b/_sass/libraries/types/_3dy.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_3dy.scss rename to _sass/libraries/types/_3dy.scss diff --git a/_sass/libraries/hamburgers/types/_arrow-r.scss b/_sass/libraries/types/_arrow-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_arrow-r.scss rename to _sass/libraries/types/_arrow-r.scss diff --git a/_sass/libraries/hamburgers/types/_arrow.scss b/_sass/libraries/types/_arrow.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_arrow.scss rename to _sass/libraries/types/_arrow.scss diff --git a/_sass/libraries/hamburgers/types/_arrowalt-r.scss b/_sass/libraries/types/_arrowalt-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_arrowalt-r.scss rename to _sass/libraries/types/_arrowalt-r.scss diff --git a/_sass/libraries/hamburgers/types/_arrowalt.scss b/_sass/libraries/types/_arrowalt.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_arrowalt.scss rename to _sass/libraries/types/_arrowalt.scss diff --git a/_sass/libraries/hamburgers/types/_arrowturn-r.scss b/_sass/libraries/types/_arrowturn-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_arrowturn-r.scss rename to _sass/libraries/types/_arrowturn-r.scss diff --git a/_sass/libraries/hamburgers/types/_arrowturn.scss b/_sass/libraries/types/_arrowturn.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_arrowturn.scss rename to _sass/libraries/types/_arrowturn.scss diff --git a/_sass/libraries/hamburgers/types/_boring.scss b/_sass/libraries/types/_boring.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_boring.scss rename to _sass/libraries/types/_boring.scss diff --git a/_sass/libraries/hamburgers/types/_collapse-r.scss b/_sass/libraries/types/_collapse-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_collapse-r.scss rename to _sass/libraries/types/_collapse-r.scss diff --git a/_sass/libraries/hamburgers/types/_collapse.scss b/_sass/libraries/types/_collapse.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_collapse.scss rename to _sass/libraries/types/_collapse.scss diff --git a/_sass/libraries/hamburgers/types/_elastic-r.scss b/_sass/libraries/types/_elastic-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_elastic-r.scss rename to _sass/libraries/types/_elastic-r.scss diff --git a/_sass/libraries/hamburgers/types/_elastic.scss b/_sass/libraries/types/_elastic.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_elastic.scss rename to _sass/libraries/types/_elastic.scss diff --git a/_sass/libraries/hamburgers/types/_emphatic-r.scss b/_sass/libraries/types/_emphatic-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_emphatic-r.scss rename to _sass/libraries/types/_emphatic-r.scss diff --git a/_sass/libraries/hamburgers/types/_emphatic.scss b/_sass/libraries/types/_emphatic.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_emphatic.scss rename to _sass/libraries/types/_emphatic.scss diff --git a/_sass/libraries/hamburgers/types/_minus.scss b/_sass/libraries/types/_minus.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_minus.scss rename to _sass/libraries/types/_minus.scss diff --git a/_sass/libraries/hamburgers/types/_slider-r.scss b/_sass/libraries/types/_slider-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_slider-r.scss rename to _sass/libraries/types/_slider-r.scss diff --git a/_sass/libraries/hamburgers/types/_slider.scss b/_sass/libraries/types/_slider.scss old mode 100755 new mode 100644 similarity index 81% rename from _sass/libraries/hamburgers/types/_slider.scss rename to _sass/libraries/types/_slider.scss index 9c489a46de..2ba9cc28b6 --- a/_sass/libraries/hamburgers/types/_slider.scss +++ b/_sass/libraries/types/_slider.scss @@ -1,12 +1,10 @@ -@use "sass:math"; - @if index($hamburger-types, slider) { /* * Slider */ .hamburger--slider { .hamburger-inner { - top: $hamburger-layer-height * 0.5; + top: $hamburger-layer-height / 2; &::before { top: $hamburger-layer-height + $hamburger-layer-spacing; @@ -27,7 +25,7 @@ transform: translate3d(0, $y-offset, 0) rotate(45deg); &::before { - transform: rotate(-45deg) translate3d(math.div($hamburger-layer-width, -7), $hamburger-layer-spacing * -1, 0); + transform: rotate(-45deg) translate3d($hamburger-layer-width / -7, $hamburger-layer-spacing * -1, 0); opacity: 0; } diff --git a/_sass/libraries/hamburgers/types/_spin-r.scss b/_sass/libraries/types/_spin-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_spin-r.scss rename to _sass/libraries/types/_spin-r.scss diff --git a/_sass/libraries/hamburgers/types/_spin.scss b/_sass/libraries/types/_spin.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_spin.scss rename to _sass/libraries/types/_spin.scss diff --git a/_sass/libraries/hamburgers/types/_spring-r.scss b/_sass/libraries/types/_spring-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_spring-r.scss rename to _sass/libraries/types/_spring-r.scss diff --git a/_sass/libraries/hamburgers/types/_spring.scss b/_sass/libraries/types/_spring.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_spring.scss rename to _sass/libraries/types/_spring.scss diff --git a/_sass/libraries/hamburgers/types/_squeeze.scss b/_sass/libraries/types/_squeeze.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_squeeze.scss rename to _sass/libraries/types/_squeeze.scss diff --git a/_sass/libraries/hamburgers/types/_stand-r.scss b/_sass/libraries/types/_stand-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_stand-r.scss rename to _sass/libraries/types/_stand-r.scss diff --git a/_sass/libraries/hamburgers/types/_stand.scss b/_sass/libraries/types/_stand.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_stand.scss rename to _sass/libraries/types/_stand.scss diff --git a/_sass/libraries/hamburgers/types/_vortex-r.scss b/_sass/libraries/types/_vortex-r.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_vortex-r.scss rename to _sass/libraries/types/_vortex-r.scss diff --git a/_sass/libraries/hamburgers/types/_vortex.scss b/_sass/libraries/types/_vortex.scss old mode 100755 new mode 100644 similarity index 100% rename from _sass/libraries/hamburgers/types/_vortex.scss rename to _sass/libraries/types/_vortex.scss