From d2dabd69520d19563160da620b7d7364bcbc6a75 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Mon, 8 Jul 2019 13:11:20 +0200 Subject: [PATCH 01/11] Update font styles, change width --- client/src/components/ContentBlock.vue | 5 ++++- .../content-blocks/assignment/Assignment.vue | 1 - client/src/components/modules/Module.vue | 7 +++++-- client/src/styles/_mixins.scss | 4 ++++ client/src/styles/_objective-group.scss | 14 +++++++++----- client/src/styles/_typography.scss | 13 ++++++++----- 6 files changed, 30 insertions(+), 14 deletions(-) diff --git a/client/src/components/ContentBlock.vue b/client/src/components/ContentBlock.vue index 24bb1a9e..2d52e701 100644 --- a/client/src/components/ContentBlock.vue +++ b/client/src/components/ContentBlock.vue @@ -148,7 +148,10 @@ } &--task { - @include content-box($color-brand); + .content-block__title { + color: $color-brand; + @include light-border(bottom); + } } &--base_society { diff --git a/client/src/components/content-blocks/assignment/Assignment.vue b/client/src/components/content-blocks/assignment/Assignment.vue index 33c7b975..7647ca51 100644 --- a/client/src/components/content-blocks/assignment/Assignment.vue +++ b/client/src/components/content-blocks/assignment/Assignment.vue @@ -1,6 +1,5 @@ diff --git a/client/src/styles/_mixins.scss b/client/src/styles/_mixins.scss index 42084e7e..99e96450 100644 --- a/client/src/styles/_mixins.scss +++ b/client/src/styles/_mixins.scss @@ -57,14 +57,14 @@ } -@mixin content-box($main-color) { - background-color: rgba($main-color, 0.15); +@mixin content-box($color-list) { + background-color: nth($color-list, 2); padding: 15px; align-items: start; border-radius: $default-border-radius; /deep/ .button { - border-color: $main-color; + border-color: nth($color-list, 1); background-color: $color-white; } } diff --git a/client/src/styles/_typography.scss b/client/src/styles/_typography.scss index ba98ae3f..ec6c573a 100644 --- a/client/src/styles/_typography.scss +++ b/client/src/styles/_typography.scss @@ -72,3 +72,13 @@ input, textarea, select, button { margin-bottom: 7.5px; font-weight: 600; } + +.text-regular { + font-family: $sans-serif-font-family; + font-weight: $font-weight-regular; + font-size: toRem(18px); + + &--small { + font-size: toRem(16px); + } +} diff --git a/client/src/styles/_variables.scss b/client/src/styles/_variables.scss index cb4a296d..2cf324e0 100644 --- a/client/src/styles/_variables.scss +++ b/client/src/styles/_variables.scss @@ -19,6 +19,9 @@ $color-accent-5-dark: #09496F; $color-accent-5: #004E7C; $color-accent-5: #DBE6EC; +$color-accent-1-list: $color-accent-1 $color-accent-1-light $color-accent-1-dark; +$color-accent-2-list: $color-accent-2 $color-accent-2-light $color-accent-2-dark; + /* brand */ $color-brand-dark: #138E72; $color-brand: #17A887; From adbb6ca4d4de898d2ea0939a0f672626796b2d59 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Tue, 9 Jul 2019 15:43:43 +0200 Subject: [PATCH 05/11] Fix margin --- client/src/components/content-blocks/InstrumentWidget.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/src/components/content-blocks/InstrumentWidget.vue b/client/src/components/content-blocks/InstrumentWidget.vue index 7cbdb9ad..38d0ade8 100644 --- a/client/src/components/content-blocks/InstrumentWidget.vue +++ b/client/src/components/content-blocks/InstrumentWidget.vue @@ -14,8 +14,9 @@ diff --git a/client/src/styles/_mixins.scss b/client/src/styles/_mixins.scss index 99e96450..1f575f0a 100644 --- a/client/src/styles/_mixins.scss +++ b/client/src/styles/_mixins.scss @@ -77,7 +77,7 @@ @mixin main-title { font-family: $sans-serif-font-family; - font-weight: 700; + font-weight: 800; font-size: toRem(64px); } @@ -96,7 +96,7 @@ @mixin heading-3 { font-family: $sans-serif-font-family; font-weight: 600; - font-size: toRem(22px); + font-size: toRem(24px); } @mixin heading-4 { @@ -119,7 +119,7 @@ @mixin meta-title { font-family: $serif-font-family; - font-size: toRem(42px); + font-size: toRem(36px); } @mixin lead-paragraph { diff --git a/client/src/styles/_objective-group.scss b/client/src/styles/_objective-group.scss index 43bce60c..61ba0b66 100644 --- a/client/src/styles/_objective-group.scss +++ b/client/src/styles/_objective-group.scss @@ -14,7 +14,7 @@ } &__objective { - padding: 10px 0; + padding: $small-spacing 0; line-height: 1.5; @include light-border(top); diff --git a/client/src/styles/_typography.scss b/client/src/styles/_typography.scss index 8b6293cb..ba98ae3f 100644 --- a/client/src/styles/_typography.scss +++ b/client/src/styles/_typography.scss @@ -72,14 +72,3 @@ input, textarea, select, button { margin-bottom: 7.5px; font-weight: 600; } - -.text-regular { - font-family: $sans-serif-font-family; - font-weight: $font-weight-regular; - font-size: toRem(18px); - line-height: toRem(27px); - - &--small { - font-size: toRem(16px); - } -} From 1f72d4757f851a1187af391f49463a5ed14e83c9 Mon Sep 17 00:00:00 2001 From: Christian Cueni Date: Thu, 11 Jul 2019 09:49:39 +0200 Subject: [PATCH 10/11] Change boldest font weight --- client/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/index.html b/client/index.html index 45c9fa05..ed5ca2b8 100644 --- a/client/index.html +++ b/client/index.html @@ -6,12 +6,11 @@ skillbox - + -