forked from joomla/joomla-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request joomla#61 from richard67/development-fonts-enhance…
…ments Change "Google Fonts" to "Font Schemes", multiple enhancements and clean up - Remove previosly added local fonts. - Do not use `build/media_source/fonts` and `media/fonts` anymore. - Only use local fonts which are already available in the core - currently this is only Roboto, which is used by Atum and comes as NPM dependency). - Add back the possibility to use fonts from web. - Add 2 font schemes using Google Fonts from web for testing the new design. - Use CSS variables to set font families and weights for headings and body - more variables might be added later with this PR or future PR while the final design is being implemented. - Simplify UX: Only one grouped list field for selecting the font schemes or no font scheme, ie no need to first switch it on with one switcher and then in another field selecting the font scheme, it can be done in one step now. - Remove the description from the remaining field. - Show a warning note about possible GDPR issues with fonts from web and possible performance issues with fonts from local folders.
- Loading branch information
Showing
32 changed files
with
79 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Fonts | ||
@import "../../../media/vendor/roboto-fontface/scss/roboto/roboto-fontface.css"; | ||
|
||
:root { | ||
--cassiopeia-font-family-body: "Roboto", sans-serif; | ||
--cassiopeia-font-family-headings: "Roboto", sans-serif; | ||
--cassiopeia-font-weight-headings: bold; | ||
} |
8 changes: 8 additions & 0 deletions
8
templates/cassiopeia/scss/global/fonts-web_poppins+roboto.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Fonts | ||
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;700&family=Roboto:wght@400;700&display=swap'); | ||
|
||
:root { | ||
--cassiopeia-font-family-body: "Roboto", sans-serif; | ||
--cassiopeia-font-family-headings: "Poppins", sans-serif; | ||
--cassiopeia-font-weight-headings: normal; | ||
} |
8 changes: 8 additions & 0 deletions
8
templates/cassiopeia/scss/global/fonts-web_roboto+noto-sans.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Fonts | ||
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:wght@100;300;400;700&family=Roboto:wght@100;300;400;700&display=swap'); | ||
|
||
:root { | ||
--cassiopeia-font-family-body: "Noto Sans", sans-serif; | ||
--cassiopeia-font-family-headings: "Roboto", sans-serif; | ||
--cassiopeia-font-weight-headings: normal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters