-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-added styling for submission success pop-up
- Loading branch information
Lucas
committed
Jul 19, 2024
1 parent
d69baee
commit 849e1b0
Showing
2 changed files
with
105 additions
and
0 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,104 @@ | ||
/* | ||
When adding CSS to a component Svelte autofilters out CSS rules that have no | ||
targets inside that component. Because we want to style elements inside | ||
<SvelteToast> we can't add the CSS for that inside the components that use | ||
<SvelteToast>. Adding them globally like this is one solution. | ||
*/ | ||
.wrap ._toastContainer { | ||
position: fixed !important; | ||
top: unset !important; | ||
left: 10px !important; | ||
bottom: 6px !important; | ||
bottom: 0px !important; | ||
} | ||
|
||
._toastItem { | ||
background-color: black !important; | ||
border: 1px solid var(--color-pink) !important; | ||
} | ||
|
||
._toastContainer div { | ||
background-color: black; | ||
right: 0px; | ||
} | ||
|
||
._toastContainer li > div { | ||
color: var(--color-pink) !important; | ||
min-width: 383px; | ||
} | ||
|
||
._toastContainer li > div > div { | ||
flex: unset !important; | ||
} | ||
|
||
._toastBtn::after { | ||
top: 4px; | ||
right: 6px; | ||
position: absolute; | ||
} | ||
|
||
.wrap ._toastContainer ._toastItem { | ||
z-index: 999; | ||
pointer-events: all; | ||
cursor: pointer; | ||
} | ||
@media screen and (min-width: 800px) { | ||
._toastContainer { | ||
top: 9px !important; | ||
right: 9px !important; | ||
} | ||
.wrap ._toastContainer ._toastItem { | ||
width: 406px; | ||
max-width: 90%; | ||
top: calc(100% - 20px) !important; | ||
bottom: var(--toastContainerBottom, unset) !important; | ||
right: var(--toastContainerRight, unset) !important; | ||
left: var(--toastContainerLeft, unset) !important; | ||
} | ||
.overlay--add .close-btn img { | ||
width: 45px !important; | ||
border: unset !important; | ||
} | ||
} | ||
@media screen and (max-width: 800px) { | ||
.wrap ._toastContainer { | ||
left: 50% !important; | ||
right: unset !important; | ||
transform: none !important; | ||
top: 0px; | ||
left: 9px !important; | ||
bottom: 0px !important; | ||
} | ||
.wrap ._toastContainer li > div { | ||
min-width: unset !important; | ||
} | ||
|
||
._toastContainer { | ||
top: 9px !important; | ||
left: 50% !important; | ||
right: unset !important; | ||
transform: translateX(-50%) !important; | ||
max-width: 100vw; | ||
width: calc(100vw - 9px) !important; | ||
padding-right: 0px !important; | ||
padding-left: 0px !important; | ||
overflow: hidden; | ||
} | ||
._toastItem { | ||
width: unset !important; | ||
} | ||
.wrap ._toastItem { | ||
width: var(--toastWidth, 16rem) !important; | ||
} | ||
._toastBtn::after { | ||
top: 6px; | ||
right: 10px; | ||
} | ||
.maplibregl-ctrl-group:not(:empty) { | ||
top: unset !important; | ||
position: fixed; | ||
bottom: 0px; | ||
right: 0em; | ||
z-index: 999; | ||
} | ||
} |
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