-
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: updates from tup-ui (except paths)
TACC/tup-ui@a30002a TACC/tup-ui@24db51b TACC/tup-ui@141464f P.S. a30002a originates from TACC/tup-ui#38
- Loading branch information
1 parent
8d5129c
commit 5803ef7
Showing
9 changed files
with
697 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
Form (Bootstrap) | ||
Override Bootstrap styles. See: | ||
- [ReactStrap Forms](https://reactstrap.github.io/components/form/) | ||
- [Bootstrap Forms](https://getbootstrap.com/docs/4.4/components/forms/) | ||
Styleguide Components.Bootstrap.Form | ||
*/ | ||
@import url('../settings/border.css'); | ||
|
||
.form-control { | ||
border: var(--global-border--normal); | ||
border-radius: 0; | ||
} | ||
input.form-control, | ||
textarea.form-control { | ||
/* FAQ: Vertical padding reduced by 1px each to near input height of design * 1.2 */ | ||
padding: 6px 12px; /* 6px 10px design * 1.2 design-to-app ratio */ | ||
} | ||
.input-group-prepend { | ||
z-index: 1; /* so child button border is above sibling input border */ | ||
} |
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,74 @@ | ||
/* TODO: Migrate any other should-be-global Portal modal styles to here */ | ||
/* FP-344: Consider a Modal component and a CSS module */ | ||
/* | ||
Modal (Bootstrap) | ||
Override Bootstrap styles. See: | ||
- [ReactStrap Forms](https://reactstrap.github.io/components/modals/) | ||
- [Bootstrap Forms](https://getbootstrap.com/docs/4.4/components/modal/) | ||
Styleguide Components.Bootstrap.Modal | ||
*/ | ||
@import url('../tools/x-truncate.css'); | ||
|
||
.modal-content, | ||
.modal-header, | ||
.modal-body, | ||
.modal-footer { | ||
border-radius: 0; | ||
} | ||
.modal-content, | ||
.modal-header, | ||
.modal-body { | ||
border: none; | ||
} | ||
.modal-footer { | ||
border-left: none; | ||
border-right: none; | ||
border-bottom: none; | ||
} | ||
|
||
.modal-header { | ||
background-color: var(--global-color-primary--x-light); | ||
padding: 1.35rem 1.75rem; /* (18px 23.5px design * 1.2 design-to-app ratio) */ | ||
} | ||
.modal-title { | ||
color: var(--global-color-primary--xx-dark); | ||
font-weight: normal; | ||
font-size: 1.2rem; /* 16px design * 1.2 design-to-app ratio */ | ||
|
||
@extend .x-truncate--one-line; | ||
} | ||
|
||
/* To darken close button */ | ||
.modal-header .close { | ||
color: var(--global-color-primary--x-dark); | ||
opacity: 1; | ||
} | ||
/* FAQ: The specificity matches Bootstrap */ | ||
.modal-header .close:not(:disabled):not(.disabled):focus, | ||
.modal-header .close:not(:disabled):not(.disabled):hover { | ||
color: var(--global-color-primary--xx-dark); | ||
opacity: 1; | ||
} | ||
|
||
/* To render modal close button icon as a Cortal icon */ | ||
/* CAVEAT: Pass `charCode=""` to `<ModalHeader>` */ | ||
.modal-header .close span { | ||
/* To mimic `.icon` styles without `@extend` or `composes` (unavailable) */ | ||
/* HACK: Copied (and reduced and edited) from `src/styles/trumps/icon...` */ | ||
font-size: 1.5rem; /* bigger to match header text font height (like design) */ | ||
font-family: Cortal-Icons !important; | ||
} | ||
|
||
.modal-header.has-MuiTabs { | ||
flex-direction: row; | ||
position: relative; | ||
height: 63.5px; | ||
border-bottom: 1px solid #afafaf; | ||
padding: 5px; | ||
} | ||
.modal-header.has-MuiTabs .close { | ||
transform: translate(-25%, 25%); | ||
} |
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,79 @@ | ||
/* | ||
Container (Bootstrap) | ||
Provide Cortal Icon styles. See: | ||
- [Cortal Icons (Confluence)](https://confluence.tacc.utexas.edu/x/MCAFDg) | ||
Styleguide Components.Cortal.Icon | ||
*/ | ||
@import url('./cortal.icon.font.css'); | ||
|
||
|
||
|
||
/* IMPORTANT: Do not add support for icons that neglect `.icon` class */ | ||
/* FAQ: Users should build their icons to spec */ | ||
|
||
|
||
|
||
/* Aliases */ | ||
/* SEE: https://github.com/TACC/Core-Portal/blob/22405ca/client/src/styles/trumps/icon.css#L57 */ | ||
|
||
/* CAVEAT: Urgent use only; always prefer official icon names */ | ||
|
||
|
||
|
||
/* Overrides */ | ||
|
||
/* To overwrite `cortal.icon.fonts.css` icon sizes */ | ||
/* SEE: https://confluence.tacc.utexas.edu/x/dgB_CQ */ | ||
/* CAVEAT: Assumes 1rem = 10px */ | ||
/* relative units */ | ||
.icon-sm { | ||
font-size: 1.8rem; | ||
} | ||
.icon-md { | ||
font-size: 2.4rem; | ||
} | ||
.icon-lg { | ||
font-size: 6.4rem; | ||
} | ||
/* absolute units */ | ||
.icon-18 { | ||
font-size: 18px; | ||
} | ||
.icon-24 { | ||
font-size: 24px; | ||
} | ||
.icon-64 { | ||
font-size: 64px; | ||
} | ||
.icon-16, | ||
.icon-32 { font-size: unset /* to disallow unsupported font sizes */ } | ||
|
||
|
||
|
||
/* Placeholders */ | ||
/* FAQ: Some icons do not exist, but can be faked (with caveats) */ | ||
|
||
/* To create a small "chevron" */ | ||
/* CAVEAT: Use `--color` to set color */ | ||
[class*='icon-nav-'] { | ||
border: solid var(--color, var(--global-color-primary--xx-dark)); | ||
border-width: 0 0.25em 0.25em 0; | ||
font-size: 8px; | ||
/* display: inline-block; */ /* let `.icon`'s `display: inline-flex;` do it */ | ||
/* padding: var(--size); */ /* let `.icon`'s equal `width` & `height` do it */ | ||
} | ||
.icon-nav-up { | ||
transform: rotate(-135deg); | ||
} | ||
.icon-nav-left { | ||
transform: rotate(135deg); | ||
} | ||
.icon-nav-down { | ||
transform: rotate(45deg); | ||
} | ||
.icon-nav-right { | ||
transform: rotate(-45deg); | ||
} |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Cortal Icon Font | ||
|
||
The file `cortal.icon.font.css` comes from raw CSS provided by latest version of [TACC's "Cortal" icon font](https://confluence.tacc.utexas.edu/x/MCAFDg). |
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,33 @@ | ||
/* | ||
Fixed Header Table | ||
A table with a header that does not move, and a body that scrolls. | ||
Markup: | ||
<table class="o-fixed-header-table"> | ||
<thead> | ||
<tr> | ||
<th>A</th> | ||
<th>B</th> | ||
<th>C</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>A</td> | ||
<td>B</td> | ||
<td>C</td> | ||
</tr> | ||
</thead> | ||
</table> | ||
Styleguide Objects.FixedHeaderTable | ||
*/ | ||
/* SEE: https://css-tricks.com/position-sticky-and-table-headers/ */ | ||
.o-fixed-header-table th { | ||
position: sticky; | ||
top: 0; | ||
|
||
z-index: 1; /* so table content (e.g. button)¹ does not scroll over <th> */ | ||
/* ¹ table content with a `position` value other than static */ | ||
} |
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