pdf-toweb / style.css
Corran's picture
Update style.css
505e700 verified
raw
history blame contribute delete
No virus
4.22 kB
@font-face {
font-family: 'opendyslexic';
src: url('https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic/otf/OpenDyslexic-Regular.otf');
font-style: normal;
font-weight: normal;
}
@font-face {
font-family: 'opendyslexic';
src: url('https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic/otf/OpenDyslexic-Italic.otf');
font-style: italic;
font-weight: normal;
}
@font-face {
font-family: 'opendyslexic';
src: url('https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic/otf/OpenDyslexic-Bold.otf');
font-weight: bold;
font-style: normal;
}
@font-face {
font-family: 'opendyslexic';
src: url('https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic/otf/OpenDyslexic-BoldItalic.otf');
font-weight: bold;
font-style: italic;
}
article {
display: grid;
grid-template-columns: 1fr 1fr minmax(10px, calc(100% - 40px)) minmax(300px, 70%) minmax(10px, calc(100% - 40px)) 1fr 1fr;
}
article.default p {
font-family: Calibri, sans-serif;
}
article.dyslexic {
font-family: opendyslexic !important;
}
article.dyslexic p {
font-family: opendyslexic !important;
}
article > * {
grid-column: 4;
}
section > figure {
grid-column: 1 / -1;
margin: 2.5%;
}
article > .aside {
grid-column: 5 / -1;
padding: 0 2.5%;
}
section > blockquote {
grid-column: 3 / span 2;
margin: 0;
color: #666;
border-left: 0.2em solid black;
padding-left: 2%;
}
html, body {
margin: 0;
padding: 0;
font-size: 16px;
line-height: 1.4;
}
article > * {
min-width: 0;
}
section > h1 {
font-size: 2em; /* ~21px */
}
section.default > p {
--x-height-multiplier: 0.375;
--baseline-multiplier: 0.17;
letter-spacing: .01em;
font-weight: 400;
font-style: normal;
font-size: 1.3125em; /* ~21px */
line-height: 1.58;
letter-spacing: -.003em;
color: rgba(0, 0, 0, .84);
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
nav.default > p {
--x-height-multiplier: 0.375;
--baseline-multiplier: 0.17;
letter-spacing: .01em;
font-weight: 400;
font-style: normal;
font-size: 0.9375em; /* ~15px */
line-height: 1.58;
letter-spacing: -.003em;
color: rgba(0, 0, 0, .84);
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
section > .aside {
margin: 3% 2.5%;
color: #666;
font-size: 0.8em;
}
a {
color: inherit;
text-decoration: none;
}
img {
max-width: 100%;
height: auto;
}
.line-numbers a {
text-decoration: none;
color: #000;
padding-right: 1em;
}
code {
background: #eee;
padding: 0.125em 0.3125em; /* 2px 5px */
}
pre {
background: #eee;
padding: 0.625em 0.9375em; /* 10px 15px */
overflow: auto;
}
pre > code {
padding: 0;
}
figure {
margin: 0;
}
figure figcaption {
color: #666;
font-style: italic;
font-size: 0.8em;
}
article > .sticky-content {
top: 2.5%;
left: 2.5%;
position: fixed;
max-width: 20%; /* Adjust as needed */
z-index: 100;
}
.sticky-content p {
font-size: 0.625em; /* ~10px */
}
.sticky-content a {
display: block;
}
/* Media Queries */
@media screen and (max-width: 960px) {
article {
grid-template-columns: 5% 1fr 1fr 5%;
}
article > * {
grid-column: 2 / -2;
}
article > .aside {
grid-column: 2 / -2;
}
section > blockquote {
grid-column: 1 / -1;
}
}
@media screen and (max-width: 480px) {
section > p {
font-size: 1.125rem; /* ~18px */
}
nav > p {
font-size: 0.875rem; /* ~14px */
}
}
.dialog {
display: none;
position: fixed;
background-color: white;
border: 1px solid #ccc;
padding: 10px;
z-index: 1000;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
overflow-y: auto;
}
.close-button {
display: inline-block;
margin-top: 10px;
padding: 5px 10px;
background-color: #007BFF;
color: white;
border: none;
cursor: pointer;
}
.text-area {
cursor: pointer;
color: #007BFF;
}
.sticky-content a {
color: inherit !important;
text-decoration: none !important;
}