Files
CT/src/View/Components/splitModal.css
T

109 lines
1.9 KiB
CSS
Raw Normal View History

2026-04-09 15:45:19 +00:00
.modal > div:has(.split-modal[extended]) {
2026-04-08 21:14:37 +00:00
max-width: 64rem;
}
2026-04-08 21:03:36 +00:00
.split-modal {
2026-04-01 08:29:39 +00:00
width: 100%;
height: 100%;
2024-07-21 17:55:53 +02:00
2026-04-01 08:29:39 +00:00
display: flex;
2024-07-21 17:55:53 +02:00
2026-04-01 08:29:39 +00:00
overflow-x: scroll;
overflow-y: hidden;
scroll-behavior: smooth;
scroll-snap-type: x mandatory;
2024-07-21 17:55:53 +02:00
}
2026-04-08 21:03:36 +00:00
.split-modal > div {
2026-04-01 08:29:39 +00:00
width: 100%;
2026-04-09 21:53:16 +00:00
min-width: calc(100% - 4rem);
2026-04-01 08:29:39 +00:00
flex: 0;
2024-07-21 17:55:53 +02:00
2026-04-01 08:29:39 +00:00
scroll-snap-align: center;
2024-07-21 18:56:56 +02:00
}
2026-04-10 19:00:59 +00:00
.split-modal > div,
.split-modal > div > .scroll-area {
width: 100%;
display: flex;
flex-direction: column;
align-items: stretch;
2026-04-10 19:24:58 +00:00
justify-content: start;
2026-04-10 19:00:59 +00:00
}
2026-04-10 19:24:58 +00:00
.split-modal[navigation]:not([page-open]) > div {
justify-content: safe center;
2026-04-10 19:00:59 +00:00
}
.split-modal[navigation] > div {
min-width: 100%;
}
2026-04-08 21:03:36 +00:00
.split-modal .scroll-area {
2026-04-01 08:29:39 +00:00
flex: 1;
width: 100%;
overflow-y: auto;
2024-07-21 18:56:56 +02:00
2026-04-01 08:29:39 +00:00
padding: var(--content-padding);
2024-07-21 18:56:56 +02:00
}
2026-04-10 19:00:59 +00:00
.split-modal[navigation] > div:nth-child(2) > .flex-row > button {
transform: translateX(calc(-1 * var(--content-padding)));
}
2026-04-08 21:03:36 +00:00
.split-modal .detail-button-wrapper {
2026-04-01 08:29:39 +00:00
display: flex;
justify-content: end;
2024-07-21 17:55:53 +02:00
2026-04-01 08:29:39 +00:00
border-top: 1px solid var(--border);
padding: var(--content-padding);
2024-07-21 18:56:56 +02:00
}
2024-07-21 17:55:53 +02:00
2026-04-08 21:03:36 +00:00
.split-modal .detail-button-wrapper button {
2026-04-01 08:29:39 +00:00
max-width: 100%;
2024-07-21 17:55:53 +02:00
}
2026-04-08 21:03:36 +00:00
.split-modal code {
2026-04-01 08:29:39 +00:00
width: 100%;
height: 100%;
2024-07-21 19:44:10 +02:00
2026-04-01 08:29:39 +00:00
font-size: 0.9rem;
2024-07-21 17:55:53 +02:00
}
@media (min-width: 640px) {
2026-04-08 21:03:36 +00:00
.split-modal > div {
2026-04-10 18:13:18 +00:00
flex: 1;
min-width: unset;
}
2026-04-10 19:00:59 +00:00
.split-modal[navigation] > div {
min-width: unset;
}
.split-modal[navigation] > div:first-child {
2026-04-10 18:13:18 +00:00
flex: 0;
min-width: 20rem;
}
2026-04-10 19:00:59 +00:00
.split-modal:not([navigation]) > div {
2026-04-01 08:29:39 +00:00
width: 50%;
min-width: 50%;
}
2024-07-21 18:56:56 +02:00
2026-04-08 21:03:36 +00:00
.split-modal .detail-button-wrapper {
2026-04-01 08:29:39 +00:00
display: none;
}
2024-07-21 17:55:53 +02:00
}
2026-04-10 19:00:59 +00:00
@media (max-width: 640px) {
.split-modal[navigation]:not([page-open]) > div:nth-child(2) {
display: none;
}
.split-modal[navigation][page-open] > div:first-child {
display: none;
}
}