-
Notifications
You must be signed in to change notification settings - Fork 20
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
1 parent
2428b09
commit a99eaf1
Showing
30 changed files
with
1,449 additions
and
94 deletions.
There are no files selected for viewing
Binary file added
BIN
+9.23 KB
.../ModalBase.component-test.tsx/plasma-web ModalBase -- hasBody hasClose.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.67 KB
...ModalBase/ModalBase.component-test.tsx/plasma-web ModalBase -- hasBody.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.14 KB
(93%)
...odalBase/ModalBase.component-test.tsx/plasma-web ModalBase -- withBlur.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.61 KB
.../ModalBase.component-test.tsx/plasma-web ModalBase -- hasBody hasClose.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.07 KB
...ModalBase/ModalBase.component-test.tsx/plasma-web ModalBase -- hasBody.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
49 changes: 49 additions & 0 deletions
49
packages/plasma-new-hope/src/components/Modal/Modal.styles.ts
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,49 @@ | ||
import { styled } from '@linaria/react'; | ||
|
||
import { addFocus } from '../../mixins'; | ||
|
||
import { tokens } from './Modal.tokens'; | ||
|
||
export const ModalBody = styled.div` | ||
border-radius: var(${tokens.modalBodyBorderRadius}); | ||
padding: var(${tokens.modalBodyPadding}); | ||
background: var(${tokens.modalBodyBackground}); | ||
box-shadow: var(--shadow-down-soft-l); | ||
`; | ||
|
||
export const ModalContent = styled.div` | ||
position: relative; | ||
padding: var(${tokens.modalContentPadding}); | ||
`; | ||
|
||
export const CloseButton = styled.button` | ||
top: 0; | ||
right: 0; | ||
width: 1.5rem; | ||
height: 1.5rem; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
border: none; | ||
border-radius: var(${tokens.modalCloseButtonRadius}); | ||
padding: 0; | ||
margin: 0; | ||
outline: none; | ||
cursor: pointer; | ||
background: transparent; | ||
${addFocus({ | ||
outlineSize: '0.063rem', | ||
outlineOffset: '-0.125rem', | ||
outlineColor: `var(${tokens.modalOutlineFocusColor})`, | ||
outlineRadius: `calc(var(${tokens.modalCloseButtonRadius}) + 0.063rem)`, | ||
})}; | ||
position: absolute; | ||
`; |
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
Oops, something went wrong.