blob: 4c1b35fbecff2f11a0b29a3f3e5d103eca9a9463 [file] [log] [blame]
Adrià Vilanova Martínez2d9be8d2022-12-28 00:50:14 +01001/* Small adjustement to reduce spacing, since it's excessive when adding the toolbar. */
2body.TWPT-threadtoolbar-shown ec-thread .scTailwindThreadThreadcontentreplies-section {
3 padding-top: 0.5rem;
4}
5
6/* Hide reply button when a thread is flattened, since it might not work correctly */
Adrià Vilanova Martínez115e3d82023-01-10 21:50:06 +01007@supports selector(:has(div)) {
8 body.TWPT-flattenthreads-enabled ec-thread sc-tailwind-thread-message-message-list:last-child .scTailwindThreadMessageMessagecardsub-content:not(:has(.scTailwindThreadMessageMessagecardreply-editor)) {
9 display: none;
10 }
11}
12/* Fallback support for browsers which do not support :has(...) */
13@supports not selector(:has(div)) {
14 body.TWPT-flattenthreads-enabled ec-thread sc-tailwind-thread-message-message-list:last-child .scTailwindThreadMessageMessagecardsub-content .scTailwindThreadMessageMessagecardaction {
15 padding: 0;
16 }
17
18 body.TWPT-flattenthreads-enabled ec-thread sc-tailwind-thread-message-message-list:last-child .scTailwindThreadMessageMessagecardsub-content .scTailwindThreadMessageMessagecardaction .scTailwindThreadMessageMessagecardadd-comment {
19 display: none;
20 }
21
22 body.TWPT-flattenthreads-enabled ec-thread sc-tailwind-thread-message-message-list:last-child .scTailwindThreadMessageMessagecardsub-content .scTailwindThreadMessageMessagecardaction .scTailwindThreadMessageMessagecardreply-editor {
23 margin: 0.5rem;
24 }
25
26 @media (min-width: 37.5rem) {
27 body.TWPT-flattenthreads-enabled ec-thread sc-tailwind-thread-message-message-list:last-child .scTailwindThreadMessageMessagecardsub-content .scTailwindThreadMessageMessagecardaction .scTailwindThreadMessageMessagecardreply-editor {
28 margin: 0.5rem 3.5rem;
29 }
30 }
Adrià Vilanova Martínez2d9be8d2022-12-28 00:50:14 +010031}