diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-08-13 23:58:38 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-09-07 17:02:01 +0800 |
commit | 15a939d234910016d36d4297ec14de51c96168ce (patch) | |
tree | 4b3fe24f842485242949c19e3b2d0c078cae7797 /src/css/dumbymap.css |
Initial Commit
Diffstat (limited to 'src/css/dumbymap.css')
-rw-r--r-- | src/css/dumbymap.css | 206 |
1 files changed, 206 insertions, 0 deletions
diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css new file mode 100644 index 0000000..bfdcc2b --- /dev/null +++ b/src/css/dumbymap.css | |||
@@ -0,0 +1,206 @@ | |||
1 | [class^="leader-line"] { | ||
2 | z-index: 9999; | ||
3 | } | ||
4 | |||
5 | .with-leader-line:not(:has(> *)) { | ||
6 | display: inline-block; | ||
7 | left: 0px; | ||
8 | top: 0px; | ||
9 | |||
10 | padding-right: 15px; | ||
11 | padding-left: 6px; | ||
12 | |||
13 | background-image: url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cG9seWdvbiBwb2ludHM9IjI0LDAgMCw4IDgsMTEgMCwxOSA1LDI0IDEzLDE2IDE2LDI0IiBmaWxsPSJjb3JhbCIvPjwvc3ZnPg=="); | ||
14 | background-size: 12px 12px; | ||
15 | background-repeat: no-repeat; | ||
16 | background-position: right 2px top 2px; | ||
17 | color: #555; | ||
18 | |||
19 | &.geolink { | ||
20 | background-color: rgb(248, 248, 129); | ||
21 | } | ||
22 | &.doclink { | ||
23 | background-color: #9ee7ea; | ||
24 | } | ||
25 | |||
26 | &:hover { | ||
27 | padding-right: 6px; | ||
28 | background-image: none; | ||
29 | |||
30 | font-weight: bolder; | ||
31 | text-decoration: none; | ||
32 | } | ||
33 | } | ||
34 | |||
35 | .result-html { | ||
36 | position: relative; | ||
37 | max-width: 60em; | ||
38 | margin: 0 auto; | ||
39 | padding: 0; | ||
40 | display: flex; | ||
41 | overflow-x: scroll; | ||
42 | /* height: 100vh; */ | ||
43 | |||
44 | #map { | ||
45 | flex: 0; | ||
46 | #mapPlaceholder { | ||
47 | display: none; | ||
48 | } | ||
49 | } | ||
50 | |||
51 | #markdown { | ||
52 | flex: 1; | ||
53 | padding: 20px; | ||
54 | overflow-y: scroll; | ||
55 | |||
56 | > .draggable-block { | ||
57 | width: 100%; | ||
58 | position: relative; | ||
59 | pointer-events: auto; | ||
60 | border-radius: 0.5rem; | ||
61 | padding: 0.5rem; | ||
62 | background-color: white; | ||
63 | margin-bottom: 3rem; | ||
64 | |||
65 | * { | ||
66 | width: fit-content; | ||
67 | } | ||
68 | |||
69 | .draggable { | ||
70 | display: none; | ||
71 | } | ||
72 | } | ||
73 | |||
74 | pre:has(.map-container) { | ||
75 | display: flex; | ||
76 | justify-content: flex-start; | ||
77 | width: 100%; | ||
78 | background-color: inherit; | ||
79 | } | ||
80 | |||
81 | .map-container { | ||
82 | margin: 2px; | ||
83 | &.focus { | ||
84 | border: solid gray; | ||
85 | } | ||
86 | } | ||
87 | |||
88 | #mapPlaceholder { | ||
89 | flex: 1; | ||
90 | display: flex; | ||
91 | justify-content: center; | ||
92 | align-items: center; | ||
93 | background-color: lightgray; | ||
94 | > * { | ||
95 | width: fit-content; | ||
96 | flex: 0 0; | ||
97 | } | ||
98 | } | ||
99 | } | ||
100 | |||
101 | :has(> .map-container) { | ||
102 | display: flex; | ||
103 | width: fit-content; | ||
104 | } | ||
105 | |||
106 | #map .map-container { | ||
107 | width: 100% !important; | ||
108 | height: 100% !important; | ||
109 | } | ||
110 | } | ||
111 | |||
112 | .result-html[data-layout]:not([data-layout=none]) { | ||
113 | margin: 0; | ||
114 | |||
115 | height: 100vh; | ||
116 | width: 100%; | ||
117 | max-width: none; | ||
118 | border: none; | ||
119 | |||
120 | & ~ :not(.leader-line) { | ||
121 | display: none; | ||
122 | pointer-events: none; | ||
123 | } | ||
124 | } | ||
125 | |||
126 | .result-html[data-layout=side] { | ||
127 | #map, | ||
128 | #markdown { | ||
129 | flex: 50%; | ||
130 | overflow-y: scroll; | ||
131 | height: 100vh; | ||
132 | } | ||
133 | } | ||
134 | |||
135 | .result-html[data-layout=overlay] { | ||
136 | #map, | ||
137 | #markdown { | ||
138 | position: fixed; | ||
139 | height: 100%; | ||
140 | width: 100%; | ||
141 | } | ||
142 | |||
143 | #markdown { | ||
144 | font-size: 12px; | ||
145 | pointer-events: none; | ||
146 | |||
147 | > .draggable-block { | ||
148 | box-sizing: content-box; | ||
149 | width: fit-content; | ||
150 | max-height: 50vh; | ||
151 | overflow: scroll; | ||
152 | border: solid gray; | ||
153 | |||
154 | * { | ||
155 | max-width: calc(100vw/4); | ||
156 | } | ||
157 | |||
158 | .draggable { | ||
159 | width: 100%; | ||
160 | display: block; | ||
161 | top: 0; | ||
162 | left: 0; | ||
163 | position: sticky; | ||
164 | margin-bottom: -18px; | ||
165 | opacity: 0.3; | ||
166 | transform: translate(0, -16px); | ||
167 | text-align: center; | ||
168 | z-index: 100; | ||
169 | transition: all 0.3s ease-out; | ||
170 | &:hover { | ||
171 | background-color: lightgray; | ||
172 | } | ||
173 | } | ||
174 | } | ||
175 | > :not(.draggable-block) { | ||
176 | display: none; | ||
177 | } | ||
178 | } | ||
179 | } | ||
180 | |||
181 | *:has(> nav) { | ||
182 | position: absolute; | ||
183 | right: 10px; | ||
184 | bottom: 10px; | ||
185 | /* FIXME */ | ||
186 | display: none; | ||
187 | |||
188 | padding: 0.5rem; | ||
189 | min-width: 120px; | ||
190 | border: 2px solid gray; | ||
191 | border-radius: 0.5rem; | ||
192 | background-color: white; | ||
193 | z-index: 500; | ||
194 | |||
195 | &:has(> nav:empty) { | ||
196 | display: none; | ||
197 | } | ||
198 | ol { | ||
199 | margin-top: 0; | ||
200 | margin-bottom: 0.5rem; | ||
201 | } | ||
202 | } | ||
203 | |||
204 | .bold-options { | ||
205 | font-weight: bold; | ||
206 | } | ||