stremio-web/src/routes/Calendar/Table/Cell/Cell.less

74 lines
1.5 KiB
Text

// Copyright (C) 2017-2024 Smart code 203358507
.cell {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
background-color: var(--overlay-color);
&:first-child {
border-radius: var(--border-radius) 0 0 0;
}
&:last-child {
border-radius: 0 0 var(--border-radius) 0;
}
&:global(.current) {
.heading {
.day {
background-color: var(--primary-accent-color);
}
}
}
&:global(.past) {
.body {
opacity: 0.5;
}
}
.heading {
flex: none;
position: relative;
padding: 1rem;
.day {
position: relative;
display: flex;
align-items: center;
justify-content: center;
height: 2rem;
width: 2rem;
border-radius: 100%;
font-size: 1rem;
font-weight: 500;
color: var(--primary-foreground-color);
}
}
.body {
flex: 1 1 auto;
position: relative;
display: flex;
flex-direction: row;
gap: 1rem;
height: 0;
padding: 1rem;
overflow-x: scroll;
.item {
flex: none;
height: 100%;
aspect-ratio: 2 / 3;
border-radius: var(--border-radius);
.poster {
height: 100%;
width: 100%;
object-fit: cover;
}
}
}
}