-
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.
feat/tup-648 Migrate u-header from tup-ui to core-stlyes (#261)
* Added demo and style for u-highlight. * Update src/lib/_imports/trumps/u-highlight/readme.md Co-authored-by: Wesley B <62723358+wesleyboar@users.noreply.github.com> * Adjusting demo to only showcase highlight * adjusted to comments added u-highlight container max-width, and u-highlight padding-inline. --------- Co-authored-by: Wesley B <62723358+wesleyboar@users.noreply.github.com>
- Loading branch information
1 parent
3149826
commit b00917b
Showing
8 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.u-highlight { | ||
/* So wrapped inline text has consistent padding */ | ||
-webkit-box-decoration-break: clone; | ||
box-decoration-break: clone; | ||
} | ||
:is(h1, h2, h3, h4).u-highlight { | ||
display: inline; | ||
} |
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,5 @@ | ||
To style the highlighting behind text. | ||
**Use Cases:** | ||
- The hero image text on the [TACC homepage](https://www.tacc.utexas.edu/) | ||
|
||
`display: inline` is required to keep highlight behind text only, instead of filling the container the text is within. |
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,11 @@ | ||
.u-highlight-container { | ||
max-width: 800px; | ||
} | ||
|
||
.u-highlight { | ||
padding-inline: 10px; | ||
color: var(--global-color-primary--xx-light); | ||
background-color: var(--global-color-primary--xxx-dark); | ||
line-height: 1; | ||
text-transform: uppercase; | ||
} |
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,4 @@ | ||
<div class="u-highlight-container"> | ||
<h2 class="u-highlight">Going Strong: Computational researchers present | ||
findings at third Frontera User Meeting</h2> | ||
</div> |