Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/css
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2017-05-04 18:21:07 +0300
committerGitHub <noreply@github.com>2017-05-04 18:21:07 +0300
commitfb3ac3291569dc8cd5506f0a61b206f5014b860f (patch)
treef0ca9ad2555f2cb658c87e55508c218d71c80c27 /core/css
parent7bb63d6a4d014cf1a85fcba09cca77f0878f93c8 (diff)
parent1a8befa44700ab8c15eb00d7943f42eca51988f6 (diff)
Merge pull request #4694 from nextcloud/fix_4676
Load proper fonts in guest.css
Diffstat (limited to 'core/css')
-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');
+}