Browse Source

Use each for the pattern color system

pull/561/head
Artur Arseniev 8 years ago
parent
commit
7a03f6cbb8
  1. 2
      dist/css/grapes.min.css
  2. 6
      src/styles/scss/_gjs_variables.scss
  3. 50
      src/styles/scss/main.scss

2
dist/css/grapes.min.css

File diff suppressed because one or more lines are too long

6
src/styles/scss/_gjs_variables.scss

@ -14,7 +14,11 @@ $cv-prefix: $app-prefix + 'cv-' !default;
$clm-prefix: $app-prefix + 'clm-' !default;
$trt-prefix: $app-prefix + 'trt-' !default;
/* New Pattern Color System - */
/*
New Pattern Color System
With this should be easier to overwrite colors
not only in SCSS but even CSS
*/
$primaryColor: #444 !default;
$secondaryColor: #ddd !default;
$tertiaryColor: #804f7b !default;

50
src/styles/scss/main.scss

@ -51,50 +51,18 @@
$prefix: $app-prefix;
.#{$prefix} {
&one {
&-bg {
background-color: $primaryColor;
}
&-color {
color: $primaryColor;
}
}
&two {
&-bg {
background-color: $secondaryColor;
}
&-color {
color: $secondaryColor;
}
}
&three {
&-bg {
background-color: $tertiaryColor;
}
&-color {
color: $tertiaryColor;
&-h:hover {
color: $tertiaryColor;
@each $cnum, $ccol in (one, $primaryColor), (two, $secondaryColor), (three, $tertiaryColor), (four, $quaternaryColor) {
&#{$cnum} {
&-bg {
background-color: $ccol;
}
}
}
&four {
&-bg {
background-color: $quaternaryColor;
}
&-color {
color: $quaternaryColor;
&-color {
color: $ccol;
&-h:hover {
color: $quaternaryColor;
&-h:hover {
color: $ccol;
}
}
}
}

Loading…
Cancel
Save