aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2017-05-04 17:21:07 +0200
committerGitHub <noreply@github.com>2017-05-04 17:21:07 +0200
commitfb3ac3291569dc8cd5506f0a61b206f5014b860f (patch)
treef0ca9ad2555f2cb658c87e55508c218d71c80c27 /core
parent7bb63d6a4d014cf1a85fcba09cca77f0878f93c8 (diff)
parent1a8befa44700ab8c15eb00d7943f42eca51988f6 (diff)
downloadnextcloud-server-fb3ac3291569dc8cd5506f0a61b206f5014b860f.tar.gz
nextcloud-server-fb3ac3291569dc8cd5506f0a61b206f5014b860f.zip
Merge pull request #4694 from nextcloud/fix_4676
Load proper fonts in guest.css
Diffstat (limited to 'core')
-rw-r--r--core/css/guest.css24
1 files changed, 24 insertions, 0 deletions
diff --git a/core/css/guest.css b/core/css/guest.css
index e6e194f6417..be8b2a604c7 100644
--- a/core/css/guest.css
+++ b/core/css/guest.css
@@ -637,3 +637,27 @@ footer,
height: 1px;
overflow: hidden;
}
+
+/* for low-res screens, use Regular font-weight instead of Light */
+@media (-webkit-max-device-pixel-ratio: 1.3), (max-resolution: 124.8dpi) {
+ @font-face {
+ font-family: 'Open Sans';
+ font-style: normal;
+ font-weight: normal;
+ src: local('Open Sans'), local('OpenSans'), url('../fonts/OpenSans-Regular.woff') format('woff');
+ }
+}
+
+@font-face {
+ font-family: 'Open Sans';
+ font-style: normal;
+ font-weight: 300;
+ src: local('Open Sans Light'), local('OpenSans-Light'), url('../fonts/OpenSans-Light.woff') format('woff');
+}
+
+@font-face {
+ font-family: 'Open Sans';
+ font-style: normal;
+ font-weight: 600;
+ src: local('Open Sans Semibold'), local('OpenSans-Semibold'), url('../fonts/OpenSans-Semibold.woff') format('woff');
+}