From 3ac15f97f1b243774dbad8978456bff73a38fdbb Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Mon, 18 Sep 2017 13:32:52 +0300 Subject: [PATCH] Use native font stack --- client/css/style.css | 30 ++++-------------------------- client/themes/morning.css | 8 -------- client/themes/zenburn.css | 8 -------- 3 files changed, 4 insertions(+), 42 deletions(-) diff --git a/client/css/style.css b/client/css/style.css index 746178cc..08f6006a 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -1,25 +1,3 @@ -@font-face { - font-family: "Lato"; - font-weight: 400; - font-style: normal; - src: - local("Lato Regular"), - local("Lato-regular"), - url("fonts/Lato-regular/Lato-regular.woff2") format("woff2"), - url("fonts/Lato-regular/Lato-regular.woff") format("woff"); -} - -@font-face { - font-family: "Lato"; - font-weight: 700; - font-style: normal; - src: - local("Lato Bold"), - local("Lato-700"), - url("fonts/Lato-700/Lato-700.woff2") format("woff2"), - url("fonts/Lato-700/Lato-700.woff") format("woff"); -} - @font-face { font-family: "FontAwesome"; font-weight: normal; @@ -37,7 +15,7 @@ body { body { background: #455164; color: #222; - font: 16px Lato, sans-serif; + font: 16px -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin: 0; -webkit-user-select: none; -moz-user-select: none; @@ -869,10 +847,11 @@ kbd { visibility: hidden; } +#windows #form .input, #windows .header .topic, .messages .msg, .sidebar { - font: 13px Consolas, Menlo, Monaco, "Lucida Console", "DejaVu Sans Mono", "Courier New", monospace; + font-size: 13px; line-height: 1.4; } @@ -1492,7 +1471,6 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */ } #windows #form .input { - font: 13px Consolas, Menlo, Monaco, "Lucida Console", "DejaVu Sans Mono", "Courier New", monospace; border: 1px solid #ddd; border-radius: 2px; margin: 0; @@ -1691,7 +1669,7 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */ z-index: 1000000; display: none; padding: 5px 8px; - font: 12px Lato; + font-size: 12px; line-height: 1.2; -webkit-font-smoothing: subpixel-antialiased; color: #fff; diff --git a/client/themes/morning.css b/client/themes/morning.css index 9067c7f9..856c530c 100644 --- a/client/themes/morning.css +++ b/client/themes/morning.css @@ -29,14 +29,6 @@ body { background: #333c4a; } -#windows .header .topic, -#windows #form .input, -.messages .msg, -.sidebar { - font-family: inherit; - font-size: 13px; -} - #chat .count { background-color: #2e3642; } diff --git a/client/themes/zenburn.css b/client/themes/zenburn.css index 525110c7..21aabd23 100644 --- a/client/themes/zenburn.css +++ b/client/themes/zenburn.css @@ -30,14 +30,6 @@ body { background: #3f3f3f; } -#windows .header .topic, -#windows #form .input, -.messages .msg, -.sidebar { - font-family: inherit; - font-size: 13px; -} - #settings, #sign-in, #connect .title {