-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improve insights overall loading state
This isn't very modern and it occupies a lot of space. This was prompted by it not fitting the Web Vitals UI, let's tweak it all around the app and see if it looks nicer like this.
- Loading branch information
1 parent
df2dc69
commit 531668a
Showing
12 changed files
with
327 additions
and
375 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
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,50 +1,4 @@ | ||
.insight-empty-state { | ||
display: flex; | ||
flex-direction: column; | ||
flex-grow: 1; | ||
align-items: center; | ||
justify-content: center; | ||
padding: 1rem; | ||
font-size: 1.1em; | ||
color: var(--muted); | ||
|
||
&.error { | ||
h2 { | ||
color: var(--danger); | ||
} | ||
} | ||
|
||
&.warning { | ||
h2 { | ||
color: var(--warning); | ||
} | ||
} | ||
|
||
h2 { | ||
font-size: 1.5rem; | ||
font-weight: 600; | ||
line-height: 1.6rem; | ||
color: var(--primary-alt); | ||
} | ||
|
||
.empty-state-inner { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
max-width: 600px; | ||
|
||
.illustration-main { | ||
font-size: 2.5rem; | ||
} | ||
|
||
h2 { | ||
width: 100%; | ||
text-align: center; | ||
word-wrap: break-word; | ||
} | ||
|
||
ol { | ||
margin: 0.5rem 0; | ||
} | ||
} | ||
/* TODO: Migrate this to a CSS variable (with a `bg-` Tailwind class) once @adamleithp finishes his Tailwind work */ | ||
.insights-empty-state { | ||
background-color: rgb(129 129 129 / 20%); | ||
} |
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.