From c7a3401cbf2f41678a7bdd4ff99838b461e07e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Soszy=C5=84ski?= Date: Mon, 28 Nov 2022 12:00:51 +0100 Subject: [PATCH 1/3] Add font-display property --- static/css/fonts.css | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/static/css/fonts.css b/static/css/fonts.css index a5b4a1d..a9d8c08 100644 --- a/static/css/fonts.css +++ b/static/css/fonts.css @@ -20,6 +20,7 @@ font-family: 'Open Sans'; font-style: normal; font-weight: 300; + font-display: swap; src: url('../fonts/open-sans-v27-latin-300.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -34,6 +35,7 @@ font-family: 'Open Sans'; font-style: normal; font-weight: 400; + font-display: swap; src: url('../fonts/open-sans-v27-latin-regular.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -48,6 +50,7 @@ font-family: 'Open Sans'; font-style: normal; font-weight: 600; + font-display: swap; src: url('../fonts/open-sans-v27-latin-600.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-600.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -62,6 +65,7 @@ font-family: 'Open Sans'; font-style: normal; font-weight: 700; + font-display: swap; src: url('../fonts/open-sans-v27-latin-700.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -76,6 +80,7 @@ font-family: 'Open Sans'; font-style: normal; font-weight: 800; + font-display: swap; src: url('../fonts/open-sans-v27-latin-800.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -90,6 +95,7 @@ font-family: 'Open Sans'; font-style: italic; font-weight: 300; + font-display: swap; src: url('../fonts/open-sans-v27-latin-300italic.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -104,6 +110,7 @@ font-family: 'Open Sans'; font-style: italic; font-weight: 400; + font-display: swap; src: url('../fonts/open-sans-v27-latin-italic.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -118,6 +125,7 @@ font-family: 'Open Sans'; font-style: italic; font-weight: 600; + font-display: swap; src: url('../fonts/open-sans-v27-latin-600italic.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-600italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -132,6 +140,7 @@ font-family: 'Open Sans'; font-style: italic; font-weight: 700; + font-display: swap; src: url('../fonts/open-sans-v27-latin-700italic.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -146,6 +155,7 @@ font-family: 'Open Sans'; font-style: italic; font-weight: 800; + font-display: swap; src: url('../fonts/open-sans-v27-latin-800italic.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-v27-latin-800italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -164,6 +174,7 @@ font-family: 'Open Sans Condensed'; font-style: normal; font-weight: 300; + font-display: swap; src: url('../fonts/open-sans-condensed-v21-latin-300.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-condensed-v21-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -177,6 +188,7 @@ @font-face { font-family: 'Open Sans Condensed'; font-style: italic; + font-display: swap; font-weight: 300; src: url('../fonts/open-sans-condensed-v21-latin-300italic.eot'); /* IE9 Compat Modes */ src: local(''), @@ -192,6 +204,7 @@ font-family: 'Open Sans Condensed'; font-style: normal; font-weight: 700; + font-display: swap; src: url('../fonts/open-sans-condensed-v21-latin-700.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/open-sans-condensed-v21-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -210,6 +223,7 @@ font-family: 'Oswald'; font-style: normal; font-weight: 300; + font-display: swap; src: url('../fonts/oswald-v40-latin-300.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/oswald-v40-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -224,6 +238,7 @@ font-family: 'Oswald'; font-style: normal; font-weight: 400; + font-display: swap; src: url('../fonts/oswald-v40-latin-regular.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/oswald-v40-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -238,6 +253,7 @@ font-family: 'Oswald'; font-style: normal; font-weight: 700; + font-display: swap; src: url('../fonts/oswald-v40-latin-700.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/oswald-v40-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -256,6 +272,7 @@ font-family: 'Roboto Slab'; font-style: normal; font-weight: 100; + font-display: swap; src: url('../fonts/roboto-slab-v16-latin-100.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/roboto-slab-v16-latin-100.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -270,6 +287,7 @@ font-family: 'Roboto Slab'; font-style: normal; font-weight: 300; + font-display: swap; src: url('../fonts/roboto-slab-v16-latin-300.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/roboto-slab-v16-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -284,6 +302,7 @@ font-family: 'Roboto Slab'; font-style: normal; font-weight: 400; + font-display: swap; src: url('../fonts/roboto-slab-v16-latin-regular.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/roboto-slab-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ @@ -298,6 +317,7 @@ font-family: 'Roboto Slab'; font-style: normal; font-weight: 700; + font-display: swap; src: url('../fonts/roboto-slab-v16-latin-700.eot'); /* IE9 Compat Modes */ src: local(''), url('../fonts/roboto-slab-v16-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ From 3c143a6349e0fec0c9c20233ce881205cb49ce68 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 18 Jul 2022 01:30:30 +0200 Subject: [PATCH 2/3] Fix invalid CSS syntax Signed-off-by: Ferdinand Thiessen --- static/css/screen.css | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/static/css/screen.css b/static/css/screen.css index 6e2a905..ce5ba8b 100644 --- a/static/css/screen.css +++ b/static/css/screen.css @@ -414,11 +414,9 @@ table tbody > tr:nth-child(odd) > th { background-color: #f6f6f6; } -table.plain { - tbody > tr:nth-child(odd) > td, - tbody > tr:nth-child(odd) > th { +table.plain tbody > tr:nth-child(odd) > td, +table.plain tbody > tr:nth-child(odd) > th { background: transparent; - } } li { From a8f0e18f5614482e60459edbaa4848ef9de0c8ed Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 18 Jul 2022 01:30:50 +0200 Subject: [PATCH 3/3] Add icon on defaul single view infront of back-to-homepage link Signed-off-by: Ferdinand Thiessen --- layouts/_default/single.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layouts/_default/single.html b/layouts/_default/single.html index cb3cb04..1760608 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,9 +2,7 @@