|
2 | 2 | /* based on «Tabular Journals» by nmartin84 */
|
3 | 3 |
|
4 | 4 | /* header */
|
5 |
| -.ls-block[data-refs-self*=".tabular"] > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-content-inner > div > :is(h1,h2) { |
| 5 | +.ls-block[data-refs-self*='".tabular"'] > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-content-inner > div > :is(h1,h2) { |
6 | 6 | border-bottom: none;
|
7 | 7 | margin: 0px;
|
8 | 8 | padding: 0px;
|
9 | 9 | }
|
10 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container.items-baseline { |
11 |
| - align-items: center; |
| 10 | + |
| 11 | +@keyframes hideAnimation { |
| 12 | + to { |
| 13 | + display: none; |
| 14 | + } |
| 15 | +} |
| 16 | +.ls-block[data-refs-self*='".tabular0"'] > .block-main-container { |
| 17 | + animation: hideAnimation 0s forwards; |
| 18 | + animation-delay: 1s; |
| 19 | +} |
| 20 | +.ls-block[data-refs-self*='".tabular0"'].selected > .block-main-container, |
| 21 | +.ls-block[data-refs-self*='".tabular0"'] > .block-main-container:hover, |
| 22 | +.ls-block[data-refs-self*='".tabular0"'] > .block-main-container:has(> .editor-wrapper), |
| 23 | +.ls-block[data-refs-self*='".tabular0"'] > .block-main-container:has(+ .block-children-container > .block-children-left-border:hover) { |
| 24 | + display: flex; |
| 25 | + animation: none; |
12 | 26 | }
|
13 |
| -/* table */ |
14 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children { |
| 27 | + |
| 28 | +.ls-block[data-refs-self*='".tabular0"'] > .block-children-container { |
| 29 | + margin-left: 0px; |
| 30 | +} |
| 31 | + |
| 32 | +/* table alignment */ |
| 33 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children { |
15 | 34 | border-left: 0px;
|
16 | 35 |
|
17 | 36 | display: flex;
|
18 | 37 | flex-direction: column;
|
19 | 38 | }
|
20 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block:first-child { |
| 39 | + |
| 40 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block:first-child { |
21 | 41 | border-top: 1px solid var(--ls-guideline-color);
|
22 | 42 | }
|
23 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block { |
| 43 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block { |
24 | 44 | display: flex;
|
25 | 45 | border-bottom: 1px solid var(--ls-guideline-color);
|
26 | 46 | padding: 0px;
|
27 | 47 |
|
28 | 48 | flex-grow: 1;
|
29 | 49 | width: 100%;
|
30 | 50 | }
|
31 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container { |
| 51 | + |
| 52 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container { |
32 | 53 | padding: 2px 0px;
|
33 | 54 | }
|
| 55 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container.items-baseline { |
| 56 | + align-items: center; |
| 57 | +} |
| 58 | + |
34 | 59 | /* left: size & header */
|
35 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-content-inner { |
| 60 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-content-inner { |
36 | 61 | font-weight: 500;
|
37 | 62 | }
|
38 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-content-inner, |
39 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-body, |
40 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container > .editor-wrapper > .editor-inner { |
| 63 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-content-inner, |
| 64 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-body, |
| 65 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container > .editor-wrapper > .editor-inner { |
41 | 66 | min-width: 165px;
|
42 | 67 | max-width: 165px;
|
43 | 68 | }
|
| 69 | + |
44 | 70 | /* left: plain text */
|
45 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-body { |
| 71 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-body { |
46 | 72 | font-size: 85%;
|
47 | 73 | opacity: 0.7;
|
48 | 74 | font-weight: 400;
|
49 | 75 | }
|
| 76 | + |
50 | 77 | /* left: hide brackets */
|
51 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper .page-reference .bracket { |
| 78 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper .page-reference .bracket { |
52 | 79 | display: none;
|
53 | 80 | }
|
| 81 | + |
54 | 82 | /* right: adapt margins */
|
55 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-children-container { |
| 83 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-children-container { |
56 | 84 | margin-left: 0px;
|
57 | 85 | width: 100%;
|
58 | 86 | }
|
59 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-children-container > .block-children { |
| 87 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-children-container > .block-children { |
60 | 88 | padding-bottom: 10px;
|
61 | 89 | }
|
62 | 90 |
|
63 | 91 | /* sub tabular */
|
64 |
| -/* table */ |
65 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children { |
| 92 | +/* table alignment */ |
| 93 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children { |
66 | 94 | border-left: 1px solid var(--ls-guideline-color);
|
67 | 95 | padding-top: 0px;
|
68 | 96 | padding-bottom: 0px;
|
69 | 97 | }
|
70 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block:first-child { |
| 98 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block:first-child { |
71 | 99 | border-top: 0px;
|
72 | 100 | }
|
73 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block:last-child { |
| 101 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block:last-child { |
74 | 102 | margin-bottom: -1px;
|
75 | 103 | border-bottom: 0px;
|
76 | 104 | }
|
77 | 105 | /* left: size */
|
78 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-content-inner, |
79 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-body, |
80 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-main-container > .editor-wrapper > .editor-inner { |
| 106 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-content-inner, |
| 107 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container > .block-content-wrapper > div > div > .block-content > .block-body, |
| 108 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-main-container > .editor-wrapper > .editor-inner { |
81 | 109 | min-width: 115px;
|
82 | 110 | max-width: 115px;
|
83 | 111 | }
|
84 | 112 | /* right: adapt margins */
|
85 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block > .block-children-container > .block-children { |
| 113 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block > .block-children-container > .block-children { |
86 | 114 | padding-bottom: 7px;
|
87 | 115 | }
|
88 | 116 |
|
89 | 117 | /* zero sub tabular */
|
90 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block[data-refs-self*=".tabular0"] > .block-children-container > .block-children-left-border { |
| 118 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular0"'] > .block-main-container { |
| 119 | + animation: none; /* to prevent animating when #.tabular0 is the root */ |
| 120 | + border-right: 1px solid var(--ls-guideline-color); |
| 121 | +} |
| 122 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular0"'] > .block-children-container { |
| 123 | + margin-left: -1px; |
| 124 | +} |
| 125 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular0"'] > .block-children-container > .block-children-left-border { |
91 | 126 | display: none;
|
92 | 127 | }
|
93 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block[data-refs-self*=".tabular0"] > .block-children-container > .block-children { |
| 128 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular0"'] > .block-children-container > .block-children { |
94 | 129 | border-left: 0px;
|
95 | 130 | }
|
96 |
| -.ls-block[data-refs-self*=".tabular"] > .block-children-container > .block-children > .ls-block[data-refs-self*=".tabular0"] > .block-children-container > .block-children > .ls-block > .block-main-container { |
| 131 | +.ls-block[data-refs-self*='".tabular'] > .block-children-container > .block-children > .ls-block[data-refs-self*='".tabular0"'] > .block-children-container > .block-children > .ls-block > .block-main-container { |
97 | 132 | display: none;
|
98 | 133 | }
|
0 commit comments