]> git.0d.be Git - panikdb.git/blobdiff - panikdb/static/css/style.scss
wiki: add document upload support
[panikdb.git] / panikdb / static / css / style.scss
index 5e8837dee4d84ee03565bb746e3f7a5cf87562ec..5ade30403808543501043d7f113e92edcf8884cf 100644 (file)
@@ -761,8 +761,8 @@ div.wiki-section {
        [contenteditable=true] div.figure {
                cursor: pointer;
        }
+       div.document,
        div.figure {
-               min-height: 50px;
                text-align: center;
                line-height: initial;
                img {
@@ -770,6 +770,7 @@ div.wiki-section {
                        max-height: 70vh;
                }
                span.empty::before {
+                       min-height: 50px;
                        margin: 0 auto;
                        display: block;
                        width: 90%;
@@ -781,6 +782,16 @@ div.wiki-section {
                        font-family: FontAwesome;
                }
        }
+       div.document a {
+               &::before {
+                       content: "\f019";
+                       font-family: FontAwesome;
+                       padding-right: 0.7em;
+               }
+       }
+       div.document span.empty::before {
+               content: "\f0f6";  // fa-file-text-o
+       }
        div[contenteditable] {
                a[href^="/wiki/"] {
                        box-shadow: inset 0 -8px 0 0 rgba(34, 27, 242,0.1);
@@ -828,6 +839,7 @@ div#content div.wiki-section h4.intertitle {
        top: 0px;
 }
 
+#document-upload,
 #image-upload {
        visibility: hidden;
 }