Switched font
This commit is contained in:
parent
9306e6cbe6
commit
da1319ca68
@ -16,8 +16,8 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script src="/static/feed-item.js" defer></script>
|
<script src="/static/feed-item.js" defer></script>
|
||||||
<script src="/static/favicon.js"></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/vue@2.5.17/dist/vue.min.js"></script>
|
||||||
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
|
<script src="https://unpkg.com/dayjs@1.8.21/dayjs.min.js"></script>
|
||||||
|
@ -9,13 +9,6 @@ class FeedItem extends HTMLElement {
|
|||||||
const template = document.createElement('template');
|
const template = document.createElement('template');
|
||||||
template.innerHTML = `
|
template.innerHTML = `
|
||||||
<style>
|
<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 {
|
:host {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
@ -36,6 +29,7 @@ class FeedItem extends HTMLElement {
|
|||||||
margin: auto auto !important;
|
margin: auto auto !important;
|
||||||
}
|
}
|
||||||
h1, h2, h3, h4 {
|
h1, h2, h3, h4 {
|
||||||
|
font-family: "Atkinson Hyperlegible Bold";
|
||||||
margin-top: 1.3em;
|
margin-top: 1.3em;
|
||||||
}
|
}
|
||||||
:root > h1 {
|
:root > h1 {
|
||||||
@ -44,18 +38,34 @@ class FeedItem extends HTMLElement {
|
|||||||
p, a {
|
p, a {
|
||||||
line-height: 1.2em;
|
line-height: 1.2em;
|
||||||
}
|
}
|
||||||
p {
|
p, li, div {
|
||||||
font-family: charter, Georgia, "Times New Roman", Times, serif;
|
font-family: "Atkinson Hyperlegible Regular";
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: 400;
|
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 {
|
a {
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: bold;
|
font-family: "Atkinson Hyperlegible Bold";
|
||||||
|
font-weight: 500;
|
||||||
|
letter-spacing: 0.05em
|
||||||
}
|
}
|
||||||
:host(.dark) a {
|
:host(.dark) a {
|
||||||
color: #ccc;
|
color: #eee;
|
||||||
}
|
}
|
||||||
a:hover, :host(.dark) a:hover {
|
a:hover, :host(.dark) a:hover {
|
||||||
color: #ff2e88;
|
color: #ff2e88;
|
||||||
|
BIN
views/static/fonts/Atkinson-Hyperlegible-Bold-102.eot
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Bold-102.eot
Normal file
Binary file not shown.
2300
views/static/fonts/Atkinson-Hyperlegible-Bold-102.svg
Normal file
2300
views/static/fonts/Atkinson-Hyperlegible-Bold-102.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 169 KiB |
BIN
views/static/fonts/Atkinson-Hyperlegible-Bold-102.ttf
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Bold-102.ttf
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-Bold-102.woff
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Bold-102.woff
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-Bold-102a.woff2
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Bold-102a.woff2
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-BoldItalic-102.eot
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-BoldItalic-102.eot
Normal file
Binary file not shown.
2303
views/static/fonts/Atkinson-Hyperlegible-BoldItalic-102.svg
Normal file
2303
views/static/fonts/Atkinson-Hyperlegible-BoldItalic-102.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 172 KiB |
BIN
views/static/fonts/Atkinson-Hyperlegible-BoldItalic-102.ttf
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-BoldItalic-102.ttf
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-BoldItalic-102.woff
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-BoldItalic-102.woff
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-BoldItalic-102a.woff2
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-BoldItalic-102a.woff2
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-Italic-102.eot
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Italic-102.eot
Normal file
Binary file not shown.
1912
views/static/fonts/Atkinson-Hyperlegible-Italic-102.svg
Normal file
1912
views/static/fonts/Atkinson-Hyperlegible-Italic-102.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 138 KiB |
BIN
views/static/fonts/Atkinson-Hyperlegible-Italic-102.ttf
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Italic-102.ttf
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-Italic-102.woff
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Italic-102.woff
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-Italic-102a.woff2
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Italic-102a.woff2
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-Regular-102.eot
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Regular-102.eot
Normal file
Binary file not shown.
1895
views/static/fonts/Atkinson-Hyperlegible-Regular-102.svg
Normal file
1895
views/static/fonts/Atkinson-Hyperlegible-Regular-102.svg
Normal file
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 136 KiB |
BIN
views/static/fonts/Atkinson-Hyperlegible-Regular-102.ttf
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Regular-102.ttf
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-Regular-102.woff
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Regular-102.woff
Normal file
Binary file not shown.
BIN
views/static/fonts/Atkinson-Hyperlegible-Regular-102a.woff2
Normal file
BIN
views/static/fonts/Atkinson-Hyperlegible-Regular-102a.woff2
Normal file
Binary file not shown.
@ -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 {
|
body {
|
||||||
padding-bottom: 20px;
|
padding-bottom: 20px;
|
||||||
}
|
}
|
||||||
@ -171,7 +216,7 @@ button:not(:disabled):hover svg path {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.item-content .card-content p {
|
.item-content .card-content p {
|
||||||
font-family: 'Roboto', sans-serif;
|
font-family: "Atkinson Hyperlegible Regular"; /*'Roboto', sans-serif;*/
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
letter-spacing: 0em;
|
letter-spacing: 0em;
|
||||||
@ -182,8 +227,8 @@ button:not(:disabled):hover svg path {
|
|||||||
color: #333;
|
color: #333;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
.dark .item-content .card-content a {
|
.dark {
|
||||||
color: #ccc;
|
color: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-header {
|
.card-header {
|
||||||
|
Loading…
Reference in New Issue
Block a user