From 964a474355defab918f4b750c31a0db86c4e943d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenzo=20Dellac=C3=A0?= Date: Fri, 30 Oct 2020 00:16:35 +0100 Subject: [PATCH] Update text font - Switched from Roboto to Open Sans - Removed unused fonts - Reduced text size from 19px to 18px - upped version (0.0.5 to 0.0.6) --- .gitignore | 1 + assets/css/fonts.css | 42 ++++++++++++------------------------------ assets/css/screen.css | 14 +++++++------- package.json | 3 ++- 4 files changed, 22 insertions(+), 38 deletions(-) diff --git a/.gitignore b/.gitignore index c3ad11e..5aa8983 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ b-cov +*.zip *.seed *.log *.csv diff --git a/assets/css/fonts.css b/assets/css/fonts.css index f457eee..861651a 100644 --- a/assets/css/fonts.css +++ b/assets/css/fonts.css @@ -31,12 +31,12 @@ } @font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 300; - font-display: swap; - src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + font-family: 'Open Sans'; + font-style: normal; + font-weight: 300; + font-display: swap; + src: local('Open Sans Light'), local('OpenSans-Light'), url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN_r8OUuhp.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } @font-face { @@ -49,30 +49,12 @@ } @font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 700; - font-display: swap; - src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} - -@font-face { - font-family: 'Roboto'; - font-style: normal; - font-weight: 900; - font-display: swap; - src: local('Roboto Black'), local('Roboto-Black'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfBBc4.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; -} - -@font-face { - font-family: 'PT Serif'; - font-style: normal; - font-weight: 400; - font-display: swap; - src: local('PT Serif'), local('PTSerif-Regular'), url(https://fonts.gstatic.com/s/ptserif/v11/EJRVQgYoZZY2vCFuvAFWzr8.woff2) format('woff2'); - unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; + font-family: 'Open Sans'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: local('Open Sans Bold'), local('OpenSans-Bold'), url(https://fonts.gstatic.com/s/opensans/v18/mem5YaGs126MiZpBA-UN7rgOUuhp.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* End fonts */ diff --git a/assets/css/screen.css b/assets/css/screen.css index f6b8541..79e67ba 100755 --- a/assets/css/screen.css +++ b/assets/css/screen.css @@ -41,7 +41,7 @@ Used to style things in such a way that they appear in the same way, everywhere. @import "fonts.css"; html, body { - font-family: 'Roboto', sans-serif; + font-family: 'Open Sans', sans-serif; font-weight: 300; margin: 0; padding: 0; @@ -387,7 +387,7 @@ Used to style the post feed, seen in the homepage & custom-tags page. border-radius: 5px; box-shadow: 0 1px 1px black, 0 2px 4px black; transition: 0.5s; - font-size: 19px; + font-size: 18px; } .mind-post-card-big_main:hover { @@ -409,7 +409,7 @@ Used to style the post feed, seen in the homepage & custom-tags page. } .mind-post-card-big_header { - font-family: 'Roboto', sans-serif; + font-family: 'Open Sans', sans-serif; font-weight: 300; padding: 20px 30px 0; } @@ -512,7 +512,7 @@ footer.mind-post-card-big_footer { } .mind-post-card-sidebar_meta { - font-family: 'Roboto'; + font-family: 'Open Sans'; font-weight: 700; text-transform: uppercase; font-size: 12px; @@ -561,7 +561,7 @@ instead of pages ".mind-page*". } .mind-post-header p { - font-family: 'Roboto'; + font-family: 'Open Sans'; font-weight: 700; text-transform: uppercase; color: rgb(200, 200, 200); @@ -638,7 +638,7 @@ img.mind-post_feature-image { box-shadow: 0 0 3px rgb(0,0,0),0 3px 46px rgb(0,0,0); position: relative; z-index: 2; - font-size: 19px; + font-size: 18px; color: rgb(200, 200, 200); box-sizing: border-box; } @@ -823,7 +823,7 @@ img.mind-post_feature-image { } .kg-bookmark-author, .kg-bookmark-publisher { - font-family: 'Roboto', sans-serif; + font-family: 'Open Sans', sans-serif; font-weight: 700; text-transform: uppercase; font-size: 12px; diff --git a/package.json b/package.json index a70439e..ee4fe2a 100755 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "name": "mindtheme", "description": "Mind Overflow's official website style", - "version": "0.0.5", + "version": "0.0.6", "engines": { "ghost-api": "v3" }, "keywords": ["ghost-theme"], "license": "Copyright", "author": { + "name": "Lorenzo DellacĂ ", "email": "lorenzo.dellaca@mind-overflow.net" }, "config": {