-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #438 from liam-hq/error-message-erd-styling
💄 Style to ErrorDisplay component
- Loading branch information
Showing
6 changed files
with
235 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: Parser | ||
--- | ||
|
||
TBD |
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,5 @@ | ||
--- | ||
title: Troubleshooting | ||
--- | ||
|
||
TBD |
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 |
---|---|---|
|
@@ -58,4 +58,7 @@ | |
width: 0; | ||
margin: 0; | ||
} | ||
.main { | ||
overflow: hidden; | ||
} | ||
} |
162 changes: 158 additions & 4 deletions
162
frontend/packages/erd-core/src/components/ERDRenderer/ErrorDisplay.module.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,8 +1,162 @@ | ||
/* TODO: styling */ | ||
.wrapper { | ||
position: relative; | ||
width: 100%; | ||
font-family: var(--main-font, Inter); | ||
display: flex; | ||
padding: 0px var(--spacing-6, 24px); | ||
flex-direction: column; | ||
|
||
height: 100%; | ||
|
||
justify-content: center; | ||
align-items: center; | ||
gap: var(--spacing-10, 40px); | ||
|
||
background-color: var(--global-background); | ||
color: blanchedalmond; | ||
} | ||
|
||
.main { | ||
display: flex; | ||
padding: var(--spacing-8, 32px); | ||
align-items: flex-start; | ||
gap: var(--spacing-6, 24px); | ||
|
||
border-left: 1px solid var(--callout-warning-border, rgba(255, 215, 72, 0.2)); | ||
background: var(--callout-warning-background, rgba(255, 215, 72, 0.1)); | ||
} | ||
|
||
.iconWrapper { | ||
display: flex; | ||
width: 24px; | ||
padding-top: var(--spacing-1, 4px); | ||
align-items: center; | ||
} | ||
|
||
.inner { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: flex-start; | ||
gap: var(--spacing-8, 32px); | ||
} | ||
|
||
.message1 { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: var(--spacing-2, 8px); | ||
} | ||
|
||
.message1Title { | ||
color: var(--callout-warning-text, #c3b476); | ||
font-family: var(--message-font, Montserrat); | ||
font-size: var(--font-size-8, 20px); | ||
font-weight: 700; | ||
line-height: 160%; | ||
} | ||
|
||
.message1Sentence { | ||
color: var(--callout-warning-text, #c3b476); | ||
font-size: var(--font-size-5, 14px); | ||
font-weight: 400; | ||
line-height: 160%; | ||
} | ||
|
||
.message2 { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: var(--spacing-2, 8px); | ||
} | ||
|
||
.message2Title { | ||
color: var(--callout-warning-text, #c3b476); | ||
font-size: var(--font-size-7, 18px); | ||
font-weight: 700; | ||
line-height: 160%; | ||
} | ||
|
||
.message2Sentence { | ||
color: var(--callout-warning-text, #c3b476); | ||
|
||
font-size: var(--font-size-5, 14px); | ||
font-weight: 400; | ||
line-height: 160%; | ||
} | ||
|
||
.callout { | ||
color: var(--callout-warning-link, #e7ddb3); | ||
font-size: var(--font-size-5, 14px); | ||
font-weight: 400; | ||
line-height: normal; | ||
|
||
text-decoration: underline; | ||
text-decoration-color: var( | ||
--callout-warning-underline, | ||
rgba(231, 221, 179, 0.4) | ||
); | ||
} | ||
|
||
.message3 { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: flex-start; | ||
gap: var(--spacing-2, 8px); | ||
align-self: stretch; | ||
} | ||
|
||
.message3Title { | ||
color: var(--callout-warning-text, #c3b476); | ||
font-size: var(--font-size-5, 14px); | ||
font-weight: 700; | ||
line-height: 160%; | ||
} | ||
|
||
.message3Sentence { | ||
color: var(--callout-warning-text, #c3b476); | ||
|
||
font-size: var(--font-size-5, 14px); | ||
font-weight: 400; | ||
line-height: 160%; | ||
} | ||
|
||
/* TODO: This component has been partially adjusted for responsiveness, but confirm the designer's intentions and make any necessary corrections if needed. */ | ||
@media screen and (max-width: 768px) { | ||
.message1 { | ||
gap: var(--spacing-1, 4px); | ||
} | ||
|
||
.message1Title { | ||
font-size: var(--font-size-6); | ||
} | ||
|
||
.message1Sentence { | ||
font-size: var(--font-size-3); | ||
} | ||
|
||
.message2 { | ||
gap: var(--spacing-1, 4px); | ||
} | ||
|
||
.message2Title { | ||
font-size: var(--font-size-5); | ||
} | ||
|
||
.message2Sentence { | ||
font-size: var(--font-size-3); | ||
} | ||
|
||
.callout { | ||
font-size: var(--font-size-3); | ||
} | ||
|
||
.message3 { | ||
gap: var(--spacing-1, 4px); | ||
} | ||
|
||
.message3Title { | ||
font-size: var(--font-size-3); | ||
} | ||
|
||
.message3Sentence { | ||
font-size: var(--font-size-3); | ||
} | ||
} |
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