From 12fe45f7982fec92b39c8a981a0f42530e6c1c83 Mon Sep 17 00:00:00 2001 From: Malek Date: Mon, 30 Jul 2018 15:29:47 +0300 Subject: Add fonts and fix styles Issue-ID: SDC-1574 Change-Id: I8e15ebf436fa7cc293a0bf352ac365de5cc7a80c Signed-off-by: Malek --- .../resources/scss/common/_customVariables.scss | 90 ++++++++++++++++++++-- 1 file changed, 84 insertions(+), 6 deletions(-) (limited to 'workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss') diff --git a/workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss b/workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss index 997e0a21..9472fe68 100644 --- a/workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss +++ b/workflow-designer-ui/src/main/frontend/resources/scss/common/_customVariables.scss @@ -1,6 +1,90 @@ $cursor-disabled: not-allowed !default; $cursor-pointer: pointer; +$heading-font-1: 28px; +$heading-font-2: 24px; +$heading-font-3: 20px; +$heading-font-4: 16px; +$heading-font-5: 14px; + +$body-font-1: 14px; +$body-font-2: 13px; +$body-font-3: 12px; +$body-font-4: 10px; + +@mixin regular-font() { + font-family: OpenSans-Regular, Arial, sans-serif; + font-style: normal; + font-weight: 400; +} + +@mixin italic-font() { + font-family: OpenSans-Italic, OpenSans-Regular, Arial, sans-serif; + font-style: italic; + font-weight: 400; +} + +@mixin semibold-font() { + font-family: OpenSans-Semibold, Arial, sans-serif; + font-style: normal; + font-weight: 600; +} + +@mixin body-1() { + @include regular-font; + font-size: $body-font-1; +} + +@mixin body-1-semibold() { + @include semibold-font; + font-size: $body-font-1; +} + +@mixin body-2() { + @include regular-font; + font-size: $body-font-2; +} + +@mixin body-2-semibold() { + @include semibold-font; + font-size: $body-font-2; +} + +@mixin body-3() { + @include regular-font; + font-size: $body-font-3; +} + +@mixin body-4() { + @include regular-font; + font-size: $body-font-4; +} + +@mixin heading-1() { + @include regular-font; + font-size: $heading-font-1; +} + +@mixin heading-1-semibold() { + @include semibold-font; + font-size: $heading-font-1; +} + +@mixin heading-4() { + @include regular-font; + font-size: $heading-font-4; +} + +@mixin heading-4-semibold() { + @include semibold-font; + font-size: $heading-font-4; +} + +@mixin heading-5() { + @include regular-font; + font-size: $heading-font-5; +} + .flex { display: flex; flex: 1; @@ -36,9 +120,3 @@ $cursor-pointer: pointer; opacity: 0.7 !important; cursor: $cursor-disabled; } - -@mixin semi-bold() { - font-weight: 600; -}; - - -- cgit 1.2.3-korg