This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Showing
81 changed files
with
6,887 additions
and
3,520 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
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
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
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,39 @@ | ||
// Themes | ||
@import './clinical-lowlight-theme/Base'; | ||
@import './orion-fusion-theme/Base'; | ||
|
||
html { | ||
background-attachment: var(--terra-application-base-background-attachment); | ||
background-color: var(--terra-application-base-background-color, #fff); | ||
background-image: var(--terra-application-base-background-image); | ||
background-position: var(--terra-application-base-background-position); | ||
background-repeat: var(--terra-application-base-background-repeat); | ||
background-size: var(--terra-application-base-background-size); | ||
// Normalize box-sizing. | ||
// More info: https://css-tricks.com/box-sizing/#article-header-id-6 | ||
box-sizing: border-box; | ||
font-family: var(--terra-application-base-font-family, 'Helvetica Neue', Helvetica, Arial, sans-serif); | ||
font-size: var(--terra-application-base-font-size, 87.5%); | ||
height: var(--terra-application-base-html-height, 100%); | ||
margin: var(--terra-application-base-html-margin, 0); | ||
text-size-adjust: 100%; | ||
} | ||
|
||
body { | ||
color: var(--terra-application-base-color, #1c1f21); | ||
font-size: 1rem; | ||
height: var(--terra-application-base-body-height, 100%); | ||
line-height: var(--terra-application-base-line-height, 1.4285714285714286); | ||
margin: var(--terra-application-base-body-margin, 0); | ||
|
||
@media print { | ||
background-color: transparent !important; | ||
color: #000 !important; | ||
} | ||
} | ||
|
||
*, | ||
*::before, | ||
*::after { | ||
box-sizing: inherit; | ||
} |
11 changes: 11 additions & 0 deletions
11
packages/terra-application/src/application-base/baseStyles.js
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 @@ | ||
import './Base.scss'; | ||
import Logger from '../utils/logger'; | ||
|
||
// Checks to run when not in production | ||
if (process.env.NODE_ENV !== 'production') { | ||
// Check to ensure dir attribute is set on html element | ||
if (!document.documentElement.hasAttribute('dir')) { | ||
// eslint-disable-next-line | ||
Logger.warn('The html element is missing the dir attribute. For terra directionality based styles to render correctly, add dir="ltr" or dir="rtl" to the html element.'); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
packages/terra-application/src/application-base/clinical-lowlight-theme/Base.scss
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,18 @@ | ||
:global { | ||
.clinical-lowlight-theme { | ||
--terra-application-base-background-attachment: none; | ||
--terra-application-base-background-color: #222a2e; | ||
--terra-application-base-background-image: none; | ||
--terra-application-base-background-position: none; | ||
--terra-application-base-background-repeat: none; | ||
--terra-application-base-background-size: none; | ||
--terra-application-base-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; | ||
--terra-application-base-font-size: 87.5%; // root: 16px, base: 12px | ||
--terra-application-base-html-height: 100%; | ||
--terra-application-base-html-margin: 0; | ||
--terra-application-base-color: #b2b5b6; | ||
--terra-application-base-body-height: 100%; | ||
--terra-application-base-line-height: 1.4285694285714286; | ||
--terra-application-base-body-margin: 0; | ||
} | ||
} |
Oops, something went wrong.