-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
style: adds base/reset CSS file #256
Changes from all commits
0b254b9
cb89976
30e6fb8
ceb0365
403fe50
8d37ec9
5facfca
92fde2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
src/global/styles/_fonts.scss | ||
src/global/styles/tokens/semantic/*.scss | ||
src/global/styles/tokens/semantic/*.scss | ||
src/global/styles/base.scss |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
@use 'fonts'; | ||
@use 'tokens/index'; | ||
@use 'fonts'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
// TODO: replace core tokens with semantic | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we still need this todo? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, I still have some semantic type tokens to create. I should be getting that done today, but those are separate tickets. |
||
// Heading color + outline | ||
|
||
/* | ||
Josh's Custom CSS Reset | ||
https://www.joshwcomeau.com/css/custom-css-reset/ | ||
*/ | ||
:where(*:not(slot), *:not(slot)::before, *:not(slot)::after) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🏆 |
||
box-sizing: border-box; | ||
} | ||
|
||
:where(*:not(slot)) { | ||
margin: 0; | ||
} | ||
|
||
:where(img, picture, video, canvas, svg) { | ||
display: block; | ||
max-width: 100%; | ||
} | ||
|
||
:where(input, button, textarea, select) { | ||
font: inherit; | ||
} | ||
|
||
:where(p, h1, h2, h3, h4, h5, h6) { | ||
overflow-wrap: break-word; | ||
} | ||
|
||
/* | ||
Additional Reset Styles | ||
*/ | ||
:where(a:not([href]):not([class])) { | ||
color: currentColor; | ||
text-decoration: none; | ||
} | ||
|
||
:where(a:not([href]):not([class]):hover) { | ||
color: currentColor; | ||
text-decoration: none; | ||
} | ||
|
||
:where(ul[role='list'], ol[role='list']) { | ||
list-style: none; | ||
} | ||
|
||
:where(table) { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
|
||
/* | ||
Mercury Base Styles | ||
*/ | ||
// Typography | ||
:where(*:not(slot)) { | ||
font-family: var(--pine-font-family-body), -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", "Roboto", "Ubuntu", sans-serif, | ||
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; | ||
} | ||
|
||
:where(h1, h2, h3, h4, h5, h6) { | ||
font-family: var(--pine-font-family-heading); | ||
color: var(--pine-color-grey-950); | ||
} | ||
|
||
:where(h1) { | ||
font: var(--pine-typography-heading-h1); | ||
letter-spacing: var(--pine-letter-spacing-heading-h1); | ||
} | ||
|
||
:where(h2) { | ||
font: var(--pine-typography-heading-h2); | ||
letter-spacing: var(--pine-letter-spacing-heading-h2); | ||
} | ||
|
||
:where(h3) { | ||
font: var(--pine-typography-heading-h3); | ||
letter-spacing: var(--pine-letter-spacing-heading-h3); | ||
} | ||
|
||
:where(h4) { | ||
font: var(--pine-typography-heading-h4); | ||
letter-spacing: var(--pine-letter-spacing-heading-h4); | ||
} | ||
|
||
:where(h5) { | ||
font: var(--pine-typography-heading-h5); | ||
letter-spacing: var(--pine-letter-spacing-heading-h5); | ||
} | ||
|
||
:where(h6) { | ||
font: var(--pine-typography-heading-h6); | ||
letter-spacing: var(--pine-letter-spacing-heading-h6); | ||
} | ||
|
||
:where(p) { | ||
font: var(--pine-typography-body-md-default); | ||
letter-spacing: var(--pine-letter-spacing-body-md); | ||
} | ||
|
||
:where(code, kbd, pre, samp) { | ||
font-family: monospace; | ||
} | ||
|
||
// Accessibility | ||
:where([role="button"]) { | ||
cursor: pointer; | ||
} | ||
|
||
:where(:focus) { | ||
outline: 0; | ||
} | ||
|
||
:where(:focus-visible) { | ||
outline: var(--pine-border-width-thick) solid var(--pine-color-purple-500); | ||
} | ||
|
||
// Misc. | ||
:where([hidden]) { | ||
display: none !important; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
@use 'core/core'; | ||
// Reenable semantic tokens when audit is conducted | ||
// @use 'semantic/semantic'; | ||
@use 'semantic/semantic'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you intend to commit this with this effort?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this was on purpose. Just removing an unneeded
pds-row
.