From 9bb4452607877b23d4ef8292da03ce8e343fb952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 23 Feb 2021 14:57:07 -0500 Subject: Add sourcehut icon --- README.md | 2 +- build.sh | 10 +- dist/css/libresocial.css | 98 ------------------- dist/fonts/libresocial.otf | Bin 41076 -> 41312 bytes dist/fonts/libresocial.svg | 11 ++- dist/fonts/libresocial.ttf | Bin 7880 -> 7956 bytes dist/fonts/libresocial.woff | Bin 21448 -> 21564 bytes lab/metadata.json | 5 +- lab/sourcehut.svg | 32 +++++++ scss/libresocial.scss | 8 +- src/sourcehut.svg | 226 ++++++++++++++++++++++++++++++++++++++++++++ 11 files changed, 280 insertions(+), 112 deletions(-) delete mode 100644 dist/css/libresocial.css create mode 100644 lab/sourcehut.svg create mode 100644 src/sourcehut.svg diff --git a/README.md b/README.md index 06c4b32..498658e 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ Si usted es un experto puede reordenar sus directorios para mejor comodidad. - Dependencias - FontForge (Se necesita de una versión >= 20140101) - Python >= 2.6 or 3 - - Sass (npm install -g sass) + - Sassc ### Instrucciones diff --git a/build.sh b/build.sh index f57efe8..c0226d8 100644 --- a/build.sh +++ b/build.sh @@ -7,6 +7,9 @@ then ./lab/svg2ttf.py ./lab/metadata.json fi +install -d -m755 -v "./dist/fonts/" +install -d -m755 -v "./dist/css/" + # copy files to fonts if [[ -n "$(ls -a ./lab/libresocial.{svg,otf,ttf,woff})" ]]; then @@ -14,8 +17,5 @@ then mv -fv ./lab/libresocial.{svg,otf,ttf,woff} ./dist/fonts/ fi -if [[ -n "$(ls -a ./dist/css/libresocial.css)" ]]; -then - rm -v ./dist/css/libresocial.css - sass --style expanded --sourcemap=none scss/libresocial.scss:dist/css/libresocial.css -fi +rm -v ./dist/css/libresocial.css 2> /dev/null || true +sassc -t expanded scss/libresocial.scss dist/css/libresocial.css diff --git a/dist/css/libresocial.css b/dist/css/libresocial.css deleted file mode 100644 index f63f454..0000000 --- a/dist/css/libresocial.css +++ /dev/null @@ -1,98 +0,0 @@ -/* ---- ---- LIBRESOCIAL ---- ---- */ -/* Written by Heckyel */ -@font-face { - font-family: "libresocial"; - src: url("../fonts/libresocial.woff") format("woff"), url("../fonts/libresocial.ttf") format("truetype"), url("../fonts/libresocial.svg") format("svg"); - font-weight: normal; - font-style: normal; -} -[class^="icon-"]:before, [class*=" icon-"]:before { - font-family: "libresocial"; - font-style: normal; - font-weight: normal; - speak: never; - display: inline-block; - text-decoration: inherit; - width: 1em; - margin-right: 0.2em; - text-align: center; - /* opacity: .8; */ - /* For safety - reset parent styles, that can break glyph codes */ - font-variant: normal; - text-transform: none; - /* fix buttons height, for twitter bootstrap */ - line-height: 1em; - /* Animation center compensation - margins should be symmetric */ - /* remove if not needed */ - margin-left: 0.2em; - /* Uncomment for 3D effect */ - /* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */ -} - -.icon-copyleft:before { - content: "\e800"; -} - -.icon-diaspora:before { - content: "\e801"; -} - -.icon-friendica:before { - content: "\e802"; -} - -.icon-gitlab:before { - content: "\e803"; -} - -.icon-gnusocial:before { - content: "\e804"; -} - -.icon-hubzilla:before { - content: "\e805"; -} - -.icon-liberapay:before { - content: "\e806"; -} - -.icon-libregit:before { - content: "\e807"; -} - -.icon-mastodon:before { - content: "\e808"; -} - -.icon-matrix:before { - content: "\e809"; -} - -.icon-mediagoblin:before { - content: "\e810"; -} - -.icon-notabug:before { - content: "\e811"; -} - -.icon-peertube:before { - content: "\e812"; -} - -.icon-pixelfed:before { - content: "\e813"; -} - -.icon-pump:before { - content: "\e814"; -} - -.icon-tox:before { - content: "\e815"; -} - -.icon-xmpp:before { - content: "\e816"; -} diff --git a/dist/fonts/libresocial.otf b/dist/fonts/libresocial.otf index a65cffa..1df234a 100644 Binary files a/dist/fonts/libresocial.otf and b/dist/fonts/libresocial.otf differ diff --git a/dist/fonts/libresocial.svg b/dist/fonts/libresocial.svg index d80c69b..6e8169b 100644 --- a/dist/fonts/libresocial.svg +++ b/dist/fonts/libresocial.svg @@ -5,7 +5,7 @@ --> -Created by FontForge 20170320 at Tue Feb 23 12:24:16 2021 +Created by FontForge 20170320 at Tue Feb 23 14:49:37 2021 By heckyel Copyright (c) 2021, heckyel @@ -19,10 +19,10 @@ Copyright (c) 2021, heckyel panose-1="2 0 5 9 0 0 0 0 0 0" ascent="96" descent="-32" - bbox="5.23352 -6.39046 122.799 96.1191" + bbox="5.23352 -6.40039 122.799 96.1191" underline-thickness="50" underline-position="-100" - unicode-range="U+E800-E816" + unicode-range="U+E800-E817" /> + - +image/svg+xml \ No newline at end of file diff --git a/scss/libresocial.scss b/scss/libresocial.scss index 718cf70..4dc87da 100644 --- a/scss/libresocial.scss +++ b/scss/libresocial.scss @@ -99,10 +99,14 @@ $libresocial-path: "../fonts"; content: "\e814"; } -.icon-tox:before { +.icon-sourcehut:before { content: "\e815"; } -.icon-xmpp:before { +.icon-tox:before { content: "\e816"; } + +.icon-xmpp:before { + content: "\e817"; +} diff --git a/src/sourcehut.svg b/src/sourcehut.svg new file mode 100644 index 0000000..280c9ea --- /dev/null +++ b/src/sourcehut.svg @@ -0,0 +1,226 @@ + +image/svg+xmlCuadrículas de Guía para las fuentes + +Baseline + + \ No newline at end of file -- cgit v1.2.3