Files
METH_Transcendence/site/interface/site/style/notification.css
Kum1ta 6c47454e28 Websocket (client)
- add variable for know if websocket is connected and used it for don t send something if not connected
Notification system (client)
	- created new class notification who can use with exported variable "createNotification"
	- available methods :  info, success, warning, error
	- add "todo" in main file
Site
	- add new stylesheet "notification.css"
2024-08-05 00:26:27 +02:00

58 lines
1.5 KiB
CSS

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* notification.css :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: edbernar <edbernar@student.42angouleme. +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/04 23:44:17 by edbernar #+# #+# */
/* Updated: 2024/08/05 00:15:17 by edbernar ### ########.fr */
/* */
/* ************************************************************************** */
@keyframes slideIn {
0% {
transform: translateX(100%);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideOut {
0% {
transform: translateX(0);
opacity: 1;
}
100% {
transform: translateX(100%);
opacity: 0;
}
}
#divNotification {
position: fixed;
overflow: hidden;
top: 10px;
right: 0;
width: 300px;
height: 100%;
display: flex;
flex-direction: column;
z-index: 1000;
}
#divNotification .notification {
background-color: #222222;
color: white;
padding: 10px;
margin: 10px;
border-radius: 5px;
height: 100px;
min-height: 100px;
animation: slideIn 0.1s;
}