diff options
Diffstat (limited to 'src/css/index.css')
-rw-r--r-- | src/css/index.css | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/src/css/index.css b/src/css/index.css index 7ae5906..badec7e 100644 --- a/src/css/index.css +++ b/src/css/index.css | |||
@@ -178,3 +178,65 @@ main[data-mode='editing'] { | |||
178 | } | 178 | } |
179 | } | 179 | } |
180 | } | 180 | } |
181 | |||
182 | .Dumby[data-layout] .dumby-block { | ||
183 | padding: 1rem 1rem 1rem 2rem; | ||
184 | |||
185 | position: relative; | ||
186 | |||
187 | counter-increment: block; | ||
188 | |||
189 | &::before { | ||
190 | content: ''; | ||
191 | height: calc(100% - 2rem); | ||
192 | |||
193 | position: absolute; | ||
194 | left: 0.8rem; | ||
195 | |||
196 | border-left: 0.5em solid #e0e0e0; | ||
197 | |||
198 | transition: border-color 0.5s linear; | ||
199 | } | ||
200 | |||
201 | &.focus { | ||
202 | /* Dress up when block is focus */ | ||
203 | |||
204 | /* background: var(--block-focus-color); */ | ||
205 | &::before { | ||
206 | border-color: chocolate; | ||
207 | } | ||
208 | |||
209 | &::after { | ||
210 | content: counter(block) '/' attr(data-total); | ||
211 | padding: 0.3rem 0.5rem; | ||
212 | |||
213 | position: absolute; | ||
214 | left: 50%; | ||
215 | top: 50%; | ||
216 | z-index: 9999; | ||
217 | |||
218 | border: solid transparent; | ||
219 | border-radius: 5px; | ||
220 | |||
221 | background: gray; | ||
222 | |||
223 | color: white; | ||
224 | font-size: 1.5em; | ||
225 | font-weight: bold; | ||
226 | |||
227 | transform: translate(-50%, -50%); | ||
228 | opacity: 0; | ||
229 | animation: 1.5s forwards fade-out cubic-bezier(0.44, 0.18, 0.86, -0.21); | ||
230 | } | ||
231 | } | ||
232 | |||
233 | } | ||
234 | |||
235 | .Dumby[data-layout='normal'] { | ||
236 | max-width: 60em; | ||
237 | |||
238 | &::after { | ||
239 | animation: 1.5s forwards fade-out cubic-bezier(0.44, 0.18, 0.86, -0.21); | ||
240 | } | ||
241 | } | ||
242 | |||