diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-24 19:04:28 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-06-25 17:12:28 +0200 |
commit | 6806c589d0983663898b7d87d2c9ceaba6afce49 (patch) | |
tree | 9f3154af02c0d10c8e24c015f92e79296071cd6f /apps/accessibility | |
parent | 7672406573cda72b7eb0f1b56342485dd3faa813 (diff) | |
download | nextcloud-server-6806c589d0983663898b7d87d2c9ceaba6afce49.tar.gz nextcloud-server-6806c589d0983663898b7d87d2c9ceaba6afce49.zip |
Merging highcontrast themes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/accessibility')
-rw-r--r-- | apps/accessibility/css/fonthighcontrast.scss | 36 | ||||
-rw-r--r-- | apps/accessibility/css/themehighcontrast.scss | 45 | ||||
-rw-r--r-- | apps/accessibility/lib/AccessibilityProvider.php | 6 |
3 files changed, 44 insertions, 43 deletions
diff --git a/apps/accessibility/css/fonthighcontrast.scss b/apps/accessibility/css/fonthighcontrast.scss deleted file mode 100644 index 943be42c4b0..00000000000 --- a/apps/accessibility/css/fonthighcontrast.scss +++ /dev/null @@ -1,36 +0,0 @@ -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: normal; - src: local('Open Sans'), local('OpenSans'), - url('../../../core/fonts/OpenSans-Regular.woff') format('woff'); -} - -/* overriding default light */ -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 300; - src: local('Open Sans'), local('OpenSans'), - url('../../../core/fonts/OpenSans-Regular.woff') format('woff'); -} - -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 500; - src: local('Open Sans Semibold'), local('OpenSans-Semibold'), - url('../../../core/fonts/OpenSans-Semibold.woff') format('woff'); -} -@font-face { - font-family: 'Open Sans'; - font-style: normal; - font-weight: 700; - src: local('Open Sans Bold'), local('OpenSans-Bold'), - url('../../../core/fonts/OpenSans-Bold.woff') format('woff'); -} - -$font-face: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif; -body { - font-weight: 400; -}
\ No newline at end of file diff --git a/apps/accessibility/css/themehighcontrast.scss b/apps/accessibility/css/themehighcontrast.scss index 7929677fbb6..dbb9dee4249 100644 --- a/apps/accessibility/css/themehighcontrast.scss +++ b/apps/accessibility/css/themehighcontrast.scss @@ -1,3 +1,36 @@ +// Fonts +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: normal; + src: local('Open Sans'), local('OpenSans'), + url('../../../core/fonts/OpenSans-Regular.woff') format('woff'); +} + +/* overriding default light */ +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 300; + src: local('Open Sans'), local('OpenSans'), + url('../../../core/fonts/OpenSans-Regular.woff') format('woff'); +} + +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 500; + src: local('Open Sans Semibold'), local('OpenSans-Semibold'), + url('../../../core/fonts/OpenSans-Semibold.woff') format('woff'); +} +@font-face { + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + src: local('Open Sans Bold'), local('OpenSans-Bold'), + url('../../../core/fonts/OpenSans-Bold.woff') format('woff'); +} + // SCSS variables $color-main-text: #000; $color-main-background: #fff; @@ -17,6 +50,16 @@ $color-box-shadow: $color-main-text; $color-border: darken($color-main-background, 50%); $color-border-dark: darken($color-main-background, 50%); +$font-face: 'Open Sans', Frutiger, Calibri, 'Myriad Pro', Myriad, sans-serif; + + +// Font weight reset +body { + font-weight: 400; +} + +// Opacity trick * { opacity: 1 !important; -}
\ No newline at end of file +} + diff --git a/apps/accessibility/lib/AccessibilityProvider.php b/apps/accessibility/lib/AccessibilityProvider.php index 068db7e3997..17d01360edb 100644 --- a/apps/accessibility/lib/AccessibilityProvider.php +++ b/apps/accessibility/lib/AccessibilityProvider.php @@ -76,12 +76,6 @@ class AccessibilityProvider { 'img' => $this->urlGenerator->imagePath($this->appName, 'font-opendyslexic.jpg'), 'title' => $this->l->t('Dyslexia font'), 'text' => $this->l->t('OpenDyslexic is a free typeface/font designed to mitigate some of the common reading errors caused by dyslexia. The typeface was created by Abelardo Gonzalez, who released it through an open-source license.') - ], - [ - 'id' => 'fonthighcontrast', - 'img' => $this->urlGenerator->imagePath($this->appName, 'font-highcontrast.jpg'), - 'title' => $this->l->t('High Contrast font'), - 'text' => $this->l->t('Increase the weight of the font to improve the readability.') ] ); } |