-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-171: Major: Change standard font family for CMS
- Use "Benton Sans" as standard CMS font. - Use "Roboto" as backup CMS font. - Preserve "Roboto" as search form font (to match Portal). - Add two sets of font weight variables (consistent naming & shorthand). SEE: [Shared UI - Constants - Font](https://confluence.tacc.utexas.edu/x/cYAZCg)
- Loading branch information
1 parent
5976828
commit 1cfbb59
Showing
10 changed files
with
125 additions
and
35 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
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
54 changes: 54 additions & 0 deletions
54
taccsite_cms/static/site_cms/css/src/_imports/generics/fonts.css
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,54 @@ | ||
/* | ||
Fonts | ||
Load standard fonts for a TACC website. | ||
Usage: | ||
``` | ||
.something { | ||
// BentonSans-MediumItalic | ||
font-family: 'Benton Sans'; | ||
font-weight: 500; | ||
font-style: italic; | ||
} | ||
``` | ||
Reference: | ||
- [Keep Font CSS Simple](https://www.456bereastreet.com/archive/201012/font-face_tip_define_font-weight_and_font-style_to_keep_your_css_simple/) | ||
- [font-weight](https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight) | ||
- [Shared UI - Constants - Font](https://confluence.tacc.utexas.edu/x/cYAZCg) | ||
Styleguide Generics.Fonts | ||
*/ | ||
|
||
@font-face { | ||
font-family: 'Benton Sans'; | ||
src: url("/static/frontera-cms/fonts/archive/BentonSans-Regular.otf") format("opentype"); | ||
font-weight: 400; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Benton Sans'; | ||
src: url("/static/frontera-cms/fonts/archive/BentonSans-Bold.otf") format("opentype"); | ||
font-weight: 700; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Benton Sans'; | ||
src: url("/static/frontera-cms/fonts/archive/BentonSans-Medium.otf") format("opentype"); | ||
font-weight: 500; | ||
font-style: normal; | ||
font-display: swap; | ||
} | ||
|
||
@font-face { | ||
font-family: 'Benton Sans'; | ||
src: url("/static/frontera-cms/fonts/archive/BentonSans-MediumItalic.otf") format("opentype"); | ||
font-weight: 500; | ||
font-style: italic; | ||
font-display: swap; | ||
} |
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,7 @@ | ||
/* DO NOT ADD STYLES HERE; ONLY IMPORT OTHER STYLESHEETS */ | ||
|
||
/* Organize via ITCSS */ | ||
/* SEE: https://confluence.tacc.utexas.edu/x/IAA9Cw */ | ||
|
||
/* GENERICS */ | ||
@import url("_imports/generics/fonts.css"); |
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