117 lines
2.3 KiB
JavaScript
117 lines
2.3 KiB
JavaScript
import { styled } from 'goober'
|
|
|
|
export const Step = styled('h2')`
|
|
text-decoration-color: var(--primary);
|
|
text-decoration-style: solid;
|
|
text-decoration-line: underline;
|
|
margin-top: 30px;
|
|
`
|
|
|
|
export const FakeCalendar = styled('div')`
|
|
user-select: none;
|
|
|
|
& div {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
grid-gap: 2px;
|
|
}
|
|
& .days span {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 3px 0;
|
|
font-weight: bold;
|
|
user-select: none;
|
|
opacity: .7;
|
|
@media (max-width: 350px) {
|
|
font-size: 12px;
|
|
}
|
|
}
|
|
& .dates span {
|
|
background-color: var(--surface);
|
|
border: 1px solid var(--primary);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 10px 0;
|
|
|
|
&.selected {
|
|
color: #FFF;
|
|
background-color: var(--primary);
|
|
}
|
|
}
|
|
& .dates span:first-of-type {
|
|
border-start-start-radius: 3px;
|
|
border-end-start-radius: 3px;
|
|
}
|
|
& .dates span:last-of-type {
|
|
border-end-end-radius: 3px;
|
|
border-start-end-radius: 3px;
|
|
}
|
|
`
|
|
|
|
export const FakeTimeRange = styled('div')`
|
|
user-select: none;
|
|
background-color: var(--surface);
|
|
border: 1px solid var(--primary);
|
|
border-radius: 3px;
|
|
height: 50px;
|
|
position: relative;
|
|
margin: 38px 6px 18px;
|
|
|
|
& div {
|
|
height: calc(100% + 20px);
|
|
width: 20px;
|
|
border: 1px solid var(--primary);
|
|
background-color: var(--highlight);
|
|
border-radius: 3px;
|
|
position: absolute;
|
|
top: -10px;
|
|
|
|
&:after {
|
|
content: '|||';
|
|
font-size: 8px;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--shadow);
|
|
}
|
|
|
|
&:before {
|
|
content: attr(data-label);
|
|
position: absolute;
|
|
bottom: calc(100% + 8px);
|
|
text-align: center;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
}
|
|
& .start {
|
|
left: calc(${11 * 4.166}% - 11px);
|
|
}
|
|
& .end {
|
|
left: calc(${17 * 4.166}% - 11px);
|
|
}
|
|
&:before {
|
|
content: '';
|
|
position: absolute;
|
|
height: 100%;
|
|
left: ${11 * 4.166}%;
|
|
right: calc(100% - ${17 * 4.166}%);
|
|
top: 0;
|
|
background-color: var(--primary);
|
|
border-radius: 2px;
|
|
}
|
|
`
|
|
|
|
export const ButtonArea = styled('div')`
|
|
@media print {
|
|
display: none;
|
|
}
|
|
`
|