Skip to content

Commit

Permalink
[EmptyState] Tweaks for narrow views (#2725)
Browse files Browse the repository at this point in the history
* [Empty State] Reduce title size on small resolutions:

* Also address buttons based on the mockups provided.
* Closes #2520.

* apply only on page

---------

Co-authored-by: Jérémie Biron <[email protected]>
  • Loading branch information
fbasmaison-lucca and jeremie-lucca authored Apr 12, 2024
1 parent 926e47d commit a1721df
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/scss/src/components/emptyState/mods.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@use '@lucca-front/scss/src/commons/utils/media';
@use '@lucca-front/scss/src/components/title/exports' as title;

@mixin page {
background-image: var(--components-emptyState-illustration-foreground-bottom-left),
Expand All @@ -18,6 +19,20 @@
background-color: var(--components-emptyState-background-color);
box-shadow: 0 0 8px 4px var(--components-emptyState-background-color);
}

.emptyState-content-heading {
@include media.max('XXS') {
@include title.h2;
}
}

.emptyState-actions {
.button {
@include media.max('XXS') {
flex-basis: 100%;
}
}
}
}

@mixin center {
Expand Down

0 comments on commit a1721df

Please sign in to comment.