aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/css/dumbymap.css
diff options
context:
space:
mode:
Diffstat (limited to 'src/css/dumbymap.css')
-rw-r--r--src/css/dumbymap.css46
1 files changed, 34 insertions, 12 deletions
diff --git a/src/css/dumbymap.css b/src/css/dumbymap.css
index ed5f22d..a3f1fb9 100644
--- a/src/css/dumbymap.css
+++ b/src/css/dumbymap.css
@@ -2,6 +2,20 @@
2 z-index: 9999; 2 z-index: 9999;
3} 3}
4 4
5@keyframes fade-in {
6 from { opacity: 0.3; }
7 to { opacity: 1; }
8}
9
10@keyframes fade-out {
11 from { opacity: 1; }
12 to { opacity: 0.3; }
13}
14
15.map-container {
16 transform-origin: top left;
17}
18
5.with-leader-line:not(:has(> *)) { 19.with-leader-line:not(:has(> *)) {
6 display: inline-block; 20 display: inline-block;
7 padding-right: 15px; 21 padding-right: 15px;
@@ -65,10 +79,19 @@
65 .Showcase { 79 .Showcase {
66 order: 2; 80 order: 2;
67 display: none; 81 display: none;
82 overflow: visible;
83 position: relative;
68 84
69 .map-container { 85 > * {
70 width: 100% !important; 86 position: absolute;
71 height: 100% !important; 87 left: 0;
88 top: 0;
89 width: 100%;
90 height: 100%;
91 }
92
93 [data-focus="true"] {
94 z-index: 9999;
72 } 95 }
73 } 96 }
74 97
@@ -92,6 +115,7 @@
92 background: white; 115 background: white;
93 margin: 2px; 116 margin: 2px;
94 border: 3px solid transparent; 117 border: 3px solid transparent;
118 animation: fade-in 1s;
95 119
96 &[data-focus="true"] { 120 &[data-focus="true"] {
97 border: 3px solid gray; 121 border: 3px solid gray;
@@ -99,10 +123,9 @@
99 } 123 }
100 124
101 [data-placeholder] { 125 [data-placeholder] {
102 box-sizing: border-box; 126 animation: fade-out 1s;
103 border: 5px solid white; 127 opacity: 0.3;
104 background: lightgray; 128 border: 3px solid gray;
105 margin: 0;
106 } 129 }
107 } 130 }
108} 131}
@@ -141,7 +164,6 @@
141} 164}
142 165
143.DumbyMap[data-layout="side"] { 166.DumbyMap[data-layout="side"] {
144 .Showcase,
145 .SemanticHtml { 167 .SemanticHtml {
146 flex: 50%; 168 flex: 50%;
147 overflow-y: scroll; 169 overflow-y: scroll;
@@ -149,7 +171,9 @@
149 } 171 }
150 172
151 .Showcase { 173 .Showcase {
174 flex: 50%;
152 display: block; 175 display: block;
176 height: 100vh;
153 } 177 }
154} 178}
155 179
@@ -210,7 +234,7 @@
210 padding-bottom: 2em; 234 padding-bottom: 2em;
211 text-align: center; 235 text-align: center;
212 z-index: 9999; 236 z-index: 9999;
213 transition: all 0.3s ease-out; 237 transition: all 0.3s ease-in-out;
214 238
215 &:hover { 239 &:hover {
216 background: #e1e1e1; 240 background: #e1e1e1;
@@ -228,10 +252,8 @@
228 display: none; 252 display: none;
229 } 253 }
230 254
231 [data-placeholder] {
232 max-width: 50px;
233 }
234 } 255 }
256
235} 257}
236 258
237.bold-options { 259.bold-options {