From b74d833d6f129297a3353275e4d6823f57eaceb5 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Tue, 1 Mar 2016 17:38:57 +0100 Subject: Add Fira Sans font --- tpl/default/css/shaarli.css | 53 +++++++++++++++++++++++++++--- tpl/default/fonts/Fira-Sans-regular.woff | Bin 0 -> 14119 bytes tpl/default/fonts/Fira-Sans-regular.woff2 | Bin 0 -> 11464 bytes tpl/default/linklist.html | 10 ++++-- 4 files changed, 55 insertions(+), 8 deletions(-) create mode 100644 tpl/default/fonts/Fira-Sans-regular.woff create mode 100644 tpl/default/fonts/Fira-Sans-regular.woff2 (limited to 'tpl/default') diff --git a/tpl/default/css/shaarli.css b/tpl/default/css/shaarli.css index 4770b058..e3961fc3 100644 --- a/tpl/default/css/shaarli.css +++ b/tpl/default/css/shaarli.css @@ -25,6 +25,17 @@ body { border-radius: .25rem; } +@font-face { + font-family: 'Roboto Slab'; + font-weight: 400; + font-style: normal; + src: + local('Fira Sans'), + local('Fira-Sans-regular'), + url('../fonts/Fira-Sans-regular.woff2') format('woff2'), + url('../fonts/Fira-Sans-regular.woff') format('woff'); +} + /** * Extends Pure grids responsive to hide items. * Use xx-0 to hide an item on xx screen. @@ -155,7 +166,8 @@ body { text-decoration: none; z-index: 1; - /* TODO: font? */ + font-family: Roboto Slab, Arial, sans-serif; + font-size: 1.2em; } #header h1 a:hover { @@ -307,7 +319,7 @@ body { */ .linklist-item { margin: 15px 0; - background: #fff; + background: #f5f5f5; box-shadow: 2px 2px 0.5em #797979; } @@ -322,23 +334,31 @@ body { } .linklist-item-title h2 { - padding: 2px 10px; + padding: 3px 10px 0 10px; line-height: 25px; } .linklist-item-title a { - font-size: 0.6em; + font-size: 0.7em; color: #d0fff0; text-decoration: none; vertical-align: middle; + font-family: Roboto Slab, Arial, sans-serif; } -.linklist-item-title a:hover { +.linklist-item-title .linklist-link:visited { + color: #ddd; +} + +.linklist-item-title a:hover, .linklist-item-title .linklist-link:hover{ color: #fff; } + .linklist-item-title .label-private { border: solid 1px #d0fff0; + font-family: Arial, sans-serif; + font-size: 0.65em; } .linklist-item-title .fold-button { @@ -356,6 +376,20 @@ body { .linklist-item-description { padding: 10px; + font-family: Roboto Slab, Arial, sans-serif; +} + +.linklist-item-description a { + text-decoration: none; + color: #1b926c; +} + +.linklist-item-description a:hover { + text-shadow: 1px 1px #ddd; +} + +.linklist-item-description a:visited { + color: #20b988; } .linklist-item-infos { @@ -376,6 +410,10 @@ body { color: #000; } +.linklist-item-tags { + margin: 0 0 5px 0; +} + .linklist-item-infos .label-tag { border: 1px solid #505050; font-size: 0.9em; @@ -385,6 +423,11 @@ body { border: 1px solid #000; } +.linklist-plugin-icon { + width: 13px; + height: 13px; +} + .linklist-item-infos-url { text-align: right; white-space: nowrap; diff --git a/tpl/default/fonts/Fira-Sans-regular.woff b/tpl/default/fonts/Fira-Sans-regular.woff new file mode 100644 index 00000000..3ba3c8ab Binary files /dev/null and b/tpl/default/fonts/Fira-Sans-regular.woff differ diff --git a/tpl/default/fonts/Fira-Sans-regular.woff2 b/tpl/default/fonts/Fira-Sans-regular.woff2 new file mode 100644 index 00000000..c7ada1ba Binary files /dev/null and b/tpl/default/fonts/Fira-Sans-regular.woff2 differ diff --git a/tpl/default/linklist.html b/tpl/default/linklist.html index 2694edfe..cc70cc6a 100644 --- a/tpl/default/linklist.html +++ b/tpl/default/linklist.html @@ -52,7 +52,7 @@ {/if}

- + {if="strpos($value.url, $value.shorturl) === false"} {else} @@ -100,12 +100,16 @@ permalink · + {$link_plugin_counter=count($value.link_plugin)} {loop="$value.link_plugin"} - {$value} · + {$value} + {if="$link_plugin_counter - 1 != $counter"}·{/if} {/loop} -- cgit v1.2.3