Andley_BG4e/assets/css/style.scss

155 lines
2.7 KiB
SCSS
Raw Normal View History

2021-09-11 22:59:13 +00:00
---
---
@import "{{ site.theme }}";
@import url('https://fonts.googleapis.com/css2?family=Gentium+Book+Plus&family=Noto+Sans+TC&display=swap');
body {
font-family: 'Gentium Book Plus', 'Noto Sans TC', 'Noto Sans SC';
color: black;
2021-09-11 23:47:52 +00:00
}
2021-09-12 02:25:17 +00:00
h1 {
color: #C00000;
text-align: center;
border-bottom: 4px double ;
}
2021-09-12 02:25:17 +00:00
h2 {
text-align: center;
}
h2, h3, h4, h5, h6 {
margin-top: 10px;
color:black;
2021-09-12 02:25:17 +00:00
}
strong {
2021-09-11 23:59:43 +00:00
color: red;
font-weight:700;
2021-09-11 23:47:52 +00:00
}
em {
2021-09-11 23:59:43 +00:00
color: blue;
font-weight:700;
2021-09-12 10:16:21 +00:00
}
ul {
margin-bottom: 0em;
}
ruby {
font-size: 16px;
line-height: 4.5em;
}
ul ruby {
line-height: 2.5em;
}
rt {
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 {
&.pm {background: none;font-weight:900; }
&.S {background: none; text-decoration: underline double; text-underline-offset: 4px;}
&.P {background: none; text-decoration: underline wavy; text-underline-offset: 4px;}
&.C {background: none; text-decoration: underline solid; text-underline-offset: 4px;}
&.A {background: none; text-decoration: underline dotted; text-underline-offset: 4px;}
&.green {background-color: lightgreen; }
&.red {background-color: lightcoral; }
&.blue {background-color: skyblue; }
&.purple {background-color: purple; }
}
/* 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;
}
}