Skip to content

Commit

Permalink
Interpolate CSS native variables in Design Editor files.
Browse files Browse the repository at this point in the history
Fixes rebuilding Design Editor components with updated modules.
(closes #67)
  • Loading branch information
Kaspar Naaber committed Sep 15, 2017
1 parent a7f6d5d commit cbac07e
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 93 deletions.
12 changes: 6 additions & 6 deletions sources/components/custom-styles/template-cs-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"scope": "global",
"featured": true
*/
--content-button-font-size: $font-size;
#{--content-button-font-size}: $font-size;

/* VoogStyle
"pathI18n": ["button"],
Expand All @@ -41,7 +41,7 @@
"unit": "em",
"scope": "global"
*/
--content-button-line-height: 1.333;
#{--content-button-line-height}: 1.333;

/* VoogStyle
"pathI18n": ["button"],
Expand All @@ -55,7 +55,7 @@
"icon": "bold",
"scope": "global"
*/
--content-button-font-weight: 400;
#{--content-button-font-weight}: 400;

/* VoogStyle
"pathI18n": ["button"],
Expand All @@ -69,7 +69,7 @@
"icon": "italic",
"scope": "global"
*/
--content-button-font-style: normal;
#{--content-button-font-style}: normal;

/* VoogStyle
"pathI18n": ["button"],
Expand All @@ -83,7 +83,7 @@
"icon": "underline",
"scope": "global"
*/
--content-button-text-decoration: none;
#{--content-button-text-decoration}: none;

/* VoogStyle
"pathI18n": ["button"],
Expand All @@ -97,7 +97,7 @@
"icon": "uppercase",
"scope": "global"
*/
--content-button-text-transform: uppercase;
#{--content-button-text-transform}: uppercase;

// scss-lint:enable Comment, Indentation
}
50 changes: 25 additions & 25 deletions sources/components/custom-styles/template-cs-content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"scope": "global",
"featured": true
*/
--content-submenu-font-size: $font-size-small;
#{--content-submenu-font-size}: $font-size-small;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "normal"],
Expand All @@ -47,7 +47,7 @@
"--content-submenu-active-font-weight"
]
*/
--content-submenu-font-weight: 400;
#{--content-submenu-font-weight}: 400;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "hover"],
Expand All @@ -61,7 +61,7 @@
"icon": "bold",
"scope": "global"
*/
--content-submenu-hover-font-weight: 400;
#{--content-submenu-hover-font-weight}: 400;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "active"],
Expand All @@ -75,7 +75,7 @@
"icon": "bold",
"scope": "global"
*/
--content-submenu-active-font-weight: 400;
#{--content-submenu-active-font-weight}: 400;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "normal"],
Expand All @@ -93,7 +93,7 @@
"--content-submenu-active-font-style"
]
*/
--content-submenu-font-style: normal;
#{--content-submenu-font-style}: normal;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "hover"],
Expand All @@ -107,7 +107,7 @@
"icon": "italic",
"scope": "global"
*/
--content-submenu-hover-font-style: normal;
#{--content-submenu-hover-font-style}: normal;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "active"],
Expand All @@ -121,7 +121,7 @@
"icon": "italic",
"scope": "global"
*/
--content-submenu-active-font-style: normal;
#{--content-submenu-active-font-style}: normal;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "normal"],
Expand All @@ -135,7 +135,7 @@
"icon": "underline",
"scope": "global"
*/
--content-submenu-text-decoration: none;
#{--content-submenu-text-decoration}: none;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "hover"],
Expand All @@ -149,7 +149,7 @@
"icon": "underline",
"scope": "global"
*/
--content-submenu-hover-text-decoration: none;
#{--content-submenu-hover-text-decoration}: none;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "active"],
Expand All @@ -163,7 +163,7 @@
"icon": "underline",
"scope": "global"
*/
--content-submenu-active-text-decoration: solid;
#{--content-submenu-active-text-decoration}: solid;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "normal"],
Expand All @@ -181,7 +181,7 @@
"--content-submenu-active-text-transform"
]
*/
--content-submenu-text-transform: none;
#{--content-submenu-text-transform}: none;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "hover"],
Expand All @@ -195,7 +195,7 @@
"icon": "uppercase",
"scope": "global"
*/
--content-submenu-hover-text-transform: none;
#{--content-submenu-hover-text-transform}: none;

/* VoogStyle
"pathI18n": ["content", "sub_menu", "active"],
Expand All @@ -209,7 +209,7 @@
"icon": "uppercase",
"scope": "global"
*/
--content-submenu-active-text-transform: none;
#{--content-submenu-active-text-transform}: none;

/* VoogStyle
"pathI18n": ["content", "text"],
Expand All @@ -225,7 +225,7 @@
"--content-button-font-size"
]
*/
--content-font-size: $font-size;
#{--content-font-size}: $font-size;

/* VoogStyle
"pathI18n": ["content", "text"],
Expand All @@ -240,7 +240,7 @@
"--content-button-line-height"
]
*/
--content-line-height: 1.7;
#{--content-line-height}: 1.7;

/* VoogStyle
"pathI18n": ["content", "link", "normal"],
Expand All @@ -257,7 +257,7 @@
"--content-links-hover-font-weight"
]
*/
--content-links-font-weight: 400;
#{--content-links-font-weight}: 400;

/* VoogStyle
"pathI18n": ["content", "link", "hover"],
Expand All @@ -271,7 +271,7 @@
"icon": "bold",
"scope": "global"
*/
--content-links-hover-font-weight: 400;
#{--content-links-hover-font-weight}: 400;

/* VoogStyle
"pathI18n": ["content", "link", "normal"],
Expand All @@ -288,7 +288,7 @@
"--content-links-hover-font-style"
]
*/
--content-links-font-style: normal;
#{--content-links-font-style}: normal;

/* VoogStyle
"pathI18n": ["content", "link", "hover"],
Expand All @@ -302,7 +302,7 @@
"icon": "italic",
"scope": "global"
*/
--content-links-hover-font-style: normal;
#{--content-links-hover-font-style}: normal;

/* VoogStyle
"pathI18n": ["content", "link", "normal"],
Expand All @@ -319,7 +319,7 @@
"--content-links-hover-text-decoration"
]
*/
--content-links-text-decoration: none;
#{--content-links-text-decoration}: none;

/* VoogStyle
"pathI18n": ["content", "link", "hover"],
Expand All @@ -333,7 +333,7 @@
"icon": "underline",
"scope": "global"
*/
--content-links-hover-text-decoration: none;
#{--content-links-hover-text-decoration}: none;

/* VoogStyle
"pathI18n": ["content", "link", "normal"],
Expand All @@ -350,7 +350,7 @@
"--content-links-hover-text-transform"
]
*/
--content-links-text-transform: none;
#{--content-links-text-transform}: none;

/* VoogStyle
"pathI18n": ["content", "link", "hover"],
Expand All @@ -364,7 +364,7 @@
"icon": "uppercase",
"scope": "global"
*/
--content-links-hover-text-transform: none;
#{--content-links-hover-text-transform}: none;

/* VoogStyle
"pathI18n": ["content", "link", "normal"],
Expand All @@ -374,7 +374,7 @@
"scope": "global",
"featured": true
*/
--content-links-color: $link-color;
#{--content-links-color}: $link-color;

/* VoogStyle
"pathI18n": ["content", "link", "hover"],
Expand All @@ -384,7 +384,7 @@
"scope": "global",
"featured": "true"
*/
--content-links-hover-color: rgba($link-color, .8);
#{--content-links-hover-color}: rgba($link-color, .8);

// scss-lint:enable Comment, Indentation
}
20 changes: 10 additions & 10 deletions sources/components/custom-styles/template-cs-focus-area.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"list": {{ base_alignment_set }},
"scope": "global"
*/
--focus-area-alignment: left;
#{--focus-area-alignment}: left;

/* VoogStyle
"pathI18n": ["focus_area"],
Expand All @@ -35,7 +35,7 @@
"list": {{ base_alignment_vertical_set }},
"scope": "global"
*/
--focus-area-vertical-alignment: middle;
#{--focus-area-vertical-alignment}: middle;

/* VoogStyle
"pathI18n": ["focus_area"],
Expand All @@ -46,7 +46,7 @@
"unit": "px",
"scope": "global"
*/
--focus-area-padding: 45px;
#{--focus-area-padding}: 45px;

/* VoogStyle
"pathI18n": ["focus_area", "text"],
Expand All @@ -59,7 +59,7 @@
"scope": "global",
"featured": true
*/
--focus-area-font-size: $h2-size;
#{--focus-area-font-size}: $h2-size;

/* VoogStyle
"pathI18n": ["focus_area", "text"],
Expand All @@ -71,7 +71,7 @@
"unit": "em",
"scope": "global"
*/
--focus-area-line-height: 1.05;
#{--focus-area-line-height}: 1.05;

/* VoogStyle
"pathI18n": ["focus_area", "text"],
Expand All @@ -85,7 +85,7 @@
"icon": "bold",
"scope": "global"
*/
--focus-area-font-weight: 400;
#{--focus-area-font-weight}: 400;

/* VoogStyle
"pathI18n": ["focus_area", "text"],
Expand All @@ -99,7 +99,7 @@
"icon": "italic",
"scope": "global"
*/
--focus-area-font-style: normal;
#{--focus-area-font-style}: normal;

/* VoogStyle
"pathI18n": ["focus_area", "text"],
Expand All @@ -113,7 +113,7 @@
"icon": "underline",
"scope": "global"
*/
--focus-area-text-decoration: none;
#{--focus-area-text-decoration}: none;

/* VoogStyle
"pathI18n": ["focus_area", "text"],
Expand All @@ -127,7 +127,7 @@
"icon": "uppercase",
"scope": "global"
*/
--focus-area-text-transform: none;
#{--focus-area-text-transform}: none;

/* VoogStyle
"pathI18n": ["focus_area", "text"],
Expand All @@ -140,5 +140,5 @@
"--focus-area-date-color"
]
*/
--focus-area-color: $fourth-color;
#{--focus-area-color}: $fourth-color;
}
Loading

0 comments on commit cbac07e

Please sign in to comment.