From 20b969fb66cc9ed62698cadcb72f0dbb17fc2189 Mon Sep 17 00:00:00 2001 From: ArmorDarks Date: Thu, 27 Oct 2016 01:28:59 +0300 Subject: [PATCH] [helpers] remove obsolete variables --- helpers/_colors.scss | 24 +++++++++---------- helpers/_colors.ui.scss | 28 +++++++++++------------ helpers/_typography.font-families.scss | 8 +++---- helpers/_typography.font-families.ui.scss | 8 +++---- 4 files changed, 30 insertions(+), 38 deletions(-) diff --git a/helpers/_colors.scss b/helpers/_colors.scss index d96c2da..1f20792 100644 --- a/helpers/_colors.scss +++ b/helpers/_colors.scss @@ -65,23 +65,21 @@ // Color pallete // --------------------------------------- -@if $ekzo-enable-colors-helpers { - @each $color, $value in $ekzo-colors { +@each $color, $value in $ekzo-colors { - .#{$ekzo-h-ns}color--#{$color} { color: $value !important; } - .#{$ekzo-h-ns}color--#{$color}\:h { &:hover, &:focus { color: $value !important; } } + .#{$ekzo-h-ns}color--#{$color} { color: $value !important; } + .#{$ekzo-h-ns}color--#{$color}\:h { &:hover, &:focus { color: $value !important; } } - .#{$ekzo-h-ns}bg-color--#{$color} { background-color: $value !important; } - .#{$ekzo-h-ns}bg-color--#{$color}\:h { &:hover, &:focus { background-color: $value !important; } } + .#{$ekzo-h-ns}bg-color--#{$color} { background-color: $value !important; } + .#{$ekzo-h-ns}bg-color--#{$color}\:h { &:hover, &:focus { background-color: $value !important; } } - .#{$ekzo-h-ns}border-color--#{$color} { border-color: $value !important; } - .#{$ekzo-h-ns}border-color--#{$color}\:h { &:hover, &:focus { border-color: $value !important; } } + .#{$ekzo-h-ns}border-color--#{$color} { border-color: $value !important; } + .#{$ekzo-h-ns}border-color--#{$color}\:h { &:hover, &:focus { border-color: $value !important; } } - .#{$ekzo-h-ns}fill--#{$color} { fill: $value !important; } - .#{$ekzo-h-ns}fill--#{$color}\:h { &:hover, &:focus { fill: $value !important; } } + .#{$ekzo-h-ns}fill--#{$color} { fill: $value !important; } + .#{$ekzo-h-ns}fill--#{$color}\:h { &:hover, &:focus { fill: $value !important; } } - .#{$ekzo-h-ns}stroke--#{$color} { stroke: $value !important; } - .#{$ekzo-h-ns}stroke--#{$color}\:h { &:hover, &:focus { stroke: $value !important; } } + .#{$ekzo-h-ns}stroke--#{$color} { stroke: $value !important; } + .#{$ekzo-h-ns}stroke--#{$color}\:h { &:hover, &:focus { stroke: $value !important; } } - } } \ No newline at end of file diff --git a/helpers/_colors.ui.scss b/helpers/_colors.ui.scss index db186b5..fd36e01 100644 --- a/helpers/_colors.ui.scss +++ b/helpers/_colors.ui.scss @@ -8,27 +8,25 @@ // @todo Usage of mixin `ekzo-theme` seems to be a bit slow here. Consider replacement with plain // interpolated class names -@if $ekzo-enable-ui-colors-helpers { - @each $theme, $value in $ekzo-themes { - @each $color, $value in ekzo-get($ekzo-themes, $theme) { - @if $value { +@each $theme, $value in $ekzo-themes { + @each $color, $value in ekzo-get($ekzo-themes, $theme) { + @if $value { - .#{$ekzo-h-ns}color--#{$color} { @include ekzo-theme() { color: $value !important; } } - .#{$ekzo-h-ns}color--#{$color}\:h { @include ekzo-theme() { &:hover, &:focus { color: $value !important; } } } + .#{$ekzo-h-ns}color--#{$color} { @include ekzo-theme() { color: $value !important; } } + .#{$ekzo-h-ns}color--#{$color}\:h { @include ekzo-theme() { &:hover, &:focus { color: $value !important; } } } - .#{$ekzo-h-ns}bg-color--#{$color} { @include ekzo-theme() { background-color: $value !important; } } - .#{$ekzo-h-ns}bg-color--#{$color}\:h { @include ekzo-theme() { &:hover, &:focus { background-color: $value !important; } } } + .#{$ekzo-h-ns}bg-color--#{$color} { @include ekzo-theme() { background-color: $value !important; } } + .#{$ekzo-h-ns}bg-color--#{$color}\:h { @include ekzo-theme() { &:hover, &:focus { background-color: $value !important; } } } - .#{$ekzo-h-ns}border-color--#{$color} { @include ekzo-theme() { border-color: $value !important; } } - .#{$ekzo-h-ns}border-color--#{$color}\:h { @include ekzo-theme() { &:hover, &:focus { border-color: $value !important; } } } + .#{$ekzo-h-ns}border-color--#{$color} { @include ekzo-theme() { border-color: $value !important; } } + .#{$ekzo-h-ns}border-color--#{$color}\:h { @include ekzo-theme() { &:hover, &:focus { border-color: $value !important; } } } - .#{$ekzo-h-ns}fill--#{$color} { @include ekzo-theme() { fill: $value !important; } } - .#{$ekzo-h-ns}fill--#{$color}\:h { @include ekzo-theme() { &:hover, &:focus { fill: $value !important; } } } + .#{$ekzo-h-ns}fill--#{$color} { @include ekzo-theme() { fill: $value !important; } } + .#{$ekzo-h-ns}fill--#{$color}\:h { @include ekzo-theme() { &:hover, &:focus { fill: $value !important; } } } - .#{$ekzo-h-ns}stroke--#{$color} { @include ekzo-theme() { stroke: $value !important; } } - .#{$ekzo-h-ns}stroke--#{$color}\:h { @include ekzo-theme() { &:hover, &:focus { stroke: $value !important; } } } + .#{$ekzo-h-ns}stroke--#{$color} { @include ekzo-theme() { stroke: $value !important; } } + .#{$ekzo-h-ns}stroke--#{$color}\:h { @include ekzo-theme() { &:hover, &:focus { stroke: $value !important; } } } - } } } } \ No newline at end of file diff --git a/helpers/_typography.font-families.scss b/helpers/_typography.font-families.scss index fd350a3..18490a0 100644 --- a/helpers/_typography.font-families.scss +++ b/helpers/_typography.font-families.scss @@ -10,12 +10,10 @@ // All fonts-families // --------------------------------------- -@if $ekzo-enable-font-families-helpers { - @each $group, $font-family in $ekzo-font-families { - @if $font-family { +@each $group, $font-family in $ekzo-font-families { + @if $font-family { - .#{$ekzo-h-ns}font-family--#{$group} { font-family: $font-family; } + .#{$ekzo-h-ns}font-family--#{$group} { font-family: $font-family; } - } } } \ No newline at end of file diff --git a/helpers/_typography.font-families.ui.scss b/helpers/_typography.font-families.ui.scss index 1f0b4ae..2ce60e4 100644 --- a/helpers/_typography.font-families.ui.scss +++ b/helpers/_typography.font-families.ui.scss @@ -5,12 +5,10 @@ // ======================================= // UI fonts-families -@if $ekzo-enable-ui-font-families-helpers { - @each $group, $font-family in $ekzo-ui-font-families { - @if $font-family { +@each $group, $font-family in $ekzo-ui-font-families { + @if $font-family { - .#{$ekzo-h-ns}font-family--#{$group} { font-family: $font-family; } + .#{$ekzo-h-ns}font-family--#{$group} { font-family: $font-family; } - } } } \ No newline at end of file