Skip to content

Commit

Permalink
[helpers] remove obsolete variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmorDarks committed Oct 26, 2016
1 parent 84d1c3d commit 20b969f
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 38 deletions.
24 changes: 11 additions & 13 deletions helpers/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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; } }

}
}
28 changes: 13 additions & 15 deletions helpers/_colors.ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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; } } }

}
}
}
}
8 changes: 3 additions & 5 deletions helpers/_typography.font-families.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

}
}
}
8 changes: 3 additions & 5 deletions helpers/_typography.font-families.ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

}
}
}

0 comments on commit 20b969f

Please sign in to comment.