diff --git a/lms/static/sass/elements/_typography.scss b/lms/static/sass/elements/_typography.scss index cf98fdd8aa6e..3272bfc76e1c 100644 --- a/lms/static/sass/elements/_typography.scss +++ b/lms/static/sass/elements/_typography.scss @@ -4,6 +4,8 @@ // Scale - (6, 7, 8, 9, 10, 11, 12, 14, 16, 18, 21, 24, 36, 48, 60, 72) // weights +@import "themes/red-theme/lms/static/sass/partials/lms/theme/_variables.scss"; + %t-ultrastrong { font-weight: 700; } @@ -28,9 +30,13 @@ font-weight: 200; } +@mixin t-title{ + font-family: $font-family-sans-serif; +} + // headings/titles %t-title { - font-family: $font-family-sans-serif; + @include t-title } %t-title1 { @@ -54,11 +60,14 @@ @include line-height(36); } -%t-title4 { - @extend %t-title !optional; +@mixin t-title4{ + @include t-title; + @include font-size(24); + @include line-height(24); +} - @include font-size(24); - @include line-height(24); +%t-title4 { + @include t-title4 } %t-title5 { diff --git a/lms/static/sass/multicourse/_dashboard.scss b/lms/static/sass/multicourse/_dashboard.scss index 41cf371a0f8a..2aab653c756d 100644 --- a/lms/static/sass/multicourse/_dashboard.scss +++ b/lms/static/sass/multicourse/_dashboard.scss @@ -3,6 +3,8 @@ // +Dashboard // ==================== +@import "lms/static/sass/elements/_typography.scss"; + .dashboard { @include clearfix(); @@ -150,7 +152,7 @@ // Responsive behavior @include media-breakpoint-down(sm) { - @extend %t-title4 !optional; + @include t-title4 } } } diff --git a/scripts/scss_modernizer.py b/scripts/scss_modernizer.py index 5c79930da551..320433f6e46d 100644 --- a/scripts/scss_modernizer.py +++ b/scripts/scss_modernizer.py @@ -48,18 +48,19 @@ def process_files(directory): if __name__ == '__main__': - file_to_process = sys.argv[1] - updated_data_a = process_file(file_to_process) - update_file(file_to_process, updated_data_a) - - # print("processing LMS...") - # process_files("lms") - # - # print("processing themes...") - # process_files("themes") - # - # print("processing CMS...") - # process_files("cms") - # - # print("processing common...") - # process_files("common") + + # file_to_process = sys.argv[1] + # updated_data_a = process_file(file_to_process) + # update_file(file_to_process, updated_data_a) + + print("processing LMS...") + process_files("lms") + + print("processing themes...") + process_files("themes") + + print("processing CMS...") + process_files("cms") + + print("processing common...") + process_files("common")