501 lines
13 KiB
CSS
501 lines
13 KiB
CSS
/****** FONTS ******/
|
|
|
|
/* Andika with the nahan script */
|
|
@font-face {
|
|
font-family: AndikaAmbNaran;
|
|
src: url("../fonts/AndikaAmbNaran.ttf") format("truetype");
|
|
}
|
|
|
|
/* Iosevka Aile as the main font */
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 100;
|
|
font-stretch: normal;
|
|
font-style: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-Thin.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-Thin.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 100;
|
|
font-stretch: normal;
|
|
font-style: oblique;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ThinOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ThinOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web Oblique';
|
|
font-display: swap;
|
|
font-weight: 100;
|
|
font-stretch: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ThinOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ThinOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 100;
|
|
font-stretch: normal;
|
|
font-style: italic;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ThinItalic.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ThinItalic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 200;
|
|
font-stretch: normal;
|
|
font-style: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ExtraLight.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ExtraLight.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 200;
|
|
font-stretch: normal;
|
|
font-style: oblique;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ExtraLightOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ExtraLightOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web Oblique';
|
|
font-display: swap;
|
|
font-weight: 200;
|
|
font-stretch: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ExtraLightOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ExtraLightOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 200;
|
|
font-stretch: normal;
|
|
font-style: italic;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ExtraLightItalic.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ExtraLightItalic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 300;
|
|
font-stretch: normal;
|
|
font-style: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-Light.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-Light.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 300;
|
|
font-stretch: normal;
|
|
font-style: oblique;
|
|
src: url('../fonts/WOFF2/IosevkaAile-LightOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-LightOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web Oblique';
|
|
font-display: swap;
|
|
font-weight: 300;
|
|
font-stretch: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-LightOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-LightOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 300;
|
|
font-stretch: normal;
|
|
font-style: italic;
|
|
src: url('../fonts/WOFF2/IosevkaAile-LightItalic.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-LightItalic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 400;
|
|
font-stretch: normal;
|
|
font-style: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-Regular.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-Regular.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 400;
|
|
font-stretch: normal;
|
|
font-style: oblique;
|
|
src: url('../fonts/WOFF2/IosevkaAile-Oblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-Oblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web Oblique';
|
|
font-display: swap;
|
|
font-weight: 400;
|
|
font-stretch: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-Oblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-Oblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 400;
|
|
font-stretch: normal;
|
|
font-style: italic;
|
|
src: url('../fonts/WOFF2/IosevkaAile-Italic.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-Italic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 500;
|
|
font-stretch: normal;
|
|
font-style: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-Medium.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-Medium.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 500;
|
|
font-stretch: normal;
|
|
font-style: oblique;
|
|
src: url('../fonts/WOFF2/IosevkaAile-MediumOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-MediumOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web Oblique';
|
|
font-display: swap;
|
|
font-weight: 500;
|
|
font-stretch: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-MediumOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-MediumOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 500;
|
|
font-stretch: normal;
|
|
font-style: italic;
|
|
src: url('../fonts/WOFF2/IosevkaAile-MediumItalic.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-MediumItalic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 600;
|
|
font-stretch: normal;
|
|
font-style: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-SemiBold.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-SemiBold.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 600;
|
|
font-stretch: normal;
|
|
font-style: oblique;
|
|
src: url('../fonts/WOFF2/IosevkaAile-SemiBoldOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-SemiBoldOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web Oblique';
|
|
font-display: swap;
|
|
font-weight: 600;
|
|
font-stretch: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-SemiBoldOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-SemiBoldOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 600;
|
|
font-stretch: normal;
|
|
font-style: italic;
|
|
src: url('../fonts/WOFF2/IosevkaAile-SemiBoldItalic.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-SemiBoldItalic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 700;
|
|
font-stretch: normal;
|
|
font-style: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-Bold.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-Bold.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 700;
|
|
font-stretch: normal;
|
|
font-style: oblique;
|
|
src: url('../fonts/WOFF2/IosevkaAile-BoldOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-BoldOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web Oblique';
|
|
font-display: swap;
|
|
font-weight: 700;
|
|
font-stretch: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-BoldOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-BoldOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 700;
|
|
font-stretch: normal;
|
|
font-style: italic;
|
|
src: url('../fonts/WOFF2/IosevkaAile-BoldItalic.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-BoldItalic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 800;
|
|
font-stretch: normal;
|
|
font-style: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ExtraBold.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ExtraBold.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 800;
|
|
font-stretch: normal;
|
|
font-style: oblique;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ExtraBoldOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ExtraBoldOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web Oblique';
|
|
font-display: swap;
|
|
font-weight: 800;
|
|
font-stretch: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ExtraBoldOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ExtraBoldOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 800;
|
|
font-stretch: normal;
|
|
font-style: italic;
|
|
src: url('../fonts/WOFF2/IosevkaAile-ExtraBoldItalic.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-ExtraBoldItalic.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 900;
|
|
font-stretch: normal;
|
|
font-style: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-Heavy.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-Heavy.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 900;
|
|
font-stretch: normal;
|
|
font-style: oblique;
|
|
src: url('../fonts/WOFF2/IosevkaAile-HeavyOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-HeavyOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web Oblique';
|
|
font-display: swap;
|
|
font-weight: 900;
|
|
font-stretch: normal;
|
|
src: url('../fonts/WOFF2/IosevkaAile-HeavyOblique.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-HeavyOblique.ttf') format('truetype');
|
|
}
|
|
|
|
@font-face {
|
|
font-family: 'Iosevka Aile Web';
|
|
font-display: swap;
|
|
font-weight: 900;
|
|
font-stretch: normal;
|
|
font-style: italic;
|
|
src: url('../fonts/WOFF2/IosevkaAile-HeavyItalic.woff2') format('woff2'), url('../fonts/TTF/IosevkaAile-HeavyItalic.ttf') format('truetype');
|
|
}
|
|
|
|
/****** basics ******/
|
|
|
|
:root {
|
|
--bg: #282828;
|
|
--bg-accent: #504945;
|
|
--fg: #ebdbb2;
|
|
--fg-disabled: #bdae93;
|
|
--accent: #fe8019;
|
|
--note: #b8bb26;
|
|
--info: #83a598;
|
|
--warn: #fabd2f;
|
|
--error: #fb4934;
|
|
--font-main: Iosevka Aile Web, sans-serif;
|
|
--font-mono: Iosevka, monospace;
|
|
}
|
|
* {
|
|
font-family: var(--font-main);
|
|
font-weight: 300;
|
|
padding: 0pt;
|
|
margin: 0pt;
|
|
}
|
|
body {
|
|
background-color: var(--bg);
|
|
color: var(--fg);
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-weight: 800;
|
|
}
|
|
strong {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/****** header ****/
|
|
|
|
header {
|
|
width: 100%;
|
|
background-color: var(--bg-accent);
|
|
text-align: center;
|
|
}
|
|
|
|
header h1 a {
|
|
text-decoration: none;
|
|
}
|
|
|
|
a {
|
|
display: inline;
|
|
color: var(--accent)
|
|
}
|
|
|
|
header nav {
|
|
width: 100%;
|
|
padding: 0pt, 10pt;
|
|
background-color: var(--bg-accent);
|
|
justify-items: stretch;
|
|
justify-content: space-evenly;
|
|
align-items: stretch;
|
|
display: flex;
|
|
}
|
|
|
|
nav input {
|
|
width: 25vw;
|
|
background-color: var(--bg);
|
|
margin: 10pt;
|
|
color: var(--fg);
|
|
}
|
|
|
|
aside, aside * {
|
|
background-color: var(--bg-accent);
|
|
}
|
|
|
|
/****** Search Box ******/
|
|
|
|
ul.sresult {
|
|
width: 50vw;
|
|
height: 20vw;
|
|
overflow: scroll;
|
|
justify-content: center;
|
|
position: absolute;
|
|
top: 25%;
|
|
left: 50%;
|
|
transform: translate(-50%, 0%);
|
|
background-color: var(--bg-accent);
|
|
padding: 10pt;
|
|
border: .1em solid var(--fg-disabled);
|
|
}
|
|
li.sresult {
|
|
list-style: none;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
/****** Table of contents ******/
|
|
aside {
|
|
padding: 10pt;
|
|
height: min-content;
|
|
}
|
|
|
|
@media (min-width: 1000px) {
|
|
#main-body {display: flex;}
|
|
main {
|
|
width: calc(100% - 20em);
|
|
}
|
|
aside {
|
|
margin: 10pt 10pt 10pt 0pt;
|
|
width: 20em;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1000px) {
|
|
main {
|
|
width: 100% - 20pt
|
|
}
|
|
aside { width: 100% - 20pt }
|
|
}
|
|
|
|
/****** Main body styling ******/
|
|
|
|
main {
|
|
padding: 25pt 10pt;
|
|
}
|
|
|
|
main h1 {
|
|
font-size: 2em;
|
|
font-weight: bold;
|
|
}
|
|
|
|
main li {
|
|
list-style-position: inside;
|
|
padding: 0 0 0 10pt;
|
|
}
|
|
|
|
main table {
|
|
margin: 1em;
|
|
}
|
|
|
|
main td {
|
|
padding: 0em 1em;
|
|
margin: 0;
|
|
}
|
|
|
|
main .low {
|
|
color: var(--fg-disabled);
|
|
font-style: italic;
|
|
}
|
|
|
|
main .high {
|
|
color: var(--accent);
|
|
font-family: inherit;
|
|
}
|
|
|
|
main em {
|
|
color: var(--accent);
|
|
}
|
|
|
|
main table, main td, main tr {
|
|
border-collapse: collapse;
|
|
margin: 10px;
|
|
border-collapse: collapse;
|
|
border: 1px solid var(--fg-disabled);
|
|
text-align: center;
|
|
}
|
|
|
|
main h2, main h3, main h4, main h5, main h6{
|
|
padding-top: 1em;
|
|
}
|
|
|
|
/****** GLOSSES ******/
|
|
.gloss, .gloss tr, .gloss td {
|
|
border: none;
|
|
text-align: left;
|
|
padding: 0 .25em;
|
|
}
|
|
|
|
/****** SCRIPTS ******/
|
|
.scr-nahan {
|
|
font-family: AndikaAmbNaran;
|
|
} |