mirror of
https://github.com/lxsang/antos-frontend.git
synced 2025-07-15 13:30:01 +02:00
Rework on Notification API + some sytem packages
- Rename Syslog to SystemReport - All services previously on SystemReport now moved to the dedicated SystemServices Packages - Rework on a more versatile notification GUI and API - Applications now can display a local toast message instead of pushing a global notification message
This commit is contained in:
117
src/themes/system/afx-notification.css
Normal file
117
src/themes/system/afx-notification.css
Normal file
@ -0,0 +1,117 @@
|
||||
afx-notification {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
afx-notification div[data-id="north"] {
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 0);
|
||||
/*max-width: 30%;*/
|
||||
max-height: 100%;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
z-index: 1000000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
|
||||
}
|
||||
|
||||
|
||||
afx-notification div[data-id="south"] {
|
||||
position: absolute;
|
||||
bottom: 5px;
|
||||
left: 50%;
|
||||
transform: translate(-50%, 0);
|
||||
/*max-width: 30%;*/
|
||||
max-height: 100%;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
z-index: 1000000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
afx-notification div[data-id="north_west"] {
|
||||
position: absolute;
|
||||
left: 5px;
|
||||
top: 5px;
|
||||
/*max-width: 30%;*/
|
||||
max-height: 100%;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
z-index: 1000000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
afx-notification div[data-id="south_west"] {
|
||||
position: absolute;
|
||||
left: 5px;
|
||||
bottom: 5px;
|
||||
/*max-width: 30%;*/
|
||||
max-height: 100%;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
z-index: 1000000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
afx-notification div[data-id="north_est"] {
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
top: 5px;
|
||||
/*max-width: 30%;*/
|
||||
max-height: 100%;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
z-index: 1000000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
afx-notification div[data-id="south_est"] {
|
||||
position: absolute;
|
||||
right: 5px;
|
||||
bottom: 5px;
|
||||
/*max-width: 30%;*/
|
||||
max-height: 100%;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
z-index: 1000000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
afx-toast-notification {
|
||||
display: contents;
|
||||
}
|
||||
|
||||
afx-toast-notification div[data-id="toast_container"]
|
||||
{
|
||||
display: block;
|
||||
width: fit-content;
|
||||
height: fit-content;
|
||||
position: relative;
|
||||
max-width: 300px;
|
||||
}
|
||||
|
||||
afx-toast-notification div[data-id="toast_container"] div[data-id="toast_header"]
|
||||
{
|
||||
position: absolute;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
right: 5px;
|
||||
}
|
||||
|
||||
afx-toast-notification div[data-id="toast_container"] div[data-id="toast_content"]
|
||||
{
|
||||
padding: 20px 15px;
|
||||
}
|
Reference in New Issue
Block a user