]> git.0d.be Git - chloro.git/blobdiff - chloro/phyll/static/css/style.scss
misc: add image/file upload for live edit (sync with panikdb)
[chloro.git] / chloro / phyll / static / css / style.scss
index 287acd9af9914a5a35eaf87e839155682e42c402..164c2df075ca3220e54256ebbae92dd0cb78ea2f 100644 (file)
@@ -247,3 +247,28 @@ button#save {
        position: sticky;
        bottom: 10px;
 }
+
+main.post {
+       [contenteditable=true] div.figure {
+               cursor: pointer;
+       }
+       div.figure {
+               text-align: center;
+               line-height: initial;
+               img {
+                       max-width: 90%;
+                       max-height: 70vh;
+               }
+               span.empty::before {
+                       min-height: 50px;
+                       margin: 0 auto;
+                       display: block;
+                       width: 90%;
+                       background: #eee;
+                       padding: 1rem;
+                       font-size: 200px;
+                       content: "(image)";
+                       color: #aaa;
+               }
+       }
+}