forked from excalidraw/excalidraw
-
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.
Merge branch 'are/export-dialog-design-refresh' of https://github.com…
…/excalidraw/excalidraw # Conflicts: # src/components/ImageExportDialog.tsx # src/locales/en.json
- Loading branch information
Showing
21 changed files
with
875 additions
and
163 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
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,215 @@ | ||
@import "../css/variables.module"; | ||
|
||
.excalidraw { | ||
--ImageExportModal-preview-border: #d6d6d6; | ||
|
||
&.theme--dark { | ||
--ImageExportModal-preview-border: #5c5c5c; | ||
} | ||
|
||
.ImageExportModal { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
|
||
& h3 { | ||
font-family: "Assistant"; | ||
font-style: normal; | ||
font-weight: 700; | ||
font-size: 1.313rem; | ||
line-height: 130%; | ||
padding: 0; | ||
margin: 0; | ||
|
||
@include isMobile { | ||
display: none; | ||
} | ||
} | ||
|
||
& > h3 { | ||
display: none; | ||
|
||
@include isMobile { | ||
display: block; | ||
} | ||
} | ||
|
||
@include isMobile { | ||
flex-direction: column; | ||
height: calc(100vh - 5rem); | ||
} | ||
|
||
&__preview { | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
height: 360px; | ||
width: 55%; | ||
|
||
margin-right: 1.5rem; | ||
|
||
@include isMobile { | ||
max-width: unset; | ||
margin-right: unset; | ||
|
||
width: 100%; | ||
height: unset; | ||
flex-grow: 1; | ||
} | ||
|
||
&__filename { | ||
& > input { | ||
margin-top: 1rem; | ||
} | ||
} | ||
|
||
&__canvas { | ||
box-sizing: border-box; | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
flex-grow: 1; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYDCgBDAm9BGDWAAJyRCgLaBCAAgXwixzAS0pgAAAABJRU5ErkJggg==") | ||
left center; | ||
|
||
border: 1px solid var(--ImageExportModal-preview-border); | ||
border-radius: 12px; | ||
|
||
overflow: hidden; | ||
padding: 1rem; | ||
|
||
& > canvas { | ||
max-width: calc(100% - 2rem); | ||
max-height: calc(100% - 2rem); | ||
|
||
filter: none !important; | ||
|
||
@include isMobile { | ||
max-height: 100%; | ||
} | ||
} | ||
|
||
@include isMobile { | ||
margin-top: 24px; | ||
max-width: unset; | ||
} | ||
} | ||
} | ||
|
||
&__settings { | ||
display: flex; | ||
flex-direction: column; | ||
flex-wrap: wrap; | ||
gap: 18px; | ||
|
||
@include isMobile { | ||
margin-left: unset; | ||
margin-top: 1rem; | ||
flex-direction: row; | ||
gap: 6px 34px; | ||
|
||
align-content: flex-start; | ||
} | ||
|
||
&__setting { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
|
||
@include isMobile { | ||
flex-direction: column; | ||
align-items: start; | ||
justify-content: unset; | ||
height: 52px; | ||
} | ||
|
||
&__label { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
|
||
font-family: "Assistant"; | ||
font-weight: 600; | ||
font-size: 1rem; | ||
line-height: 150%; | ||
|
||
& svg { | ||
width: 20px; | ||
height: 20px; | ||
margin-left: 10px; | ||
} | ||
} | ||
|
||
&__content { | ||
display: flex; | ||
height: 100%; | ||
align-items: center; | ||
} | ||
} | ||
|
||
&__buttons { | ||
flex-grow: 1; | ||
flex-wrap: wrap; | ||
display: flex; | ||
flex-direction: row; | ||
gap: 11px; | ||
|
||
align-items: flex-end; | ||
align-content: flex-end; | ||
|
||
@include isMobile { | ||
padding-top: 32px; | ||
flex-basis: 100%; | ||
justify-content: center; | ||
} | ||
|
||
&__button { | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
padding: 8px 16px; | ||
flex-shrink: 0; | ||
width: fit-content; | ||
gap: 8px; | ||
|
||
height: 40px; | ||
border: 0; | ||
border-radius: 8px; | ||
|
||
user-select: none; | ||
font-family: "Assistant"; | ||
font-style: normal; | ||
font-weight: 600; | ||
font-size: 0.75rem; | ||
line-height: 100%; | ||
transition: 150ms ease-out; | ||
transition-property: background, color; | ||
|
||
background: var(--color-primary); | ||
color: var(--color-icon-white); | ||
|
||
&:hover { | ||
background: var(--color-primary-darker); | ||
color: var(--color-icon-white); | ||
} | ||
|
||
&:active { | ||
background: var(--color-primary-darkest); | ||
} | ||
|
||
& > svg { | ||
width: 20px; | ||
height: 20px; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.