OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Remove bourbon gem and load fonts manually instead. Further use correct variable definitions
Henriette Darge37e653d881b7
diff --git a/Gemfile b/Gemfileindex 4845e2279e8..a85f69dddfc 100644--- a/Gemfile+++ b/Gemfile@@ -157,7 +157,6 @@ group :production doendgem 'autoprefixer-rails', '~> 9.7.4'-gem 'bourbon', '~> 6.0.0'gem 'i18n-js', '~> 3.6.0'gem 'rails-i18n', '~> 6.0.0'gem 'sassc-rails', '~> 2.1.0'diff --git a/frontend/npm-shrinkwrap.json b/frontend/npm-shrinkwrap.jsonindex a46eb9b48f1..7f531cfc603 100644--- a/frontend/npm-shrinkwrap.json+++ b/frontend/npm-shrinkwrap.json@@ -4393,11 +4393,6 @@"resolved": "https://registry.npmjs.org/boolbase/-/boolbase-1.0.0.tgz","integrity": "sha1-aN/1++YMUes3cl6p4+0xDcwed24="},- "bourbon": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/bourbon/-/bourbon-6.0.0.tgz",- "integrity": "sha512-Skds0R1+GY3c1oBddh9BggYVq39Uo4ySvW33zttPk+4+nfGYpbZqwaDwENkbtV7PYhCk0ctTFkzfTNFv5365ag=="- },"brace-expansion": {"version": "1.1.11","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz",diff --git a/frontend/package.json b/frontend/package.jsonindex ce985792bb7..5718b941f6c 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -77,7 +77,6 @@"angular-dragula": "^1.2.8","atoa": "^1.0.0","autoprefixer": "^9.6.1",- "bourbon": "~6.0.0","browserslist": "^4.9.1","bundle-loader": "^0.5.4","caniuse-lite": "^1.0.30001019",diff --git a/frontend/src/global_styles/fonts/_lato.sass b/frontend/src/global_styles/fonts/_lato.sassindex 15cabd4a766..248bb6a47ba 100644--- a/frontend/src/global_styles/fonts/_lato.sass+++ b/frontend/src/global_styles/fonts/_lato.sass@@ -26,19 +26,38 @@// See docs/COPYRIGHT.rdoc for more details.//++-$lato-file-formats: ("woff" "woff2")+@font-face+ font-family: LatoLight+ src: url('~assets/fonts/lato/Lato-Light.woff') format('woff'), url('~assets/fonts/lato/Lato-Light.woff2') format('woff2')+ font-weight: normal+ font-style: normal-+font-face(LatoLight, 'assets/fonts/lato/Lato-Light', $file-formats: $lato-file-formats)-+font-face(LatoLight, 'assets/fonts/lato/Lato-LightItalic', $file-formats: $lato-file-formats)+@font-face+ font-family: LatoLight+ src: url('~assets/fonts/lato/Lato-LightItalic.woff') format('woff'), url('~assets/fonts/lato/Lato-LightItalic.woff2') format('woff2')+ font-weight: normalfont-style: italic-+font-face(Lato, 'assets/fonts/lato/Lato-Regular', $file-formats: $lato-file-formats)-+font-face(Lato, 'assets/fonts/lato/Lato-Italic', $file-formats: $lato-file-formats)+@font-face+ font-family: Lato+ src: url('~assets/fonts/lato/Lato-Regular.woff') format('woff'), url('~assets/fonts/lato/Lato-Regular.woff2') format('woff2')+ font-weight: normal+ font-style: normal++@font-face+ font-family: Lato+ src: url('~assets/fonts/lato/Lato-Italic.woff') format('woff'), url('~assets/fonts/lato/Lato-Italic.woff2') format('woff2')+ font-weight: normalfont-style: italic-+font-face(Lato, 'assets/fonts/lato/Lato-Bold', $file-formats: $lato-file-formats)+@font-face+ font-family: Lato+ src: url('~assets/fonts/lato/Lato-Bold.woff') format('woff'), url('~assets/fonts/lato/Lato-Bold.woff2') format('woff2')font-weight: bold+ font-style: normal-+font-face(Lato, 'assets/fonts/lato/Lato-BoldItalic', $file-formats: $lato-file-formats)+@font-face+ font-family: Lato+ src: url('~assets/fonts/lato/Lato-BoldItalic.woff') format('woff'), url('~assets/fonts/lato/Lato-BoldItalic.woff2') format('woff2')font-weight: boldfont-style: italicdiff --git a/frontend/src/global_styles/layout/_toolbar.sass b/frontend/src/global_styles/layout/_toolbar.sassindex 3188f94818d..e1f4f178222 100644--- a/frontend/src/global_styles/layout/_toolbar.sass+++ b/frontend/src/global_styles/layout/_toolbar.sass@@ -226,7 +226,7 @@ $nm-color-success-background: #d8fdd1line-height: 34pxheight: 34px@include breakpoint(medium down)- font-size: $h2-font-size+ font-size: var(--h2-font-size)&:focus, &:hoveroutline: 1px solid #ddddiff --git a/frontend/src/global_styles/openproject/_mixins.sass b/frontend/src/global_styles/openproject/_mixins.sassindex 435d656fd74..c850d45cd46 100644--- a/frontend/src/global_styles/openproject/_mixins.sass+++ b/frontend/src/global_styles/openproject/_mixins.sass@@ -31,7 +31,7 @@@mixin default-font($color, $font-size: 13px, $font-weight: normal)color: $color- font-family: $body-font-family+ font-family: var(--body-font-family)font-size: $font-sizefont-weight: $font-weightdiff --git a/frontend/src/global_styles/openproject/_variables.scss b/frontend/src/global_styles/openproject/_variables.scssindex dd6346ac343..d0dc7329ce0 100644--- a/frontend/src/global_styles/openproject/_variables.scss+++ b/frontend/src/global_styles/openproject/_variables.scss@@ -32,7 +32,7 @@--primary-color: #1A67A3;--primary-color-dark: #175A8E;--alternative-color: #35C53F;- --body-font-family: "'Lato'; 'Lucida Grande', Helvetica, Arial, sans-serif";+ --body-font-family: 'Lato', 'Lucida Grande', Helvetica, Arial, sans-serif;--gray: #EAEAEA;--gray-dark: #878787;--gray-light: #F8F8F8;diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/_global.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/_global.scssindex 7a21f17feb1..afeffb63768 100755--- a/frontend/src/global_styles/vendor/foundation-apps/scss/_global.scss+++ b/frontend/src/global_styles/vendor/foundation-apps/scss/_global.scss@@ -86,11 +86,11 @@ $foundation-colors: (// Default body stylesbody {- background: $body-background;+ background: var(--body-background);color: var(--body-font-color);padding: 0;margin: 0;- font-family: $body-font-family;+ font-family: var(--body-font-family);font-weight: $body-font-weight;font-style: $body-font-style;line-height: 1;diff --git a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_typography.scss b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_typography.scssindex c1a9f6165fb..c3bc939e90f 100755--- a/frontend/src/global_styles/vendor/foundation-apps/scss/components/_typography.scss+++ b/frontend/src/global_styles/vendor/foundation-apps/scss/components/_typography.scss@@ -17,7 +17,7 @@/// @Foundation.settings// Typography// We use these to control header font styles-$header-font-family: $body-font-family !default;+$header-font-family: var(--body-font-family) !default;$header-font-weight: $font-weight-normal !default;$header-font-style: $font-weight-normal !default;$header-font-color: #222 !default;@@ -208,12 +208,12 @@ $acronym-underline: 1px dotted #ddd !default;}}- h1 { font-size: $h1-font-size - $h1-font-reduction; }- h2 { font-size: $h2-font-size - $h2-font-reduction; }- h3 { font-size: $h3-font-size - $h3-font-reduction; }- h4 { font-size: $h4-font-size - $h4-font-reduction; }- h5 { font-size: $h5-font-size - $h5-font-reduction; }- h6 { font-size: $h6-font-size - $h6-font-reduction; }+ h1 { font-size: var(--h1-font-size) - $h1-font-reduction; }+ h2 { font-size: var(--h2-font-size) - $h2-font-reduction; }+ h3 { font-size: var(--h3-font-size) - $h3-font-reduction; }+ h4 { font-size: var(--h4-font-size) - $h4-font-reduction; }+ h5 { font-size: var(--h5-font-size) - $h5-font-reduction; }+ h6 { font-size: var(--h6-font-size) - $h6-font-reduction; }.subheader { @include subheader; }@@ -337,11 +337,11 @@ $acronym-underline: 1px dotted #ddd !default;@include breakpoint(medium) {h1,h2,h3,h4,h5,h6 { line-height: $header-line-height; }- h1 { font-size: $h1-font-size; }- h2 { font-size: $h2-font-size; }- h3 { font-size: $h3-font-size; }- h4 { font-size: $h4-font-size; }- h5 { font-size: $h5-font-size; }- h6 { font-size: $h6-font-size; }+ h1 { font-size: var(--h1-font-size); }+ h2 { font-size: var(--h2-font-size); }+ h3 { font-size: var(--h3-font-size); }+ h4 { font-size: var(--h4-font-size); }+ h5 { font-size: var(--h5-font-size); }+ h6 { font-size: var(--h6-font-size); }}}diff --git a/frontend/src/styles.scss b/frontend/src/styles.scssindex 9d93458177b..454d84bcc9a 100644--- a/frontend/src/styles.scss+++ b/frontend/src/styles.scss@@ -7,7 +7,6 @@@import "global_styles/openproject/_settings.scss";// Dependencies-@import "~bourbon/core/bourbon";@import "global_styles/vendor/foundation-apps/scss/foundation.scss";// Core styles