-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into rugh/pwa-184-order…
…-summary
- Loading branch information
Showing
78 changed files
with
889 additions
and
710 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
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.title { | ||
composes: heading from '../../styles/typography.css'; | ||
font-family: var(--venia-global-text-fontFamily-serif); | ||
font-size: var(--venia-global-text-fontSize-1100); | ||
margin-bottom: 1em; | ||
} |
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
38 changes: 20 additions & 18 deletions
38
packages/venia-styleguide/src/components/Button/Button.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 |
---|---|---|
@@ -1,47 +1,49 @@ | ||
.root { | ||
--color: var(--venia-global-color-gray-900); | ||
--stroke: var(--venia-brand-color-1-700); | ||
background: none; | ||
border-color: rgb(var(--color)); | ||
border-radius: 1.5rem; | ||
background-color: rgb(var(--stroke) / 0); | ||
border-color: rgb(var(--stroke)); | ||
border-radius: calc(var(--height) * 0.5px); | ||
border-style: solid; | ||
border-width: 1px; | ||
color: rgb(var(--color)); | ||
border-width: 2px; | ||
color: rgb(var(--stroke)); | ||
font-size: var(--venia-global-text-fontSize-100); | ||
font-weight: var(--venia-global-text-fontWeight-bold); | ||
height: 2rem; | ||
line-height: var(--venia-global-text-lineHeight-300); | ||
line-height: 1.25rem; | ||
max-width: 100%; | ||
min-width: 7.5rem; | ||
min-height: 2.5rem; | ||
min-width: 10rem; | ||
outline: none; | ||
padding: 0 1rem; | ||
transition-duration: 384ms; | ||
padding: calc(0.5rem + 1px) 1.75rem calc(0.5rem - 1px); | ||
text-transform: uppercase; | ||
transition-duration: 256ms; | ||
transition-property: background-color, border-color, color; | ||
transition-timing-function: var(--venia-global-anim-standard); | ||
} | ||
|
||
.root:hover { | ||
--color: var(--venia-brand-color-1-700); | ||
--stroke: var(--venia-brand-color-1-500); | ||
} | ||
|
||
.root:focus { | ||
box-shadow: 0 0 0 2px rgb(var(--venia-pattern-glow-color)), | ||
0 0 0.5rem 2px rgb(var(--color) / 0.2); | ||
--color: var(--venia-brand-color-1-700); | ||
--stroke: var(--venia-global-color-green-500); | ||
} | ||
|
||
.root--priority-high { | ||
composes: root; | ||
background-color: rgb(var(--color)); | ||
background-color: rgb(var(--stroke) / 1); | ||
color: rgb(var(--venia-global-color-gray-50)); | ||
} | ||
|
||
.root--priority-normal { | ||
composes: root; | ||
} | ||
|
||
.root--priority-low { | ||
composes: root; | ||
--stroke: rgb(var(--venia-global-color-gray-800)); | ||
} | ||
|
||
.content { | ||
min-width: 0; | ||
overflow: hidden; | ||
text-overflow: clip; | ||
white-space: nowrap; | ||
} |
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
20 changes: 20 additions & 0 deletions
20
packages/venia-styleguide/src/components/ButtonGroup/ButtonGroup.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,20 @@ | ||
.root { | ||
align-items: center; | ||
background-color: rgb(var(--venia-global-color-gray-50)); | ||
display: grid; | ||
gap: 1rem; | ||
height: 6rem; | ||
justify-content: center; | ||
padding: 0.5rem; | ||
width: 100%; | ||
} | ||
|
||
.root--vertical-true { | ||
composes: root; | ||
grid-auto-flow: row; | ||
} | ||
|
||
.root--vertical-false { | ||
composes: root; | ||
grid-auto-flow: column; | ||
} |
17 changes: 17 additions & 0 deletions
17
packages/venia-styleguide/src/components/ButtonGroup/ButtonGroup.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,17 @@ | ||
import React from 'react'; | ||
|
||
import finalizeClasses from '../../util/finalizeClasses'; | ||
import classes from './ButtonGroup.css'; | ||
|
||
const ButtonGroup = props => { | ||
const { vertical } = props; | ||
const finalClasses = finalizeClasses(classes, { vertical }); | ||
|
||
return <div className={finalClasses.get('root')}>{props.children}</div>; | ||
}; | ||
|
||
export default ButtonGroup; | ||
|
||
ButtonGroup.defaultProps = { | ||
vertical: false | ||
}; |
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 @@ | ||
export { default } from './ButtonGroup'; |
9 changes: 0 additions & 9 deletions
9
packages/venia-styleguide/src/components/DrawerFooter/DrawerFooter.css
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/venia-styleguide/src/components/DrawerFooter/DrawerFooter.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
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 |
---|---|---|
|
@@ -3,4 +3,5 @@ | |
display: grid; | ||
gap: 2rem; | ||
justify-items: center; | ||
width: 100%; | ||
} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
.root { | ||
height: 64px; | ||
justify-self: center; | ||
margin-top: 8rem; | ||
max-width: 1080px; | ||
min-width: 320px; | ||
width: 100%; | ||
|
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
2 changes: 1 addition & 1 deletion
2
packages/venia-styleguide/src/components/Navigation/Navigation.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
Oops, something went wrong.