1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

better notifications

This commit is contained in:
Laura
2025-08-25 23:36:46 +02:00
parent 82e91cfc3e
commit aa40645836
5 changed files with 89 additions and 12 deletions

View File

@@ -127,6 +127,44 @@ body:not(.loading) #loading {
pointer-events: none;
}
#notifications {
position: absolute;
top: 15px;
right: 20px;
}
.notification {
position: relative;
background: #24273a;
padding: 12px 15px;
border-radius: 6px;
width: 280px;
margin-bottom: 10px;
transition: 250ms;
color: #ed8796;
border: 2px solid #ed8796;
left: 0px;
overflow: hidden;
}
.notification.off-screen {
height: 0px !important;
border-width: 0px;
left: calc(100% + 20px);
padding: 0px 15px;
margin-bottom: 0px;
}
.notification::before {
content: "";
background-image: url(icons/error.svg);
position: absolute;
top: 4px;
right: 4px;
width: 16px !important;
height: 16px !important;
}
#page {
display: flex;
flex-direction: column;
@@ -752,6 +790,7 @@ select {
}
body.loading #version,
.notification::before,
#title-refresh,
#loading .inner::after,
.modal.loading .content::after,

View File

@@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>

After

Width:  |  Height:  |  Size: 1.1 KiB