Andley_BG4e/assets/css/style.scss

197 lines
4.0 KiB
SCSS
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
---
@import "{{ site.theme }}";
@import url('https://fonts.googleapis.com/css2?family=Gentium+Book+Plus&family=Noto+Sans+TC&display=swap');
/* 設定字型 */
@font-face {
font-family: AndleyFont;
unicode-range: U+0370-03FF, U+1F00-1FFF; /* Greek UNICODE */
src: local("Gentium Book Plus");
}
@font-face {
font-family: AndleyFont;
unicode-range: U+0590-05FF, U+FB10-FB4F; /* Hebrew UNICODE */
src: local("SBL Hebrew");
}
@font-face {
font-family: AndleyFont;
unicode-range: U+00-024F; /* English UNICODE */
src: local("Noto Sans");
}
@font-face {
font-family: AndleyFont;
unicode-range: U+4E00-9FFF, U+3400-4DBF, U+20000-2A6DF, U+2A7002B73F, U+2B7402B81F, U+2B8202CEAF, U+F900-FAFF, U+2F800-2FA1F; /* 中文 UNICODE */
src: local("Noto Sans CJK TC");
}
/* ———————— */
@font-face {
font-family: InterlinearFont;
unicode-range: U+0370-03FF, U+1F00-1FFF; /* Greek UNICODE */
src: local("Gentium Plus");
}
@font-face {
font-family: InterlinearFont;
unicode-range: U+0590-05FF, U+FB10-FB4F; /* Hebrew UNICODE */
src: local("SBL Hebrew");
}
@font-face {
font-family: InterlinearFont;
unicode-range: U+00-024F; /* English UNICODE */
src: local("Arial Narrow");
}
@font-face {
font-family: InterlinearFont;
unicode-range: U+4E00-9FFF; /* 中文 UNICODE */
src: local("Noto Sans CJK TC");
}
body {
font-family: 'Gentium Book Plus', 'Noto Serif Hebrew', 'Noto Sans TC', 'Noto Sans SC';
color: black;
}
h1 {
color: #C00000;
text-align: center;
border-bottom: 4px double ;
}
h2 {
text-align: center;
}
h2, h3, h4, h5, h6 {
margin-top: 10px;
color:black;
}
ul {
margin-bottom: 0em;
}
ruby {
font-family: AndleyFont;
font-size: 16px;
line-height: 4.5em;
padding: 0 1px;
}
li ruby {
line-height: 3.5em;
}
li {
line-height:1.5em;
}
rt {
font-family: InterlinearFont;
text-align: center;
font-size:13px;
padding: 0 2px;
}
/* page layout */
header {
padding: 20px 20px 5px 20px;
}
section {
margin-top: 100px;
padding-top:20px;
}
ul li::marker {
content: '';
}
nav {
ul li::marker {
content: none;
}
}
section.footnotes {
width: 90%;
margin-top: 30px;
}
/* table */
table {
margin-left: auto;
margin-right: auto;
}
th {
border-bottom: 4px double;
border-top: 2px solid;
border-right: 2px solid;
border-left: 2px solid;
font-weight: 800;
border-color: black;
}
td {
border: 1px solid;
border-color: black;
}
td:first-child {
border-left: 1px solid;
}
/* offset anchor tag link */
:target {
padding-top: 115px;
margin-top: -115px;
}
/* text decoration for marking syntax functions */
mark {
&.poetry::before {content:'\a '; white-space: pre;}
&.poetry {background-color: transparent;}
&.paragraph::after {background-color: transparent; content:'\a\a'; white-space: pre;}
&.punctuation {background-color: transparent; font-weight:bolder;}
&.verb {background-color: transparent; text-decoration: underline double; text-underline-offset: 5px;}
&.ptc {background-color: transparent; text-decoration: underline solid; text-underline-offset: 5px;}
&.inf {background-color: transparent; text-decoration: underline dotted; text-underline-offset: 5px;}
}
/* BULLET POINT RELATIONSHIP LINES */
ul ul { position: relative; }
ul ul::before {
content:'';
border-left: 1px solid grey ;
position: absolute;
}
ul ul::before { left: -7px; top: 0; bottom: 0;
}
/*Functional Styling*/
@media (pointer: coarse), (hover: none) {
[title] {
position: relative;
display: inline-flex;
justify-content: center;
}
[title]:focus::after {
content: attr(title);
position: absolute;
top: 110%;
color: #000;
background-color: lightgreen;
border: 2px solid;
width: fit-content;
padding: 3px;
font-size: 12px;
z-index:1;
}
}