From 77c4d913ca63b7909576a1f08ecb80b544f9a74e Mon Sep 17 00:00:00 2001 From: James Taylor Date: Sat, 22 Feb 2020 22:53:24 -0800 Subject: Specify default font for consistency between operating systems On debian for instance, the default font DejaVu Sans is bigger than the default calibri/times on Windows, messing up the layout in some places. The font size in video items was adjusted slightly to accomodate the change to liberation sans for the default. --- youtube/static/shared.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/youtube/static/shared.css b/youtube/static/shared.css index 6fbdfde..fa78cd0 100644 --- a/youtube/static/shared.css +++ b/youtube/static/shared.css @@ -11,6 +11,10 @@ address{ font-style:normal; } +html{ + font-family: "liberation serif", "times new roman", calibri, carlito, serif; +} + body{ margin:0; padding: 0; @@ -168,7 +172,7 @@ body{ .item{ background-color:var(--interface-color); text-decoration:none; - font-size: 0.75rem; + font-size: 0.8125rem; color: #767676; } @@ -205,7 +209,7 @@ body{ right: 2px; opacity: .8; color: #ffffff; - font-size: 0.75rem; + font-size: 0.8125rem; background-color: #000000; } .playlist-item .thumbnail-info{ @@ -218,7 +222,7 @@ body{ white-space: pre-line; opacity: .8; color: #cfcfcf; - font-size: 0.75rem; + font-size: 0.8125rem; background-color: #000000; } .playlist-item .thumbnail-info span{ /* trick to vertically center the text */ -- cgit v1.2.3