1
0
mirror of https://github.com/morris/vanilla-todo.git synced 2025-09-08 21:20:40 +02:00
Files
vanilla-todo/public/styles/todo-frame.css
2024-12-31 13:08:50 +01:00

86 lines
1.3 KiB
CSS

.todo-frame {
position: relative;
user-select: none;
}
.todo-frame > .leftcontrols,
.todo-frame > .rightcontrols {
position: absolute;
top: 0;
width: 52px;
padding: 1.5em 0;
text-align: center;
}
.todo-frame > .leftcontrols {
left: 0;
}
.todo-frame > .rightcontrols {
right: 0;
}
.todo-frame > .leftcontrols > p,
.todo-frame > .rightcontrols > p {
margin: 0 0 0.5em;
}
.todo-frame > .rightcontrols > .datepicker {
position: absolute;
right: 10px;
}
.todo-frame > .container {
position: absolute;
overflow: hidden;
inset: 0 52px;
}
.todo-frame > .container > .card {
position: absolute;
top: 0;
left: 0;
width: 100%;
transition:
transform 0.2s ease-out,
opacity 0.2s ease-out;
}
.todo-frame.-animated {
transition: height 0.2s ease-out;
}
@media (width >= 600px) {
.todo-frame > .container {
right: 70px;
left: 70px;
}
.todo-frame > .leftcontrols,
.todo-frame > .rightcontrols {
width: 70px;
}
.todo-frame > .container > .card {
width: 50%;
}
}
@media (width >= 768px) {
.todo-frame > .container > .card {
width: 33.333%;
}
}
@media (width >= 1024px) {
.todo-frame > .container > .card {
width: 25%;
}
}
@media (width >= 1280px) {
.todo-frame > .container > .card {
width: 20%;
}
}