Switched font

This commit is contained in:
Marcus Noble 2021-05-15 11:03:19 +01:00
parent 9306e6cbe6
commit da1319ca68
23 changed files with 8482 additions and 17 deletions

View File

@ -16,8 +16,8 @@
}
</script>
<script src="/static/feed-item.js" defer></script>
<script src="/static/favicon.js"></script>
<script src="/static/feed-item.js" defer></script>
<script src="/static/favicon.js"></script>
<script src="https://unpkg.com/vue@2.5.17/dist/vue.min.js"></script>
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>

View File

@ -9,13 +9,6 @@ class FeedItem extends HTMLElement {
const template = document.createElement('template');
template.innerHTML = `
<style>
@font-face {
font-family: "charter";
src: url("https://glyph.medium.com/font/be78681/0-3j_4g_6bu_6c4_6c8_6c9_6cc_6cd_6ci_6cm/charter-400-normal.woff") format("woff");
font-style: normal;
font-weight: 400;
unicode-range: U+0-7F, U+A0, U+200A, U+2014, U+2018, U+2019, U+201C, U+201D, U+2022, U+2026;
}
:host {
width: 100% !important;
@ -36,6 +29,7 @@ class FeedItem extends HTMLElement {
margin: auto auto !important;
}
h1, h2, h3, h4 {
font-family: "Atkinson Hyperlegible Bold";
margin-top: 1.3em;
}
:root > h1 {
@ -44,18 +38,34 @@ class FeedItem extends HTMLElement {
p, a {
line-height: 1.2em;
}
p {
font-family: charter, Georgia, "Times New Roman", Times, serif;
p, li, div {
font-family: "Atkinson Hyperlegible Regular";
font-style: normal;
font-weight: 400;
letter-spacing: -0.063px;
letter-spacing: 0.05em
}
em {
font-family: "Atkinson Hyperlegible Italic";
font-style: normal;
}
strong {
font-weight: 500;
font-family: "Atkinson Hyperlegible Bold";
}
em strong, strong em {
font-family: "Atkinson Hyperlegible BoldItalic";
}
li {
margin: 0.6em 0;
}
a {
color: #333;
font-weight: bold;
font-family: "Atkinson Hyperlegible Bold";
font-weight: 500;
letter-spacing: 0.05em
}
:host(.dark) a {
color: #ccc;
color: #eee;
}
a:hover, :host(.dark) a:hover {
color: #ff2e88;

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 172 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 138 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 136 KiB

View File

@ -1,3 +1,48 @@
@font-face {
font-family: "Atkinson Hyperlegible Bold";
font-style: normal;
font-weight: normal;
font-display: block;
src: url("/static/fonts/Atkinson-Hyperlegible-Bold-102a.woff2") format("woff2"),
url("/static/fonts/Atkinson-Hyperlegible-Bold-102a.woff") format("woff"),
url("/static/fonts/Atkinson-Hyperlegible-Bold-102a.ttf") format("ttf"),
url("/static/fonts/Atkinson-Hyperlegible-Bold-102a.eot") format("eot"),
url("/static/fonts/Atkinson-Hyperlegible-Bold-102a.svg") format("svg");
}
@font-face {
font-family: "Atkinson Hyperlegible Regular";
font-style: normal;
font-weight: normal;
font-display: block;
src: url("/static/fonts/Atkinson-Hyperlegible-Regular-102a.woff2") format("woff2"),
url("/static/fonts/Atkinson-Hyperlegible-Regular-102a.woff") format("woff"),
url("/static/fonts/Atkinson-Hyperlegible-Regular-102a.ttf") format("ttf"),
url("/static/fonts/Atkinson-Hyperlegible-Regular-102a.eot") format("eot"),
url("/static/fonts/Atkinson-Hyperlegible-Regular-102a.svg") format("svg");
}
@font-face {
font-family: "Atkinson Hyperlegible Italic";
font-style: normal;
font-weight: normal;
font-display: block;
src: url("/static/fonts/Atkinson-Hyperlegible-Italic-102a.woff2") format("woff2"),
url("/static/fonts/Atkinson-Hyperlegible-Italic-102a.woff") format("woff"),
url("/static/fonts/Atkinson-Hyperlegible-Italic-102a.ttf") format("ttf"),
url("/static/fonts/Atkinson-Hyperlegible-Italic-102a.eot") format("eot"),
url("/static/fonts/Atkinson-Hyperlegible-Italic-102a.svg") format("svg");
}
@font-face {
font-family: "Atkinson Hyperlegible BoldItalic";
font-style: normal;
font-weight: normal;
font-display: block;
src: url("/static/fonts/Atkinson-Hyperlegible-BoldItalic-102a.woff2") format("woff2"),
url("/static/fonts/Atkinson-Hyperlegible-BoldItalic-102a.woff") format("woff"),
url("/static/fonts/Atkinson-Hyperlegible-BoldItalic-102a.ttf") format("ttf"),
url("/static/fonts/Atkinson-Hyperlegible-BoldItalic-102a.eot") format("eot"),
url("/static/fonts/Atkinson-Hyperlegible-BoldItalic-102a.svg") format("svg");
}
body {
padding-bottom: 20px;
}
@ -171,7 +216,7 @@ button:not(:disabled):hover svg path {
}
.item-content .card-content p {
font-family: 'Roboto', sans-serif;
font-family: "Atkinson Hyperlegible Regular"; /*'Roboto', sans-serif;*/
font-size: 14px;
line-height: 20px;
letter-spacing: 0em;
@ -182,8 +227,8 @@ button:not(:disabled):hover svg path {
color: #333;
font-weight: bold;
}
.dark .item-content .card-content a {
color: #ccc;
.dark {
color: #eee;
}
.card-header {