-
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.
Browse files
Browse the repository at this point in the history
Task/gh 157 frontera redesign 0
- Loading branch information
Showing
30 changed files
with
1,327 additions
and
38 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
23 changes: 23 additions & 0 deletions
23
taccsite_cms/static/site_cms/css/src/_imports/components/bootstrap.container.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,23 @@ | ||
/* | ||
Container (Bootstrap) | ||
Add to Bootstrap styles. See: | ||
- [Bootstrap Grid](https://getbootstrap.com/docs/4.0/layout/grid/) | ||
Styleguide Components.Bootstrap.Grid | ||
*/ | ||
@import url("../../../../../../../taccsite_cms/static/site_shared/css/src/_imports/tools/media-queries.css"); | ||
|
||
@media (--x-wide-and-above) { | ||
.container { max-width: var(--global-max-width--x-wide); } | ||
} | ||
@media (--xx-wide-and-above) { | ||
.container { max-width: var(--global-max-width--xx-wide); } | ||
} | ||
/* FAQ: We can do this, but Design does not want to stretch this wide */ | ||
/* | ||
@media (--xxx-wide-and-above) { | ||
.container { max-width: var(--global-max-width--xxx-wide); } | ||
} | ||
*/ |
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
50 changes: 50 additions & 0 deletions
50
taccsite_cms/static/site_cms/css/src/_imports/components/c-read-more.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,50 @@ | ||
/* | ||
Read More | ||
A CSS-only way to support a "Read More…" feature. It requires a container and three children in order: | ||
- state checkbox (must be first) | ||
- target text | ||
- toggle element | ||
.c-read-more--one-line - Truncated text may only be one line tall. | ||
.c-read-more--many-lines - Truncated text may be many lines tall. | ||
Styleguide: Components.ReadMore | ||
*/ | ||
@import url("_imports/tools/x-truncate.css"); | ||
|
||
/* Truncation */ | ||
|
||
/* Many Lines */ | ||
.c-read-more--many-lines .c-read-more__target { | ||
@extend .x-truncate--many-lines; | ||
} | ||
.c-read-more--many-lines .c-read-more__state:checked ~ .c-read-more__target { | ||
@extend .x-untruncate--many-lines; | ||
} | ||
|
||
/* One Line */ | ||
.c-read-more--one-line .c-read-more__target { | ||
@extend .x-truncate--one-line; | ||
} | ||
.c-read-more--one-line .c-read-more__state:checked ~ .c-read-more__target { | ||
@extend .x-untruncate--one-line; | ||
} | ||
|
||
/* Read More / Read Less */ | ||
|
||
/* State */ | ||
.c-read-more__state, | ||
.c-read-more__on-text, | ||
.c-read-more__off-text { | ||
display: none; | ||
} | ||
.c-read-more__state:not(:checked) ~ .c-read-more__toggle .c-read-more__on-text, | ||
.c-read-more__state:checked ~ .c-read-more__toggle .c-read-more__off-text { | ||
display: block; | ||
} | ||
|
||
/* Toggle */ | ||
.c-read-more__toggle { | ||
cursor: pointer; | ||
} |
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; | ||
} |
Oops, something went wrong.