Files
CT/dist/index.css
T

68 lines
1.8 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 {
--thread-view-height-with-tools: 8rem;
--thread-view-width-with-tools: 20rem;
--footer-top-line: calc(var(--control-height) + var(--safe-area-bottom));
}
#message-tab {
flex-direction: column;
}
.message-tab-content-wrapper {
display: flex;
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-11 22:27:15 +02:00
#message-tab:has([showingchattools]) :is(.thread-view, .chat-object-view) {
2024-07-10 19:07:58 +02:00
overflow: scroll;
position: absolute;
padding: 0px;
}
2024-07-11 22:27:15 +02:00
#message-tab:has([showingchattools]) header {
2024-07-10 19:07:58 +02:00
border-bottom: 1px solid var(--border);
}
2024-07-11 22:27:15 +02:00
#message-tab:has([showingchattools]) .chat-object-view {
2024-07-10 19:07:58 +02:00
display: flex;
top: var(--header-height);
bottom: calc(var(--thread-view-height-with-tools) + var(--footer-top-line));
border-bottom: 1px solid var(--border);
}
2024-07-11 22:27:15 +02:00
#message-tab:has([showingchattools]) .thread-view {
2024-07-10 19:07:58 +02:00
display: flex;
height: var(--thread-view-height-with-tools);
top: unset;
bottom: var(--footer-top-line);
flex: 1;
}
2024-07-11 01:07:02 +02:00
@media (min-width: 640px) and (max-width: 1400px) {
2024-07-11 22:27:15 +02:00
main.split:has(#message-tab [showingchattools]) {
2024-07-10 19:07:58 +02:00
display: flex;
}
2024-07-11 22:27:15 +02:00
main.split:has(#message-tab [showingchattools]) #settings-tab {
2024-07-10 19:07:58 +02:00
display: none;
}
}
2024-07-11 01:07:02 +02:00
@media (min-width: 640px) {
2024-07-11 22:27:15 +02:00
#message-tab:has([showingchattools]) :is(.thread-view, .chat-object-view) {
2024-07-10 19:07:58 +02:00
top: var(--header-height);
bottom: var(--footer-top-line);
}
2024-07-11 22:27:15 +02:00
#message-tab:has([showingchattools]) .chat-object-view {
2024-07-10 19:07:58 +02:00
left: 0px;
right: var(--thread-view-width-with-tools);
border-bottom: none;
border-right: 1px solid var(--border);
}
2024-07-11 22:27:15 +02:00
#message-tab:has([showingchattools]) .thread-view {
2024-07-10 19:07:58 +02:00
display: flex;
left: unset;
right: 0px;
height: unset;
width: var(--thread-view-width-with-tools);
}
}