Add OpenDyslexic font face.
This commit is contained in:
parent
393f3ecee3
commit
14e7eab636
3 changed files with 66 additions and 2 deletions
|
|
@ -1,4 +1,11 @@
|
|||
@import "tailwindcss";
|
||||
|
||||
@import '@fontsource/atkinson-hyperlegible/400.css';
|
||||
@import '@fontsource/atkinson-hyperlegible/700.css';
|
||||
|
||||
@import '@fontsource/opendyslexic/400.css';
|
||||
@import '@fontsource/opendyslexic/700.css';
|
||||
|
||||
@source "../layouts/**/*.astro";
|
||||
@source "../pages/**/*.astro";
|
||||
|
||||
|
|
@ -23,6 +30,30 @@
|
|||
--color-devotional-dark: #6b757d;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--font-reading: var(--reading-font-family);
|
||||
}
|
||||
|
||||
:root {
|
||||
--reading-font-family: inherit;
|
||||
}
|
||||
|
||||
html.df {
|
||||
--reading-font-family: "OpenDyslexic", sans-serif;
|
||||
}
|
||||
|
||||
html.df .study-notes :is(em, i, blockquote) {
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@utility study-notes {
|
||||
font-family: var(--reading-font-family);
|
||||
letter-spacing: 0.035em;
|
||||
line-height: 1.7;
|
||||
max-width: 65ch;
|
||||
word-spacing: 0.12em;
|
||||
}
|
||||
|
||||
#notes-list ul.tags {
|
||||
li.gospels {
|
||||
@apply bg-gospels;
|
||||
|
|
@ -117,8 +148,8 @@ header {
|
|||
#menu {
|
||||
cursor: pointer;
|
||||
}
|
||||
#menu span {
|
||||
@apply align-top;
|
||||
#menu span.label-text {
|
||||
@apply align-top inline ml-4;
|
||||
}
|
||||
#hamburger {
|
||||
display: inline-block;
|
||||
|
|
|
|||
Loading…
Reference in a new issue