-
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.
- Loading branch information
1 parent
419fdd2
commit d175354
Showing
2 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
taccsite_cms/static/site_cms/css/src/_imports/components/c-callout.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,82 @@ | ||
/* | ||
Callout | ||
Interrupt or end Sections with a "call to action". | ||
Markup: | ||
<aside class="c-callout"> | ||
<h2 class="c-callout__title"> | ||
Quick Start Guide | ||
</h2> | ||
<p class="c-callout__desc"> | ||
Explore the Frontera User Guide to learn how to get started, see what Frontera offers, and get answers to your questions. | ||
</p> | ||
<figure class="c-callout__figure">...</figure> | ||
</aside> | ||
Styleguide Components.Callout | ||
*/ | ||
@import url("_imports/tools/media-queries.css"); | ||
|
||
|
||
|
||
|
||
|
||
/* Layout */ | ||
|
||
.c-callout { | ||
display: grid; | ||
grid-template-areas: | ||
'figure title' | ||
'figure desc'; | ||
|
||
padding: 20px; | ||
} | ||
.c-callout__figure { grid-area: figure; } | ||
.c-callout__title { grid-area: title; } | ||
.c-callout__desc { grid-area: desc; } | ||
|
||
/* To hide figure on narrow window */ | ||
@media only screen and (--narrow-and-below) { | ||
.c-callout { column-gap: 0px; } | ||
.c-callout__figure { display: none; } | ||
} | ||
@media only screen and (--narrow-and-above) { | ||
.c-callout { column-gap: 40px; } | ||
} | ||
|
||
/* To align image to exact center */ | ||
.c-callout__figure { | ||
place-self: center; | ||
margin: 0; /* override Bootstrap and browser */ | ||
} | ||
|
||
/* To force wrap before full width (to match design) */ | ||
/* NOTE: 1200px window, design has 15px but this was 7px (wraps the same) */ | ||
/* FAQ: Differ from design so narrow screen wrap limit is not noticeable */ | ||
.c-callout__desc { padding-right: 1%; } | ||
|
||
|
||
|
||
|
||
|
||
/* Style */ | ||
|
||
.c-callout { | ||
/* HELP: Should this color change if it is in a dark `o-section`? */ | ||
/* SEE: https://confluence.tacc.utexas.edu/x/DyUFDg */ | ||
background-color: var(--global-color-link-on-light--normal); | ||
} | ||
.c-callout__title { | ||
padding-bottom: 12px; | ||
margin-bottom: 12px; | ||
border-bottom: 1px solid var(--global-color-primary--xx-light); | ||
|
||
font-size: var(--global-font-size--x-large); | ||
font-weight: var(--medium); | ||
color: var(--global-color-primary--xx-light); /* override `html-elements.css` */ | ||
} | ||
.c-callout__desc { | ||
font-size: var(--global-font-size--large); | ||
color: var(--global-color-primary--xx-light); | ||
} |
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