Files
TIF22A_AnwProjekt_B/anwendung/src/styles/globals.css
T
brausjonas 5394e7fc3c Modal (Popup) Component
A Component that contains a button to open a modal. Containing A message and a button to abort and send
2023-05-04 11:55:28 +02:00

175 lines
2.3 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 255, 255, 255;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
display: flex;
align-items: center;
justify-content: center;
}
/*
Button
*/
.round-border
{
border-radius: 5px;
border-width: 0;
}
.font-small
{
font-size: 10px;
}
.font-middle
{
font-size: 12px ;
}
.font-big
{
font-size: 16px;
}
.button
{
background-color: #363636;
padding: 5px;
color: white;
}
.button:hover
{
background-color: #585858;
}
/*
Step Progress Bar
*/
.step-container
{
display: flex;
flex-direction: column;
align-items: center;
max-width: 400px;
}
.steps
{
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
gap: 20px;
width: 100%;
position: relative;
}
.step
{
width: 40px; height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-weight: bold;
}
.steps .not-started
{
background-image: linear-gradient(#b42121, #b44821);
}
.steps .started
{
background-image: linear-gradient(#c75c0c, #c77c0c);
}
.steps .finished
{
background-image: linear-gradient(#43C20BFF, #0bc27c);
}
.steps .active
{
border-width: 3px;
border-color: #1e2428;
}
.progress-bar
{
position: absolute;
height: 8px;
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;
}