]> git.0d.be Git - panikdb.git/commitdiff
wiki: add special styles for wiki links and external links
authorFrédéric Péters <fpeters@0d.be>
Tue, 23 Jun 2020 20:21:27 +0000 (22:21 +0200)
committerFrédéric Péters <fpeters@0d.be>
Tue, 23 Jun 2020 20:21:27 +0000 (22:21 +0200)
panikdb/static/css/style.scss

index 890c1a59dd8759465d18f12ee1decdfe9d1df435..0093d2d2d07e86000e2d6d749ca0591b3de70a25 100644 (file)
@@ -775,6 +775,26 @@ div.wiki-section {
                        font-family: FontAwesome;
                }
        }
+       div[contenteditable] {
+               a[href^="/wiki/"] {
+                       box-shadow: inset 0 -8px 0 0 rgba(34, 27, 242,0.1);
+                       color: #073593;
+                       transition: box-shadow ease 0.2s;
+                       &:hover {
+                               box-shadow: inset 0 -21px 0 0 rgba(34, 27, 242,0.3);
+                       }
+               }
+               a[href^="http://"], a[href^="https://"] {
+                       &::after {
+                               content: "\f08e"; /* external link */
+                               font-family: FontAwesome;
+                               font-size: 80%;
+                               position: relative;
+                               padding-left: 5px;
+                               top: -4px;
+                       }
+               }
+       }
 }
 
 div#content div.wiki-section > h3 {