cineflex/public/css/seat-chooser.css
2023-01-02 00:51:48 +01:00

118 lines
2.4 KiB
CSS

/*
* (C) (C) (C) (C) (C)
(R) S S S S S
(R) S S S S S
(R) S S S S S
(R) S S S S S
...
*/
#seat-chooser {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
--seat-width: 2.5rem;
--seat-height: var(--seat-width);
--seat-gap: 0.5rem;
--seat-border-size: 0.1rem;
--seat-border-radius: 0.5rem;
}
#seat-chooser .row {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
#seat-chooser .row .seat {
display: flex;
align-items: center;
justify-content: center;
width: var(--seat-width);
height: var(--seat-height);
margin: var(--seat-gap);
border: var(--seat-border-size) solid var(--primary-color);
border-radius: var(--seat-border-radius);
background-color: var(--second-bg);
cursor: pointer;
}
#seat-chooser .row .seat.linked-left {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
border-right: 0;
}
#seat-chooser .row .seat.linked-right {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
border-left: 0;
}
#seat-chooser .row .seat.loveseat {
background-color: #ff3fe5;
}
#seat-chooser .row .no-seat {
/* this seat DOES NOT EXISTS it's a filler for layout*/
border: none;
background-color: transparent;
cursor: default;
width: var(--seat-width);
height: var(--seat-height);
margin: calc(var(--seat-border-size) + var(--seat-gap));
}
#seat-chooser .row .seat.selected {
border: calc(var(--seat-gap) - 0.1rem) solid var(--primary-color);
margin: 0.1rem;
filter: brightness(1.2);
}
#seat-chooser .row .seat.reserved {
background-color: var(--highlight-bg);
cursor: not-allowed;
}
#seat-chooser .row .seat.disabled {
background-color: var(--default-bg);
cursor: not-allowed;
}
#seat-chooser .row .seat.wheelchair {
background-color: #3498db;
}
#seat-chooser .row .seat:hover {
filter: brightness(0.8);
}
#load-screen {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #000;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
}
div.spinner {
width: 40px;
height: 40px;
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
border-radius: 50%;
animation: spin 2s linear infinite;
}