diff --git a/client/index.html b/client/index.html index 45c9fa05..2f9e0886 100644 --- a/client/index.html +++ b/client/index.html @@ -6,11 +6,14 @@
{{assignment.assignment}}
@@ -255,13 +254,13 @@ padding: 5px 0; margin-right: 15px; outline: 0; - color: $color-grey; + color: $color-silver-dark; cursor: pointer; border-bottom: 2px solid transparent; &--active { - border-bottom-color: $color-darkgrey-1; - color: $color-darkgrey-1; + border-bottom-color: $color-charcoal-dark; + color: $color-charcoal-dark; } } diff --git a/client/src/components/content-blocks/assignment/SubmissionForm.vue b/client/src/components/content-blocks/assignment/SubmissionForm.vue index 8ac8ee83..dd61eee7 100644 --- a/client/src/components/content-blocks/assignment/SubmissionForm.vue +++ b/client/src/components/content-blocks/assignment/SubmissionForm.vue @@ -66,13 +66,13 @@ &__save-status-icon { width: 22px; height: 22px; - fill: $color-grey; + fill: $color-silver-dark; margin-right: 8px; } &__save-status-text { font-size: toRem(14px); - color: $color-grey; + color: $color-silver-dark; } @keyframes spin { diff --git a/client/src/components/content-forms/ContentBlockElementChooserWidget.vue b/client/src/components/content-forms/ContentBlockElementChooserWidget.vue index 0ce15f71..1287a698 100644 --- a/client/src/components/content-forms/ContentBlockElementChooserWidget.vue +++ b/client/src/components/content-forms/ContentBlockElementChooserWidget.vue @@ -84,7 +84,7 @@ grid-column-gap: 0px; font-family: $sans-serif-font-family; text-align: center; - border: 2px solid $color-grey; + border: 2px solid $color-silver-dark; padding: 30px 5px; border-radius: 12px; margin-top: 20px; @@ -126,7 +126,7 @@ position: absolute; width: 20px; height: 20px; - border: 2px solid $color-grey; + border: 2px solid $color-silver-dark; border-bottom: 0; border-right: 0; background-color: white; diff --git a/client/src/components/content-forms/DocumentForm.vue b/client/src/components/content-forms/DocumentForm.vue index 4f23d235..d09c36ae 100644 --- a/client/src/components/content-forms/DocumentForm.vue +++ b/client/src/components/content-forms/DocumentForm.vue @@ -73,7 +73,7 @@ & + label { cursor: pointer; - background-color: $color-lightgrey; + background-color: $color-silver-light; height: 150px; display: flex; width: 100%; diff --git a/client/src/components/content-forms/ImageForm.vue b/client/src/components/content-forms/ImageForm.vue index e588d5b3..259de7dd 100644 --- a/client/src/components/content-forms/ImageForm.vue +++ b/client/src/components/content-forms/ImageForm.vue @@ -101,7 +101,7 @@ & + label { cursor: pointer; - background-color: $color-lightgrey; + background-color: $color-silver-light; height: 150px; display: flex; width: 100%; diff --git a/client/src/components/inputs/BaseInput.vue b/client/src/components/inputs/BaseInput.vue index 00b20304..e0c0c59f 100644 --- a/client/src/components/inputs/BaseInput.vue +++ b/client/src/components/inputs/BaseInput.vue @@ -68,7 +68,7 @@ width: 20px; height: 20px; display: flex; - border: 2px solid $color-grey; + border: 2px solid $color-silver-dark; justify-content: center; align-items: center; box-sizing: border-box; diff --git a/client/src/components/modules/Module.vue b/client/src/components/modules/Module.vue index 2f808dc0..6cf8b602 100644 --- a/client/src/components/modules/Module.vue +++ b/client/src/components/modules/Module.vue @@ -147,7 +147,7 @@ display: flex; justify-self: center; @include desktop { - width: 640px; + width: 800px; } flex-direction: column; padding: $large-spacing 15px; @@ -166,9 +166,11 @@ } &__meta-title { - font-size: 2.6rem; + color: $color-silver-dark; + font-size: 2.25rem; font-weight: 300; font-family: $serif-font-family; + line-height: 3.25rem; } &__intro { @@ -184,5 +186,6 @@ } } } + } diff --git a/client/src/components/modules/ModuleNavigation.vue b/client/src/components/modules/ModuleNavigation.vue index a7c3fd4e..d9f54bf6 100644 --- a/client/src/components/modules/ModuleNavigation.vue +++ b/client/src/components/modules/ModuleNavigation.vue @@ -101,7 +101,7 @@ @mixin module-navigation-typography { font-family: $sans-serif-font-family; - color: $color-grey; + color: $color-silver-dark; font-weight: $font-weight-regular; } diff --git a/client/src/components/modules/ModuleTeaser.vue b/client/src/components/modules/ModuleTeaser.vue index 0883365f..fb0f23d3 100644 --- a/client/src/components/modules/ModuleTeaser.vue +++ b/client/src/components/modules/ModuleTeaser.vue @@ -56,7 +56,7 @@ } &__meta-title { - color: $color-grey; + color: $color-silver-dark; margin-bottom: $large-spacing; @include regular-text; } diff --git a/client/src/components/page-form/PageForm.vue b/client/src/components/page-form/PageForm.vue index 69aca5b0..47f54b19 100644 --- a/client/src/components/page-form/PageForm.vue +++ b/client/src/components/page-form/PageForm.vue @@ -57,7 +57,7 @@ } &__footer { - border-top: 1px solid $color-lightgrey; + border-top: 1px solid $color-silver-light; padding: $small-spacing $medium-spacing; } } diff --git a/client/src/components/portfolio/ProjectActions.vue b/client/src/components/portfolio/ProjectActions.vue index 02e0a556..f27e1641 100644 --- a/client/src/components/portfolio/ProjectActions.vue +++ b/client/src/components/portfolio/ProjectActions.vue @@ -108,7 +108,7 @@ svg { width: 30px; - fill: $color-darkgrey-1; + fill: $color-charcoal-dark; margin-right: 15px; } } diff --git a/client/src/components/portfolio/ProjectEntry.vue b/client/src/components/portfolio/ProjectEntry.vue index 35e15ad9..3efab961 100644 --- a/client/src/components/portfolio/ProjectEntry.vue +++ b/client/src/components/portfolio/ProjectEntry.vue @@ -98,7 +98,7 @@ &__date { font-family: $sans-serif-font-family; - color: $color-grey; + color: $color-silver-dark; font-size: toRem(17px); } diff --git a/client/src/components/profile/Avatar.vue b/client/src/components/profile/Avatar.vue index 0b8d7eb7..8e781a7e 100644 --- a/client/src/components/profile/Avatar.vue +++ b/client/src/components/profile/Avatar.vue @@ -47,7 +47,7 @@ &__placeholder { height: $max-width; - fill: $color-grey; + fill: $color-silver-dark; &--highlighted { fill: $color-brand; diff --git a/client/src/components/profile/Classlist.vue b/client/src/components/profile/Classlist.vue index c28b2f5d..7689be92 100644 --- a/client/src/components/profile/Classlist.vue +++ b/client/src/components/profile/Classlist.vue @@ -35,7 +35,7 @@ &__item { line-height: $height; height: $height; - border-bottom: 1px solid $color-grey; + border-bottom: 1px solid $color-silver-dark; } } diff --git a/client/src/components/profile/ModuleActivity.vue b/client/src/components/profile/ModuleActivity.vue index 29ee43d1..7af3595d 100644 --- a/client/src/components/profile/ModuleActivity.vue +++ b/client/src/components/profile/ModuleActivity.vue @@ -65,7 +65,7 @@ &__module-name { @include small-text; - color: $color-grey; + color: $color-silver-dark; } } diff --git a/client/src/components/profile/PasswordChangeForm.vue b/client/src/components/profile/PasswordChangeForm.vue index a5f58eda..98749d10 100644 --- a/client/src/components/profile/PasswordChangeForm.vue +++ b/client/src/components/profile/PasswordChangeForm.vue @@ -109,7 +109,7 @@ &__hint { margin-top: $small-spacing; font-family: $sans-serif-font-family; - color: $color-grey; + color: $color-silver-dark; } } diff --git a/client/src/components/rooms/EntryCountWidget.vue b/client/src/components/rooms/EntryCountWidget.vue index 46e81309..a925e2b2 100644 --- a/client/src/components/rooms/EntryCountWidget.vue +++ b/client/src/components/rooms/EntryCountWidget.vue @@ -27,7 +27,7 @@ svg { width: 30px; - fill: $color-darkgrey-1; + fill: $color-charcoal-dark; margin-right: 15px; } diff --git a/client/src/components/rooms/RoomActions.vue b/client/src/components/rooms/RoomActions.vue index b284dfff..d2c1217e 100644 --- a/client/src/components/rooms/RoomActions.vue +++ b/client/src/components/rooms/RoomActions.vue @@ -74,7 +74,7 @@ svg { width: 30px; - fill: $color-darkgrey-1; + fill: $color-charcoal-dark; margin-right: 15px; } } diff --git a/client/src/components/rooms/RoomGroupWidget.vue b/client/src/components/rooms/RoomGroupWidget.vue index 6508b25b..57b4d744 100644 --- a/client/src/components/rooms/RoomGroupWidget.vue +++ b/client/src/components/rooms/RoomGroupWidget.vue @@ -29,7 +29,7 @@ svg { width: 30px; - fill: $color-darkgrey-1; + fill: $color-charcoal-dark; margin-right: 15px; } diff --git a/client/src/components/rooms/RoomWidget.vue b/client/src/components/rooms/RoomWidget.vue index 49d05a29..7fab1336 100644 --- a/client/src/components/rooms/RoomWidget.vue +++ b/client/src/components/rooms/RoomWidget.vue @@ -79,13 +79,13 @@ svg { width: 30px; - fill: $color-darkgrey-1; + fill: $color-charcoal-dark; margin-right: 15px; } &__content { padding: 22px; - color: $color-darkgrey-1; + color: $color-charcoal-dark; cursor: pointer; /* diff --git a/client/src/components/rooms/WidgetPopover.vue b/client/src/components/rooms/WidgetPopover.vue index 31b0f57d..e97784f3 100644 --- a/client/src/components/rooms/WidgetPopover.vue +++ b/client/src/components/rooms/WidgetPopover.vue @@ -40,7 +40,7 @@ &__link { & > a { display: inline-block; - color: $color-grey; + color: $color-silver-dark; font-family: $sans-serif-font-family; font-size: toRem(14px); line-height: 1.5; diff --git a/client/src/components/visibility/VisibilityPopover.vue b/client/src/components/visibility/VisibilityPopover.vue index 883bd795..3f859075 100644 --- a/client/src/components/visibility/VisibilityPopover.vue +++ b/client/src/components/visibility/VisibilityPopover.vue @@ -112,7 +112,7 @@ .visibility-menu { border-radius: 13px; - border: 1px solid $color-lightgrey; + border: 1px solid $color-silver-light; box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.15); width: 180px; box-sizing: border-box; diff --git a/client/src/pages/project.vue b/client/src/pages/project.vue index 1ac73b1e..03b960c2 100644 --- a/client/src/pages/project.vue +++ b/client/src/pages/project.vue @@ -165,7 +165,7 @@ } &__content { - background-color: rgba($color-darkgrey-1, 0.18); + background-color: rgba($color-charcoal-dark, 0.18); display: flex; flex-direction: column; /*max-width: 840px;*/ diff --git a/client/src/pages/room.vue b/client/src/pages/room.vue index a1001222..9b781af1 100644 --- a/client/src/pages/room.vue +++ b/client/src/pages/room.vue @@ -131,7 +131,7 @@ &__content { padding: 50px 15px; - background-color: rgba($color-darkgrey-1, 0.18); + background-color: rgba($color-charcoal-dark, 0.18); @include desktop { columns: 4; padding: 50px 60px; diff --git a/client/src/pages/start.vue b/client/src/pages/start.vue index 0fde6ae4..b95af4cc 100644 --- a/client/src/pages/start.vue +++ b/client/src/pages/start.vue @@ -122,7 +122,7 @@ &__title { color: $color-brand; text-align: center; - border-bottom: 1px solid $color-lightgrey; + border-bottom: 1px solid $color-silver-light; padding-bottom: 30px; margin-left: 30px; margin-right: 30px; @@ -182,7 +182,7 @@ } .news { - background-color: $color-darkgrey-1; + background-color: $color-charcoal-dark; color: $color-white; padding-top: $large-spacing; padding-bottom: $large-spacing; @@ -246,7 +246,7 @@ @include desktop { text-align: left; - border-left: 1px solid $color-lightgrey; + border-left: 1px solid $color-silver-light; } } } diff --git a/client/src/pages/topic.vue b/client/src/pages/topic.vue index 4cc38290..091686a5 100644 --- a/client/src/pages/topic.vue +++ b/client/src/pages/topic.vue @@ -69,7 +69,7 @@ .topic { &__teaser { - color: $color-darkgrey-1; + color: $color-charcoal-dark; width: 90%; @include lead-paragraph; margin-bottom: $large-spacing; diff --git a/client/src/styles/_actions.scss b/client/src/styles/_actions.scss index 20ab33c1..ee7a9673 100644 --- a/client/src/styles/_actions.scss +++ b/client/src/styles/_actions.scss @@ -1,5 +1,5 @@ .action-icon { width: 40px; height: 40px; - fill: $color-grey; + fill: $color-silver-dark; } diff --git a/client/src/styles/_article.scss b/client/src/styles/_article.scss index ef3787c8..a5595082 100644 --- a/client/src/styles/_article.scss +++ b/client/src/styles/_article.scss @@ -11,7 +11,7 @@ } &__meta { - border-bottom: 1px solid $color-lightgrey; + border-bottom: 1px solid $color-silver-light; align-self: end; padding: 20px 0; width: 100%; diff --git a/client/src/styles/_buttons.scss b/client/src/styles/_buttons.scss index 6faafa9d..fccfe2ec 100644 --- a/client/src/styles/_buttons.scss +++ b/client/src/styles/_buttons.scss @@ -1,6 +1,6 @@ .button { background: transparent; - border: 2px solid $color-grey; + border: 2px solid $color-silver-dark; padding: 5px 15px; border-radius: 3px; font-family: $sans-serif-font-family; @@ -20,8 +20,8 @@ background-color: $color-white; } &--disabled { - border: 2px solid $color-lightgrey; - background-color: $color-lightgrey; + border: 2px solid $color-silver-light; + background-color: $color-silver-light; } } @@ -35,7 +35,7 @@ &__icon { width: 25px; height: 25px; - fill: $color-grey; + fill: $color-silver-dark; cursor: pointer; justify-self: center; } diff --git a/client/src/styles/_forms.scss b/client/src/styles/_forms.scss index 22248bf6..dceb4cd4 100644 --- a/client/src/styles/_forms.scss +++ b/client/src/styles/_forms.scss @@ -4,7 +4,7 @@ box-shadow: inset 0 1px 4px 0 rgba(0, 0, 0, 0.15); border-radius: 4px; box-sizing: border-box; - border: 1px solid $color-lightgrey; + border: 1px solid $color-silver-light; max-width: 100%; background-color: $color-white; } diff --git a/client/src/styles/_mixins.scss b/client/src/styles/_mixins.scss index 4880edc7..1f575f0a 100644 --- a/client/src/styles/_mixins.scss +++ b/client/src/styles/_mixins.scss @@ -8,7 +8,7 @@ @mixin widget-shadow { @include widget-shadow-base; - border: 1px solid $color-lightgrey; + border: 1px solid $color-silver-light; } @mixin widget-shadow-reverse { @@ -19,7 +19,7 @@ @mixin room-widget-text-style { font-family: $sans-serif-font-family; font-size: 1rem; - fill: $color-darkgrey-1; + fill: $color-charcoal-dark; } @mixin input-box-shadow { @@ -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; } } @@ -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 { @@ -138,3 +138,7 @@ margin-bottom: $medium-spacing; @include heading-3; } + +@mixin light-border($border-position) { + border-#{$border-position}: 1px solid $color-silver; +} diff --git a/client/src/styles/_objective-group.scss b/client/src/styles/_objective-group.scss index f61ffbc1..61ba0b66 100644 --- a/client/src/styles/_objective-group.scss +++ b/client/src/styles/_objective-group.scss @@ -1,13 +1,11 @@ @import 'variables'; +@import 'mixins'; .objective-group { - background-color: $color-lightgrey; - padding: 17px; margin-bottom: 35px; &__objective-list { - padding-left: 20px; - list-style: disc; + list-style: none; &--no-list { list-style: none; @@ -16,7 +14,13 @@ } &__objective { - margin-bottom: 28px; + padding: $small-spacing 0; line-height: 1.5; + @include light-border(top); + + } + + &:last-child { + @include light-border(bottom); } } diff --git a/client/src/styles/_top-navigation.scss b/client/src/styles/_top-navigation.scss index 4c93a283..7f4f07fa 100644 --- a/client/src/styles/_top-navigation.scss +++ b/client/src/styles/_top-navigation.scss @@ -6,7 +6,7 @@ padding: 0 24px; font-family: $sans-serif-font-family; font-weight: $font-weight-regular; - color: $color-grey; + color: $color-silver-dark; &--active { color: $color-brand; diff --git a/client/src/styles/_typography.scss b/client/src/styles/_typography.scss index b9a9b620..ba98ae3f 100644 --- a/client/src/styles/_typography.scss +++ b/client/src/styles/_typography.scss @@ -5,12 +5,13 @@ * { font-size: $base-font-size; font-weight: $font-weight-regular; - color: $color-darkgrey-1; + color: $color-charcoal-dark; } h1, h2, h3, h4, h5 { font-family: $sans-serif-font-family; font-weight: 600; + color: $header-color } p, a, li { @@ -30,26 +31,33 @@ a { h1 { font-size: 2rem; font-weight: 800; - color: $header-color; - margin-bottom: 35px; + margin-bottom: 21px; @include desktop { font-size: 4rem; // 64px + line-height: 4.5rem; + margin-bottom: 20px; } } h2 { - font-size: 2.625rem; // 42px + font-size: 2.75rem; // 44px margin-bottom: 24px; } h3 { - font-size: 2.1875rem; // 35px - margin-bottom: 24px; + font-size: 2.125rem; // 34px + line-height: 2.63rem; // 42px + margin-bottom: 52px; } h4 { - font-size: 1.3125rem; // 21px + font-size: 1.5rem; // 24px + margin-bottom: 24px; +} + +h5 { + font-size: 1.125rem; // 18px margin-bottom: 24px; } diff --git a/client/src/styles/_uploadcare_overwrite.scss b/client/src/styles/_uploadcare_overwrite.scss index d25d3886..690d414e 100644 --- a/client/src/styles/_uploadcare_overwrite.scss +++ b/client/src/styles/_uploadcare_overwrite.scss @@ -1,5 +1,5 @@ .uploadcare--panel { - background: $color-lightgrey; + background: $color-silver-light; height: 200px; border: none; border-radius: 0; diff --git a/client/src/styles/_variables.scss b/client/src/styles/_variables.scss index a186ef59..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; @@ -27,17 +30,20 @@ $color-brand-light: #DCF2ED; $color-error: #C02108; /* greyscale */ -$color-darkgrey-1: #333333; -$color-grey: #999999; +$color-silver: #d0d0d0; +$color-silver-light: #f0f0f0; +$color-silver-dark: #aaaaaa; + +$color-charcoal: #616161; +$color-charcoal-light: #828282; +$color-charcoal-dark: #333333; + //$color-grey--lighter: rgba(51, 51, 51, 0.18); $color-grey--lighter: transparent; -$color-lightgrey: #f0f0f0; $color-white: #ffffff; - - -$header-color: $color-darkgrey-1; -$intro-color: $color-grey; +$header-color: $color-charcoal-dark; +$intro-color: $color-silver-dark; $sans-serif-font-family: 'Montserrat', Arial, sans-serif; $serif-font-family: "ff-meta-serif-web-pro", serif; diff --git a/server/books/blocks.py b/server/books/blocks.py index 5343cb7b..70317c80 100644 --- a/server/books/blocks.py +++ b/server/books/blocks.py @@ -73,6 +73,10 @@ class InfogramBlock(blocks.StructBlock): class GeniallyBlock(blocks.StructBlock): id = blocks.TextBlock() + +class SubtitleBlock(blocks.StructBlock): + text = blocks.TextBlock() + # 'text_block' 'task' 'basic_knowledge' 'student_entry' 'image_block' # # url = blocks.URLBlock() diff --git a/server/books/models/contentblock.py b/server/books/models/contentblock.py index 907efe5f..9044abd7 100644 --- a/server/books/models/contentblock.py +++ b/server/books/models/contentblock.py @@ -6,7 +6,7 @@ from wagtail.core.fields import StreamField from wagtail.images.blocks import ImageChooserBlock from books.blocks import TextBlock, BasicKnowledgeBlock, LinkBlock, VideoBlock, DocumentBlock, \ - ImageUrlBlock, AssignmentBlock, InfogramBlock, GeniallyBlock + ImageUrlBlock, AssignmentBlock, InfogramBlock, GeniallyBlock, SubtitleBlock from core.wagtail_utils import StrictHierarchyPage from users.models import SchoolClass @@ -46,6 +46,7 @@ class ContentBlock(StrictHierarchyPage): ('document_block', DocumentBlock()), ('infogram_block', InfogramBlock()), ('genially_block', GeniallyBlock()), + ('subtitle', SubtitleBlock()), ], null=True, blank=True) type = models.CharField(