From 282c64b62f3fcc7faf19c19d6f04e198153dcb7a Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Tue, 26 Jan 2021 09:06:01 +0100 Subject: [PATCH] added mastodon icon for top icon links as svg; added support for svg icons --- assets/scss/style.scss | 14 ++++++++++++++ layouts/partials/nerdlink.html | 4 ++++ ...e.scss_17a317b87063135b4df76ed814d78726.content | 2 +- ...tyle.scss_17a317b87063135b4df76ed814d78726.json | 2 +- 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 24762c4..6f4c9c7 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -203,6 +203,17 @@ h1, h2, h3, h4, h5, h6 { color: $fg_color; border-bottom: none; position: relative; + width: 1em; + height: 1.2em; + display: inline-flex; + align-items: center; + justify-content: center; + .pseudofont { + fill: $fg_color; + display: inline; + position: relative; + top: 1px; + } span { position: absolute; top: 1.5em; @@ -215,6 +226,9 @@ h1, h2, h3, h4, h5, h6 { display: none; } &:hover { + .pseudofont { + fill: $accent_color; + } color: $accent_color; text-decoration: none; border-bottom: none; diff --git a/layouts/partials/nerdlink.html b/layouts/partials/nerdlink.html index 90cc071..6d058ac 100644 --- a/layouts/partials/nerdlink.html +++ b/layouts/partials/nerdlink.html @@ -22,6 +22,10 @@  {{ else if eq (lower (index . 0)) "telegram" }}  + {{ else if eq (lower (index . 0)) "mastodon" }} + + + {{ else if eq (lower (index . 0)) "phone" }}  {{ else if eq (lower (index . 0)) "rss" }} diff --git a/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.content b/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.content index 4efe9e7..94a8da2 100644 --- a/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.content +++ b/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.content @@ -1,3 +1,3 @@ -::selection,::-moz-selection{background:#db5793;color:#fff}a{transition:all .15s ease-in-out}body,html{font-family:"Symbols Nerd Font",JetBrains Mono,monospace;margin:0;padding:0;background-color:#242629;color:#fff}body{min-height:100vh}a{color:#fff;text-decoration:none;border-bottom:2px solid #fff}a:hover{border-color:#db5793 !important}#content{max-width:1000px;padding:15px;margin:auto}footer{color:#bababa}footer a{color:#bababa}footer hr{margin-top:50px}#titleContainer{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}#titleContainer h1{font-weight:normal;font-size:1.6em;margin:0}#titleContainer img{margin-right:10px;width:50px;max-height:50px;border-radius:5px}nav ul,#links ul{list-style-type:none;display:flex;flex-direction:row;flex-wrap:wrap;padding:0;margin:0}nav{font-size:.9em}nav ul li{border-right:1px solid #db5793}nav ul li:last-child{border-right:none}nav ul li a{padding:2px 20px;color:#db5793}nav ul li a:hover{text-decoration:underline}#links{padding:5px 0 40px 0}article img,.articlePreview img{margin:auto;display:block;max-width:80%}article pre,article code,.articlePreview pre,.articlePreview code{overflow:auto}article pre,.articlePreview pre{padding:20px;border:1px solid #4f4f4f;border-radius:3px}code{font-family:JetBrains Mono,monospace;font-size:.8em;padding:2px;border:1px solid #4f4f4f;border-radius:3px}pre code{border:none;border-radius:none;padding:0}.date,.date a{color:#bababa;border-color:#bababa;font-size:.9em}#pageNavigation a,.nerdlink a,nav a{border-bottom:none}#pageNavigation a:hover,.nerdlink a:hover,nav a:hover{border-bottom:none}#pageNavigation{text-align:right}#pageNavigation a{color:#db5793}#pageNavigation.nav-circles{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center}#pageNavigation.nav-circles a,#pageNavigation.nav-circles span{margin:5px;text-align:center;display:inline-block;width:40px;height:40px;line-height:40px;padding:auto;border-radius:100%;background-color:#34363b;color:#fff}#pageNavigation.nav-circles span{background-color:#db5793}#pageNavigation.nav-circles a:hover{background-color:#db5793}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:#db5793;border-bottom:none}.nerd,.nerdlink{font-family:"Symbols Nerd Font",JetBrains Mono;font-size:1.2em;margin:5px;display:inline-block}.nerdlink{color:#fff;border-bottom:none;position:relative}.nerdlink span{position:absolute;top:1.5em;left:50%;transform:translateX(-50%);padding:2px;border:1px solid #4f4f4f;border-radius:3px;color:#fff;display:none}.nerdlink:hover{color:#db5793;text-decoration:none;border-bottom:none}.nerdlink:hover span{display:block}.card{margin:50px 0}.card:first-child{margin-top:0}.card hr{margin:50px 0}.card.discrete{background:#34363b;border-radius:10px;padding:20px;padding-top:1px}div.card.discrete hr{display:none}ul li{margin:5px 0}ul.list .date{display:inline-block;min-width:100px}#commento{color:#fff;font-family:JetBrains Mono,monospace}#commento textarea,#commento #commento-markdown-help-root{background:rgba(255,255,255,0.05);color:#fff;border-radius:0;border:none}#commento textarea td,#commento textarea td>*,#commento textarea td>*>*,#commento #commento-markdown-help-root td,#commento #commento-markdown-help-root td>*,#commento #commento-markdown-help-root td>*>*{color:#fff}#commento textarea td pre,#commento textarea td>* pre,#commento textarea td>*>* pre,#commento #commento-markdown-help-root td pre,#commento #commento-markdown-help-root td>* pre,#commento #commento-markdown-help-root td>*>* pre{font-family:JetBrains Mono,monospace;color:#bababa}#commento #commento-submit-button-root{background:#db5793;color:#fff}#commento .commento-name{color:#bababa}#commento .commento-sort-policy-buttons a{border-bottom:none}#commento .commento-sort-policy-buttons .commento-sort-policy-button-selected{color:#db5793}#commento .commento-card{border-top:none;margin:25px 0}#commento .commento-body>*,#commento .commento-body *>*,#commento .commento-body>*>*>*,#commento .commento-body>*>*>*>*,#commento .commento-body>*>*>*>*>*{color:#fff;font-family:JetBrains Mono,monospace} +::selection,::-moz-selection{background:#db5793;color:#fff}a{transition:all .15s ease-in-out}body,html{font-family:"Symbols Nerd Font",JetBrains Mono,monospace;margin:0;padding:0;background-color:#242629;color:#fff}body{min-height:100vh}a{color:#fff;text-decoration:none;border-bottom:2px solid #fff}a:hover{border-color:#db5793 !important}#content{max-width:1000px;padding:15px;margin:auto}footer{color:#bababa}footer a{color:#bababa}footer hr{margin-top:50px}#titleContainer{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}#titleContainer h1{font-weight:normal;font-size:1.6em;margin:0}#titleContainer img{margin-right:10px;width:50px;max-height:50px;border-radius:5px}nav ul,#links ul{list-style-type:none;display:flex;flex-direction:row;flex-wrap:wrap;padding:0;margin:0}nav{font-size:.9em}nav ul li{border-right:1px solid #db5793}nav ul li:last-child{border-right:none}nav ul li a{padding:2px 20px;color:#db5793}nav ul li a:hover{text-decoration:underline}#links{padding:5px 0 40px 0}article img,.articlePreview img{margin:auto;display:block;max-width:80%}article pre,article code,.articlePreview pre,.articlePreview code{overflow:auto}article pre,.articlePreview pre{padding:20px;border:1px solid #4f4f4f;border-radius:3px}code{font-family:JetBrains Mono,monospace;font-size:.8em;padding:2px;border:1px solid #4f4f4f;border-radius:3px}pre code{border:none;border-radius:none;padding:0}.date,.date a{color:#bababa;border-color:#bababa;font-size:.9em}#pageNavigation a,.nerdlink a,nav a{border-bottom:none}#pageNavigation a:hover,.nerdlink a:hover,nav a:hover{border-bottom:none}#pageNavigation{text-align:right}#pageNavigation a{color:#db5793}#pageNavigation.nav-circles{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center}#pageNavigation.nav-circles a,#pageNavigation.nav-circles span{margin:5px;text-align:center;display:inline-block;width:40px;height:40px;line-height:40px;padding:auto;border-radius:100%;background-color:#34363b;color:#fff}#pageNavigation.nav-circles span{background-color:#db5793}#pageNavigation.nav-circles a:hover{background-color:#db5793}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:#db5793;border-bottom:none}.nerd,.nerdlink{font-family:"Symbols Nerd Font",JetBrains Mono;font-size:1.2em;margin:5px;display:inline-block}.nerdlink{color:#fff;border-bottom:none;position:relative;width:1em;height:1.2em;display:inline-flex;align-items:center;justify-content:center}.nerdlink .pseudofont{fill:#fff;display:inline;position:relative;top:1px}.nerdlink span{position:absolute;top:1.5em;left:50%;transform:translateX(-50%);padding:2px;border:1px solid #4f4f4f;border-radius:3px;color:#fff;display:none}.nerdlink:hover{color:#db5793;text-decoration:none;border-bottom:none}.nerdlink:hover .pseudofont{fill:#db5793}.nerdlink:hover span{display:block}.card{margin:50px 0}.card:first-child{margin-top:0}.card hr{margin:50px 0}.card.discrete{background:#34363b;border-radius:10px;padding:20px;padding-top:1px}div.card.discrete hr{display:none}ul li{margin:5px 0}ul.list .date{display:inline-block;min-width:100px}#commento{color:#fff;font-family:JetBrains Mono,monospace}#commento textarea,#commento #commento-markdown-help-root{background:rgba(255,255,255,0.05);color:#fff;border-radius:0;border:none}#commento textarea td,#commento textarea td>*,#commento textarea td>*>*,#commento #commento-markdown-help-root td,#commento #commento-markdown-help-root td>*,#commento #commento-markdown-help-root td>*>*{color:#fff}#commento textarea td pre,#commento textarea td>* pre,#commento textarea td>*>* pre,#commento #commento-markdown-help-root td pre,#commento #commento-markdown-help-root td>* pre,#commento #commento-markdown-help-root td>*>* pre{font-family:JetBrains Mono,monospace;color:#bababa}#commento #commento-submit-button-root{background:#db5793;color:#fff}#commento .commento-name{color:#bababa}#commento .commento-sort-policy-buttons a{border-bottom:none}#commento .commento-sort-policy-buttons .commento-sort-policy-button-selected{color:#db5793}#commento .commento-card{border-top:none;margin:25px 0}#commento .commento-body>*,#commento .commento-body *>*,#commento .commento-body>*>*>*,#commento .commento-body>*>*>*>*,#commento .commento-body>*>*>*>*>*{color:#fff;font-family:JetBrains Mono,monospace} /*# sourceMappingURL=styles.css.map */ \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.json b/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.json index afb2c03..1243b4e 100644 --- a/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.json +++ b/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.json @@ -1 +1 @@ -{"Target":"css/styles.3dc11e2bd3228ab2334872c17d07d8f1ea01fb04dbfc42177afa69cb505e0042d751921a1581f13d5d8b043ffac7b4fa2b1d9004a736bf6679c3ff9aa923afdc.css","MediaType":"text/css","Data":{"Integrity":"sha512-PcEeK9MiirIzSHLBfQfY8eoB+wTb/EIXevppy1BeAELXUZIaFYHxPV2LBD/6x7T6Kx2QBKc2v2Z5w/+aqSOv3A=="}} \ No newline at end of file +{"Target":"css/styles.0fc8b664dbf38d45eb8df0e87d9f19da929c689fca99d56bfd5cf04d332c5ed5a64358dab1e2c1c67a6150a2439dec4b1bbc38c836e40055fb831465ac446d21.css","MediaType":"text/css","Data":{"Integrity":"sha512-D8i2ZNvzjUXrjfDofZ8Z2pKcaJ/KmdVr/VzwTTMsXtWmQ1jaseLBxnphUKJDnexLG7w4yDbkAFX7gxRlrERtIQ=="}} \ No newline at end of file