Files
CT/dist/index.css
T

111 lines
2.4 KiB
CSS
Raw Normal View History

2024-07-10 15:40:25 +02:00
/* src/styles.css */
[unread] {
2024-07-11 22:58:22 +02:00
border-left: 10px solid var(--text-warning);
2024-07-10 15:40:25 +02:00
}
2024-07-10 19:07:58 +02:00
:root {
2024-07-13 15:10:54 +02:00
--split-thread-height: 8rem;
--split-thread-width: 20rem;
2024-07-10 19:07:58 +02:00
}
2024-07-12 14:30:30 +02:00
.object-entry-wide {
2024-07-12 15:45:26 +02:00
width: 320px;
min-width: 320px;
2024-07-12 14:30:30 +02:00
}
2024-07-10 19:07:58 +02:00
#message-tab {
flex-direction: column;
}
2024-07-11 17:07:06 +02:00
.chat-object-view {
2024-07-10 19:07:58 +02:00
display: none;
}
2024-07-13 15:10:54 +02:00
[showingobjects] header {
2024-07-10 19:07:58 +02:00
border-bottom: 1px solid var(--border);
}
2024-07-13 15:10:54 +02:00
[showingobjects] footer {
display: none;
}
[showingobjects] .chat-object-view {
2024-07-10 19:07:58 +02:00
display: flex;
top: var(--header-height);
}
2024-07-13 15:10:54 +02:00
[showingobjects] .thread-view {
display: none;
}
[showingobjects][chatvisible] .chat-object-view {
right: var(--split-thread-width);
border-right: 1px solid var(--border);
}
[showingobjects][chatvisible] .thread-view {
top: var(--header-height);
padding-top: var(--content-padding);
}
[showingobjects][chatvisible] :is(.thread-view, footer) {
2024-07-10 19:07:58 +02:00
display: flex;
2024-07-13 15:10:54 +02:00
right: 0px;
left: unset;
width: var(--split-thread-width);
2024-07-10 19:07:58 +02:00
}
2024-07-18 17:42:41 +02:00
main:has([showingobjects][chatopen]) {
display: flex;
}
main:has([showingobjects][chatopen]) #settings-tab {
display: none;
2024-07-10 19:07:58 +02:00
}
2024-07-13 15:10:54 +02:00
@media (max-width: 640px) {
[showingobjects][chatvisible][chatopen] .chat-object-view {
width: 100%;
bottom: calc(var(--split-thread-height) + var(--control-height));
border-right: none;
border-bottom: 1px solid var(--border);
2024-07-10 19:07:58 +02:00
}
2024-07-13 15:10:54 +02:00
[showingobjects][chatvisible][chatopen] .thread-view {
top: unset;
bottom: calc(var(--control-height) + var(--safe-area-bottom));
2024-07-13 15:10:54 +02:00
width: 100%;
height: var(--split-thread-height);
padding: 0px;
2024-07-10 19:07:58 +02:00
}
2024-07-13 15:10:54 +02:00
[showingobjects][chatvisible][chatopen] footer {
width: 100%;
2024-07-10 19:07:58 +02:00
}
}
2024-07-18 17:42:41 +02:00
:root {
--day-view-width: 400px;
}
.calendar-wrapper {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
}
.calendar-wrapper .month-grid {
border-bottom: 1px solid var(--border);
}
.calendar-wrapper > * {
width: 100%;
height: 100%;
flex: 1;
}
@media (min-width: 900px) {
.calendar-wrapper:not([chatvisible] *) {
flex-direction: row;
}
.calendar-wrapper:not([chatvisible] *) .month-grid {
border-bottom: none;
border-right: 1px solid var(--border);
}
.calendar-wrapper:not([chatvisible] *) .day-view {
max-width: var(--day-view-width);
}
}
@media (min-width: 1200px) {
.calendar-wrapper {
flex-direction: row;
}
.calendar-wrapper .month-grid {
border-bottom: none;
border-right: 1px solid var(--border);
}
.calendar-wrapper .day-view {
max-width: var(--day-view-width);
}
}