Modal (Popup) Component

A Component that contains a button to open a modal. Containing A message and a button to abort and send
This commit is contained in:
brausjonas
2023-05-04 11:55:28 +02:00
parent cc39ce4e90
commit 5394e7fc3c
4 changed files with 102 additions and 30 deletions
+53 -5
View File
@@ -34,28 +34,30 @@ Button
*/
.round-border
{
border-radius: 10px;
border-radius: 5px;
border-width: 0;
}
.font-small
{
font-size: 15px;
font-size: 10px;
}
.font-middle
{
font-size: 20px ;
font-size: 12px ;
}
.font-big
{
font-size: 30px;
font-size: 16px;
}
.button
{
background-color: #0d52ce;
background-color: #363636;
padding: 5px;
color: white;
}
.button:hover
@@ -124,3 +126,49 @@ Step Progress Bar
background-color: #5d606e;
z-index: -1;
}
/*
Popup
*/
.modal-container
{
z-index: 1;
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.3);
}
.modal
{
width: 300px;
height: 100px;
border-radius: 10px;
background-color: rgb(255, 255, 255);
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 5px;
}
.modal p
{
text-align: center;
}
.modal div
{
display: flex;
flex-direction: row;
width: 100%;
justify-content: end;
gap: 5px;
}