Merge pull request #105 from sivan/chore/dart-sass
chore: update to dart sass
This commit is contained in:
commit
38b0fd865d
7 changed files with 4570 additions and 2710 deletions
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
- name: Setup Node.js
|
- name: Setup Node.js
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 18
|
||||||
- name: NPM Install and Test
|
- name: NPM Install and Test
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
|
|
4
.github/workflows/nodejs.yml
vendored
4
.github/workflows/nodejs.yml
vendored
|
@ -7,11 +7,11 @@ on: [push, pull_request]
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-20.04
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node-version: [12.x, 14.x]
|
node-version: [16.x, 18.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
|
|
297
_site/heti.css
297
_site/heti.css
File diff suppressed because it is too large
Load diff
330
_site/index.css
330
_site/index.css
|
@ -12,10 +12,8 @@
|
||||||
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
||||||
*/
|
*/
|
||||||
html {
|
html {
|
||||||
line-height: 1.15;
|
line-height: 1.15; /* 1 */
|
||||||
/* 1 */
|
-webkit-text-size-adjust: 100%; /* 2 */
|
||||||
-webkit-text-size-adjust: 100%;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Sections
|
/* Sections
|
||||||
|
@ -50,12 +48,9 @@ h1 {
|
||||||
* 2. Show the overflow in Edge and IE.
|
* 2. Show the overflow in Edge and IE.
|
||||||
*/
|
*/
|
||||||
hr {
|
hr {
|
||||||
box-sizing: content-box;
|
box-sizing: content-box; /* 1 */
|
||||||
/* 1 */
|
height: 0; /* 1 */
|
||||||
height: 0;
|
overflow: visible; /* 2 */
|
||||||
/* 1 */
|
|
||||||
overflow: visible;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -63,10 +58,8 @@ hr {
|
||||||
* 2. Correct the odd `em` font sizing in all browsers.
|
* 2. Correct the odd `em` font sizing in all browsers.
|
||||||
*/
|
*/
|
||||||
pre {
|
pre {
|
||||||
font-family: monospace, monospace;
|
font-family: monospace, monospace; /* 1 */
|
||||||
/* 1 */
|
font-size: 1em; /* 2 */
|
||||||
font-size: 1em;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Text-level semantics
|
/* Text-level semantics
|
||||||
|
@ -83,12 +76,9 @@ a {
|
||||||
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
||||||
*/
|
*/
|
||||||
abbr[title] {
|
abbr[title] {
|
||||||
border-bottom: none;
|
border-bottom: none; /* 1 */
|
||||||
/* 1 */
|
text-decoration: underline; /* 2 */
|
||||||
text-decoration: underline;
|
text-decoration: underline dotted; /* 2 */
|
||||||
/* 2 */
|
|
||||||
text-decoration: underline dotted;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -106,10 +96,8 @@ strong {
|
||||||
code,
|
code,
|
||||||
kbd,
|
kbd,
|
||||||
samp {
|
samp {
|
||||||
font-family: monospace, monospace;
|
font-family: monospace, monospace; /* 1 */
|
||||||
/* 1 */
|
font-size: 1em; /* 2 */
|
||||||
font-size: 1em;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -159,14 +147,10 @@ input,
|
||||||
optgroup,
|
optgroup,
|
||||||
select,
|
select,
|
||||||
textarea {
|
textarea {
|
||||||
font-family: inherit;
|
font-family: inherit; /* 1 */
|
||||||
/* 1 */
|
font-size: 100%; /* 1 */
|
||||||
font-size: 100%;
|
line-height: 1.15; /* 1 */
|
||||||
/* 1 */
|
margin: 0; /* 2 */
|
||||||
line-height: 1.15;
|
|
||||||
/* 1 */
|
|
||||||
margin: 0;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -174,8 +158,7 @@ textarea {
|
||||||
* 1. Show the overflow in Edge.
|
* 1. Show the overflow in Edge.
|
||||||
*/
|
*/
|
||||||
button,
|
button,
|
||||||
input {
|
input { /* 1 */
|
||||||
/* 1 */
|
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,8 +167,7 @@ input {
|
||||||
* 1. Remove the inheritance of text transform in Firefox.
|
* 1. Remove the inheritance of text transform in Firefox.
|
||||||
*/
|
*/
|
||||||
button,
|
button,
|
||||||
select {
|
select { /* 1 */
|
||||||
/* 1 */
|
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -193,9 +175,9 @@ select {
|
||||||
* Correct the inability to style clickable types in iOS and Safari.
|
* Correct the inability to style clickable types in iOS and Safari.
|
||||||
*/
|
*/
|
||||||
button,
|
button,
|
||||||
[type="button"],
|
[type=button],
|
||||||
[type="reset"],
|
[type=reset],
|
||||||
[type="submit"] {
|
[type=submit] {
|
||||||
-webkit-appearance: button;
|
-webkit-appearance: button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -203,9 +185,9 @@ button,
|
||||||
* Remove the inner border and padding in Firefox.
|
* Remove the inner border and padding in Firefox.
|
||||||
*/
|
*/
|
||||||
button::-moz-focus-inner,
|
button::-moz-focus-inner,
|
||||||
[type="button"]::-moz-focus-inner,
|
[type=button]::-moz-focus-inner,
|
||||||
[type="reset"]::-moz-focus-inner,
|
[type=reset]::-moz-focus-inner,
|
||||||
[type="submit"]::-moz-focus-inner {
|
[type=submit]::-moz-focus-inner {
|
||||||
border-style: none;
|
border-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
@ -214,9 +196,9 @@ button::-moz-focus-inner,
|
||||||
* Restore the focus styles unset by the previous rule.
|
* Restore the focus styles unset by the previous rule.
|
||||||
*/
|
*/
|
||||||
button:-moz-focusring,
|
button:-moz-focusring,
|
||||||
[type="button"]:-moz-focusring,
|
[type=button]:-moz-focusring,
|
||||||
[type="reset"]:-moz-focusring,
|
[type=reset]:-moz-focusring,
|
||||||
[type="submit"]:-moz-focusring {
|
[type=submit]:-moz-focusring {
|
||||||
outline: 1px dotted ButtonText;
|
outline: 1px dotted ButtonText;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -234,18 +216,12 @@ fieldset {
|
||||||
* `fieldset` elements in all browsers.
|
* `fieldset` elements in all browsers.
|
||||||
*/
|
*/
|
||||||
legend {
|
legend {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box; /* 1 */
|
||||||
/* 1 */
|
color: inherit; /* 2 */
|
||||||
color: inherit;
|
display: table; /* 1 */
|
||||||
/* 2 */
|
max-width: 100%; /* 1 */
|
||||||
display: table;
|
padding: 0; /* 3 */
|
||||||
/* 1 */
|
white-space: normal; /* 1 */
|
||||||
max-width: 100%;
|
|
||||||
/* 1 */
|
|
||||||
padding: 0;
|
|
||||||
/* 3 */
|
|
||||||
white-space: normal;
|
|
||||||
/* 1 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -266,19 +242,17 @@ textarea {
|
||||||
* 1. Add the correct box sizing in IE 10.
|
* 1. Add the correct box sizing in IE 10.
|
||||||
* 2. Remove the padding in IE 10.
|
* 2. Remove the padding in IE 10.
|
||||||
*/
|
*/
|
||||||
[type="checkbox"],
|
[type=checkbox],
|
||||||
[type="radio"] {
|
[type=radio] {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box; /* 1 */
|
||||||
/* 1 */
|
padding: 0; /* 2 */
|
||||||
padding: 0;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Correct the cursor style of increment and decrement buttons in Chrome.
|
* Correct the cursor style of increment and decrement buttons in Chrome.
|
||||||
*/
|
*/
|
||||||
[type="number"]::-webkit-inner-spin-button,
|
[type=number]::-webkit-inner-spin-button,
|
||||||
[type="number"]::-webkit-outer-spin-button {
|
[type=number]::-webkit-outer-spin-button {
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,17 +260,15 @@ textarea {
|
||||||
* 1. Correct the odd appearance in Chrome and Safari.
|
* 1. Correct the odd appearance in Chrome and Safari.
|
||||||
* 2. Correct the outline style in Safari.
|
* 2. Correct the outline style in Safari.
|
||||||
*/
|
*/
|
||||||
[type="search"] {
|
[type=search] {
|
||||||
-webkit-appearance: textfield;
|
-webkit-appearance: textfield; /* 1 */
|
||||||
/* 1 */
|
outline-offset: -2px; /* 2 */
|
||||||
outline-offset: -2px;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Remove the inner padding in Chrome and Safari on macOS.
|
* Remove the inner padding in Chrome and Safari on macOS.
|
||||||
*/
|
*/
|
||||||
[type="search"]::-webkit-search-decoration {
|
[type=search]::-webkit-search-decoration {
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,10 +277,8 @@ textarea {
|
||||||
* 2. Change font properties to `inherit` in Safari.
|
* 2. Change font properties to `inherit` in Safari.
|
||||||
*/
|
*/
|
||||||
::-webkit-file-upload-button {
|
::-webkit-file-upload-button {
|
||||||
-webkit-appearance: button;
|
-webkit-appearance: button; /* 1 */
|
||||||
/* 1 */
|
font: inherit; /* 2 */
|
||||||
font: inherit;
|
|
||||||
/* 2 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Interactive
|
/* Interactive
|
||||||
|
@ -360,84 +330,74 @@ li {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container[data-bg-grid="grid-12"] {
|
.container[data-bg-grid=grid-12] {
|
||||||
background-size: 100% 12px;
|
background-size: 100% 12px;
|
||||||
background-image: linear-gradient(transparent 11px, #ededed 1px), linear-gradient(to left, transparent 12px, #ededed, transparent 13px), linear-gradient(to right, transparent 12px, #ededed, transparent 13px);
|
background-image: linear-gradient(transparent 11px, hsl(0deg, 0%, 93%) 1px), linear-gradient(to left, transparent 12px, hsl(0deg, 0%, 93%), transparent 13px), linear-gradient(to right, transparent 12px, hsl(0deg, 0%, 93%), transparent 13px);
|
||||||
}
|
}
|
||||||
|
.container[data-bg-grid=grid-12] .heti--vertical {
|
||||||
.container[data-bg-grid="grid-12"] .heti--vertical {
|
outline: 1px solid hsl(0deg, 0%, 93%);
|
||||||
outline: 1px solid #ededed;
|
|
||||||
background-size: 12px 100%;
|
background-size: 12px 100%;
|
||||||
background-image: linear-gradient(to left, transparent 11px, #ededed 1px);
|
background-image: linear-gradient(to left, transparent 11px, hsl(0deg, 0%, 93%) 1px);
|
||||||
}
|
}
|
||||||
|
.container[data-bg-grid=grid-24] {
|
||||||
.container[data-bg-grid="grid-24"] {
|
|
||||||
background-size: 100% 24px;
|
background-size: 100% 24px;
|
||||||
background-image: linear-gradient(transparent 23px, #ededed 1px), linear-gradient(to left, transparent 12px, #ededed, transparent 13px), linear-gradient(to right, transparent 12px, #ededed, transparent 13px);
|
background-image: linear-gradient(transparent 23px, hsl(0deg, 0%, 93%) 1px), linear-gradient(to left, transparent 12px, hsl(0deg, 0%, 93%), transparent 13px), linear-gradient(to right, transparent 12px, hsl(0deg, 0%, 93%), transparent 13px);
|
||||||
}
|
}
|
||||||
|
.container[data-bg-grid=grid-24] .heti--vertical {
|
||||||
.container[data-bg-grid="grid-24"] .heti--vertical {
|
outline: 1px solid hsl(0deg, 0%, 93%);
|
||||||
outline: 1px solid #ededed;
|
|
||||||
background-size: 24px 100%;
|
background-size: 24px 100%;
|
||||||
background-image: linear-gradient(to left, transparent 23px, #ededed 1px);
|
background-image: linear-gradient(to left, transparent 23px, hsl(0deg, 0%, 93%) 1px);
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .container[data-bg-grid=grid-12] {
|
||||||
[data-darkmode="dark"] .container[data-bg-grid="grid-12"] {
|
background-image: linear-gradient(transparent 11px, hsl(0deg, 0%, 20%) 1px), linear-gradient(to left, transparent 12px, hsl(0deg, 0%, 20%), transparent 13px), linear-gradient(to right, transparent 12px, hsl(0deg, 0%, 20%), transparent 13px);
|
||||||
background-image: linear-gradient(transparent 11px, #333333 1px), linear-gradient(to left, transparent 12px, #333333, transparent 13px), linear-gradient(to right, transparent 12px, #333333, transparent 13px);
|
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .container[data-bg-grid=grid-12] .heti--vertical {
|
||||||
[data-darkmode="dark"] .container[data-bg-grid="grid-12"] .heti--vertical {
|
|
||||||
background-size: 12px 100%;
|
background-size: 12px 100%;
|
||||||
background-image: linear-gradient(to left, transparent 11px, #333333 1px);
|
background-image: linear-gradient(to left, transparent 11px, hsl(0deg, 0%, 20%) 1px);
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .container[data-bg-grid=grid-24] {
|
||||||
[data-darkmode="dark"] .container[data-bg-grid="grid-24"] {
|
background-image: linear-gradient(transparent 23px, hsl(0deg, 0%, 20%) 1px), linear-gradient(to left, transparent 12px, hsl(0deg, 0%, 20%), transparent 13px), linear-gradient(to right, transparent 12px, hsl(0deg, 0%, 20%), transparent 13px);
|
||||||
background-image: linear-gradient(transparent 23px, #333333 1px), linear-gradient(to left, transparent 12px, #333333, transparent 13px), linear-gradient(to right, transparent 12px, #333333, transparent 13px);
|
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .container[data-bg-grid=grid-24] .heti--vertical {
|
||||||
[data-darkmode="dark"] .container[data-bg-grid="grid-24"] .heti--vertical {
|
|
||||||
background-size: 24px 100%;
|
background-size: 24px 100%;
|
||||||
background-image: linear-gradient(to left, transparent 23px, #333333 1px);
|
background-image: linear-gradient(to left, transparent 23px, hsl(0deg, 0%, 20%) 1px);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
[data-darkmode="auto"] .container[data-bg-grid="grid-12"] {
|
[data-darkmode=auto] .container[data-bg-grid=grid-12] {
|
||||||
background-image: linear-gradient(transparent 11px, #333333 1px), linear-gradient(to left, transparent 12px, #333333, transparent 13px), linear-gradient(to right, transparent 12px, #333333, transparent 13px);
|
background-image: linear-gradient(transparent 11px, hsl(0deg, 0%, 20%) 1px), linear-gradient(to left, transparent 12px, hsl(0deg, 0%, 20%), transparent 13px), linear-gradient(to right, transparent 12px, hsl(0deg, 0%, 20%), transparent 13px);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] .container[data-bg-grid="grid-12"] .heti--vertical {
|
[data-darkmode=auto] .container[data-bg-grid=grid-12] .heti--vertical {
|
||||||
background-size: 12px 100%;
|
background-size: 12px 100%;
|
||||||
background-image: linear-gradient(to left, transparent 11px, #333333 1px);
|
background-image: linear-gradient(to left, transparent 11px, hsl(0deg, 0%, 20%) 1px);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] .container[data-bg-grid="grid-24"] {
|
[data-darkmode=auto] .container[data-bg-grid=grid-24] {
|
||||||
background-image: linear-gradient(transparent 23px, #333333 1px), linear-gradient(to left, transparent 12px, #333333, transparent 13px), linear-gradient(to right, transparent 12px, #333333, transparent 13px);
|
background-image: linear-gradient(transparent 23px, hsl(0deg, 0%, 20%) 1px), linear-gradient(to left, transparent 12px, hsl(0deg, 0%, 20%), transparent 13px), linear-gradient(to right, transparent 12px, hsl(0deg, 0%, 20%), transparent 13px);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] .container[data-bg-grid="grid-24"] .heti--vertical {
|
[data-darkmode=auto] .container[data-bg-grid=grid-24] .heti--vertical {
|
||||||
background-size: 24px 100%;
|
background-size: 24px 100%;
|
||||||
background-image: linear-gradient(to left, transparent 23px, #333333 1px);
|
background-image: linear-gradient(to left, transparent 23px, hsl(0deg, 0%, 20%) 1px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 640px) {
|
@media screen and (min-width: 640px) {
|
||||||
.container[data-bg-grid="grid-12"] {
|
.container[data-bg-grid=grid-12] {
|
||||||
background-image: linear-gradient(transparent 11px, #ededed 1px), linear-gradient(to left, transparent 48px, #ededed, transparent 49px), linear-gradient(to right, transparent 48px, rgba(255, 0, 0, 0.4), transparent 49px);
|
background-image: linear-gradient(transparent 11px, hsl(0deg, 0%, 93%) 1px), linear-gradient(to left, transparent 48px, hsl(0deg, 0%, 93%), transparent 49px), linear-gradient(to right, transparent 48px, hsla(0deg, 100%, 50%, 0.4), transparent 49px);
|
||||||
}
|
}
|
||||||
.container[data-bg-grid="grid-24"] {
|
.container[data-bg-grid=grid-24] {
|
||||||
background-image: linear-gradient(transparent 23px, #ededed 1px), linear-gradient(to left, transparent 48px, #ededed, transparent 49px), linear-gradient(to right, transparent 48px, rgba(255, 0, 0, 0.4), transparent 49px);
|
background-image: linear-gradient(transparent 23px, hsl(0deg, 0%, 93%) 1px), linear-gradient(to left, transparent 48px, hsl(0deg, 0%, 93%), transparent 49px), linear-gradient(to right, transparent 48px, hsla(0deg, 100%, 50%, 0.4), transparent 49px);
|
||||||
}
|
}
|
||||||
[data-darkmode="dark"] .container[data-bg-grid="grid-12"] {
|
[data-darkmode=dark] .container[data-bg-grid=grid-12] {
|
||||||
background-image: linear-gradient(transparent 11px, #333333 1px), linear-gradient(to left, transparent 48px, #333333, transparent 49px), linear-gradient(to right, transparent 48px, rgba(255, 77, 77, 0.4), transparent 49px);
|
background-image: linear-gradient(transparent 11px, hsl(0deg, 0%, 20%) 1px), linear-gradient(to left, transparent 48px, hsl(0deg, 0%, 20%), transparent 49px), linear-gradient(to right, transparent 48px, hsla(0deg, 100%, 65%, 0.4), transparent 49px);
|
||||||
}
|
}
|
||||||
[data-darkmode="dark"] .container[data-bg-grid="grid-24"] {
|
[data-darkmode=dark] .container[data-bg-grid=grid-24] {
|
||||||
background-image: linear-gradient(transparent 23px, #333333 1px), linear-gradient(to left, transparent 48px, #333333, transparent 49px), linear-gradient(to right, transparent 48px, rgba(255, 77, 77, 0.4), transparent 49px);
|
background-image: linear-gradient(transparent 23px, hsl(0deg, 0%, 20%) 1px), linear-gradient(to left, transparent 48px, hsl(0deg, 0%, 20%), transparent 49px), linear-gradient(to right, transparent 48px, hsla(0deg, 100%, 65%, 0.4), transparent 49px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 640px) and (prefers-color-scheme: dark) {
|
@media screen and (min-width: 640px) and (prefers-color-scheme: dark) {
|
||||||
[data-darkmode="auto"] .container[data-bg-grid="grid-12"] {
|
[data-darkmode=auto] .container[data-bg-grid=grid-12] {
|
||||||
background-image: linear-gradient(transparent 11px, #333333 1px), linear-gradient(to left, transparent 48px, #333333, transparent 49px), linear-gradient(to right, transparent 48px, rgba(255, 77, 77, 0.4), transparent 49px);
|
background-image: linear-gradient(transparent 11px, hsl(0deg, 0%, 20%) 1px), linear-gradient(to left, transparent 48px, hsl(0deg, 0%, 20%), transparent 49px), linear-gradient(to right, transparent 48px, hsla(0deg, 100%, 65%, 0.4), transparent 49px);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] .container[data-bg-grid="grid-24"] {
|
[data-darkmode=auto] .container[data-bg-grid=grid-24] {
|
||||||
background-image: linear-gradient(transparent 23px, #333333 1px), linear-gradient(to left, transparent 48px, #333333, transparent 49px), linear-gradient(to right, transparent 48px, rgba(255, 77, 77, 0.4), transparent 49px);
|
background-image: linear-gradient(transparent 23px, hsl(0deg, 0%, 20%) 1px), linear-gradient(to left, transparent 48px, hsl(0deg, 0%, 20%), transparent 49px), linear-gradient(to right, transparent 48px, hsla(0deg, 100%, 65%, 0.4), transparent 49px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -471,7 +431,6 @@ li {
|
||||||
--border-block-end-highlight-tap-color: hsl(216, 100%, 42%);
|
--border-block-end-highlight-tap-color: hsl(216, 100%, 42%);
|
||||||
--text-highlight-color: hsl(0, 0%, 100%);
|
--text-highlight-color: hsl(0, 0%, 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list--gray {
|
.panel-list--gray {
|
||||||
--bg-color: hsl(180, 100%, 100%);
|
--bg-color: hsl(180, 100%, 100%);
|
||||||
--bg-tap-color: hsl(0, 0%, 94%);
|
--bg-tap-color: hsl(0, 0%, 94%);
|
||||||
|
@ -498,8 +457,7 @@ li {
|
||||||
--border-block-end-highlight-tap-color: hsl(228, 4%, 26%);
|
--border-block-end-highlight-tap-color: hsl(228, 4%, 26%);
|
||||||
--text-highlight-color: hsl(0, 0%, 92%);
|
--text-highlight-color: hsl(0, 0%, 92%);
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .panel-list {
|
||||||
[data-darkmode="dark"] .panel-list {
|
|
||||||
--bg-color: hsl(225, 2%, 40%);
|
--bg-color: hsl(225, 2%, 40%);
|
||||||
--bg-tap-color: hsl(210, 2%, 49%);
|
--bg-tap-color: hsl(210, 2%, 49%);
|
||||||
--border-color: hsla(210, 2%, 33%, 0.88);
|
--border-color: hsla(210, 2%, 33%, 0.88);
|
||||||
|
@ -525,8 +483,7 @@ li {
|
||||||
--border-block-end-highlight-tap-color: hsl(215, 74%, 51%);
|
--border-block-end-highlight-tap-color: hsl(215, 74%, 51%);
|
||||||
--text-highlight-color: hsl(0, 0%, 100%);
|
--text-highlight-color: hsl(0, 0%, 100%);
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .panel-list--gray {
|
||||||
[data-darkmode="dark"] .panel-list--gray {
|
|
||||||
--bg-color: hsl(0, 0%, 40%);
|
--bg-color: hsl(0, 0%, 40%);
|
||||||
--bg-tap-color: hsl(0, 0%, 49%);
|
--bg-tap-color: hsl(0, 0%, 49%);
|
||||||
--border-color: hsla(120, 1%, 34%, 0.88);
|
--border-color: hsla(120, 1%, 34%, 0.88);
|
||||||
|
@ -552,9 +509,8 @@ li {
|
||||||
--border-block-end-highlight-tap-color: hsl(0, 0%, 69%);
|
--border-block-end-highlight-tap-color: hsl(0, 0%, 69%);
|
||||||
--text-highlight-color: hsl(0, 0%, 15%);
|
--text-highlight-color: hsl(0, 0%, 15%);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
[data-darkmode="auto"] .panel-list {
|
[data-darkmode=auto] .panel-list {
|
||||||
--bg-color: hsl(225, 2%, 40%);
|
--bg-color: hsl(225, 2%, 40%);
|
||||||
--bg-tap-color: hsl(210, 2%, 49%);
|
--bg-tap-color: hsl(210, 2%, 49%);
|
||||||
--border-color: hsla(210, 2%, 33%, 0.88);
|
--border-color: hsla(210, 2%, 33%, 0.88);
|
||||||
|
@ -580,7 +536,7 @@ li {
|
||||||
--border-block-end-highlight-tap-color: hsl(215, 74%, 51%);
|
--border-block-end-highlight-tap-color: hsl(215, 74%, 51%);
|
||||||
--text-highlight-color: hsl(0, 0%, 100%);
|
--text-highlight-color: hsl(0, 0%, 100%);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] .panel-list--gray {
|
[data-darkmode=auto] .panel-list--gray {
|
||||||
--bg-color: hsl(0, 0%, 40%);
|
--bg-color: hsl(0, 0%, 40%);
|
||||||
--bg-tap-color: hsl(0, 0%, 49%);
|
--bg-tap-color: hsl(0, 0%, 49%);
|
||||||
--border-color: hsla(120, 1%, 34%, 0.88);
|
--border-color: hsla(120, 1%, 34%, 0.88);
|
||||||
|
@ -607,11 +563,9 @@ li {
|
||||||
--text-highlight-color: hsl(0, 0%, 15%);
|
--text-highlight-color: hsl(0, 0%, 15%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list + .panel-list {
|
.panel-list + .panel-list {
|
||||||
margin-inline-start: 12px;
|
margin-inline-start: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list label {
|
.panel-list label {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -632,31 +586,25 @@ li {
|
||||||
color: var(--text-color);
|
color: var(--text-color);
|
||||||
box-shadow: 0 1px 0 var(--box-shadow-color);
|
box-shadow: 0 1px 0 var(--box-shadow-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list label:active {
|
.panel-list label:active {
|
||||||
background-color: var(--bg-tap-color);
|
background-color: var(--bg-tap-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list li {
|
.panel-list li {
|
||||||
margin-inline-end: -1px;
|
margin-inline-end: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list li:first-child label {
|
.panel-list li:first-child label {
|
||||||
border-top-left-radius: 4px;
|
border-top-left-radius: 4px;
|
||||||
border-bottom-left-radius: 4px;
|
border-bottom-left-radius: 4px;
|
||||||
border-inline-start-color: var(--border-inline-start-color);
|
border-inline-start-color: var(--border-inline-start-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list li:last-child label {
|
.panel-list li:last-child label {
|
||||||
border-top-right-radius: 4px;
|
border-top-right-radius: 4px;
|
||||||
border-bottom-right-radius: 4px;
|
border-bottom-right-radius: 4px;
|
||||||
border-inline-end-color: var(--border-inline-end-color);
|
border-inline-end-color: var(--border-inline-end-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list input {
|
.panel-list input {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list input:checked + label {
|
.panel-list input:checked + label {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
background-image: linear-gradient(to bottom, var(--bg-highlight-color-start), var(--bg-highlight-color-end));
|
background-image: linear-gradient(to bottom, var(--bg-highlight-color-start), var(--bg-highlight-color-end));
|
||||||
|
@ -665,14 +613,12 @@ li {
|
||||||
border-block-end-color: var(--border-block-end-highlight-color);
|
border-block-end-color: var(--border-block-end-highlight-color);
|
||||||
color: var(--text-highlight-color);
|
color: var(--text-highlight-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list input:checked + label:active {
|
.panel-list input:checked + label:active {
|
||||||
background-image: linear-gradient(to bottom, var(--bg-highlight-tap-color-start), var(--bg-highlight-tap-color-end));
|
background-image: linear-gradient(to bottom, var(--bg-highlight-tap-color-start), var(--bg-highlight-tap-color-end));
|
||||||
border-color: var(--border-highlight-tap-color);
|
border-color: var(--border-highlight-tap-color);
|
||||||
border-block-start-color: var(--border-block-start-highlight-tap-color);
|
border-block-start-color: var(--border-block-start-highlight-tap-color);
|
||||||
border-block-end-color: var(--border-block-end-highlight-tap-color);
|
border-block-end-color: var(--border-block-end-highlight-tap-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
.panel-list--icon label {
|
.panel-list--icon label {
|
||||||
width: 30px;
|
width: 30px;
|
||||||
padding-inline-start: 8px;
|
padding-inline-start: 8px;
|
||||||
|
@ -717,7 +663,6 @@ li {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
position: relative;
|
position: relative;
|
||||||
left: -12px;
|
left: -12px;
|
||||||
|
@ -729,14 +674,12 @@ li {
|
||||||
padding-inline-start: 12px;
|
padding-inline-start: 12px;
|
||||||
padding-inline-end: 12px;
|
padding-inline-end: 12px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
|
box-shadow: 0 4px 16px hsla(0deg, 0%, 0%, 0.16);
|
||||||
background-color: white;
|
background-color: hsl(0deg, 0%, 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.article .card {
|
.article .card {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card > figcaption {
|
.card > figcaption {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-block-start: 16px;
|
margin-block-start: 16px;
|
||||||
|
@ -745,14 +688,14 @@ li {
|
||||||
padding-inline-start: 0;
|
padding-inline-start: 0;
|
||||||
padding-inline-end: 72px;
|
padding-inline-end: 72px;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
border-block-start: 1px solid #ededed;
|
border-block-start: 1px solid hsl(0deg, 0%, 93%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.card__vertical-container {
|
.card__vertical-container {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 30em;
|
height: 30em;
|
||||||
border: 1px solid #ededed;
|
border: 1px solid hsl(0deg, 0%, 93%);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
writing-mode: vertical-rl;
|
writing-mode: vertical-rl;
|
||||||
}
|
}
|
||||||
|
@ -768,39 +711,35 @@ li {
|
||||||
padding-inline-end: 32px;
|
padding-inline-end: 32px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .card {
|
||||||
[data-darkmode="dark"] .card {
|
background-color: hsl(0deg, 0%, 16%);
|
||||||
background-color: #292929;
|
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .card > figcaption {
|
||||||
[data-darkmode="dark"] .card > figcaption {
|
border-block-start: 1px solid hsl(0deg, 0%, 20%);
|
||||||
border-block-start: 1px solid #333333;
|
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .card .card__vertical-container {
|
||||||
[data-darkmode="dark"] .card .card__vertical-container {
|
border-color: hsl(0deg, 0%, 20%);
|
||||||
border-color: #333333;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
[data-darkmode="auto"] .card {
|
[data-darkmode=auto] .card {
|
||||||
background-color: #292929;
|
background-color: hsl(0deg, 0%, 16%);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] .card > figcaption {
|
[data-darkmode=auto] .card > figcaption {
|
||||||
border-block-start: 1px solid #333333;
|
border-block-start: 1px solid hsl(0deg, 0%, 20%);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] .card .card__vertical-container {
|
[data-darkmode=auto] .card .card__vertical-container {
|
||||||
border-color: #333333;
|
border-color: hsl(0deg, 0%, 20%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 基础样式 **/
|
/** 基础样式 **/
|
||||||
body {
|
body {
|
||||||
font-family: -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, "Heti Hei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
font-family: -apple-system, system-ui, "Helvetica Neue", Helvetica, Arial, "Heti Hei", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
||||||
background-color: white;
|
background-color: hsl(0deg, 0%, 100%);
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: #4387f4;
|
color: hsl(217deg, 89%, 61%);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -817,7 +756,6 @@ a {
|
||||||
margin-inline-start: auto;
|
margin-inline-start: auto;
|
||||||
margin-inline-end: auto;
|
margin-inline-end: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.article__nav ol {
|
.article__nav ol {
|
||||||
margin-block-start: 24px;
|
margin-block-start: 24px;
|
||||||
margin-block-end: 24px;
|
margin-block-end: 24px;
|
||||||
|
@ -850,7 +788,7 @@ a {
|
||||||
@media screen and (min-width: 640px) {
|
@media screen and (min-width: 640px) {
|
||||||
body {
|
body {
|
||||||
min-width: 640px;
|
min-width: 640px;
|
||||||
background-color: #ededed;
|
background-color: hsl(0deg, 0%, 93%);
|
||||||
}
|
}
|
||||||
.container {
|
.container {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
@ -866,15 +804,14 @@ a {
|
||||||
padding-inline-start: 48px;
|
padding-inline-start: 48px;
|
||||||
padding-inline-end: 48px;
|
padding-inline-end: 48px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.32);
|
box-shadow: 0 8px 32px hsla(0deg, 0%, 0%, 0.32);
|
||||||
background-color: white;
|
background-color: hsl(0deg, 0%, 100%);
|
||||||
}
|
}
|
||||||
.section {
|
.section {
|
||||||
max-height: none;
|
max-height: none;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (min-width: 900px) {
|
@media screen and (min-width: 900px) {
|
||||||
.article__nav {
|
.article__nav {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -889,7 +826,7 @@ a {
|
||||||
padding-block-end: 12px;
|
padding-block-end: 12px;
|
||||||
padding-inline-start: 8px;
|
padding-inline-start: 8px;
|
||||||
padding-inline-end: 8px;
|
padding-inline-end: 8px;
|
||||||
border: 1px solid #ededed;
|
border: 1px solid hsl(0deg, 0%, 93%);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
}
|
}
|
||||||
.article__nav ol {
|
.article__nav ol {
|
||||||
|
@ -900,43 +837,38 @@ a {
|
||||||
margin-block-start: 0;
|
margin-block-start: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] body {
|
||||||
[data-darkmode="dark"] body {
|
background-color: hsl(0deg, 0%, 24%);
|
||||||
background-color: #3d3d3d;
|
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] a {
|
||||||
[data-darkmode="dark"] a {
|
color: hsl(217deg, 49%, 61%);
|
||||||
color: #6b90cc;
|
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] a:visited {
|
||||||
[data-darkmode="dark"] a:visited {
|
color: hsl(217deg, 49%, 36%);
|
||||||
color: #2f5189;
|
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .container {
|
||||||
[data-darkmode="dark"] .container {
|
background-color: hsl(0deg, 0%, 16%);
|
||||||
background-color: #292929;
|
color: hsl(0deg, 0%, 64%);
|
||||||
color: #a3a3a3;
|
|
||||||
}
|
}
|
||||||
|
[data-darkmode=dark] .article__nav {
|
||||||
[data-darkmode="dark"] .article__nav {
|
border-color: hsl(0deg, 0%, 20%);
|
||||||
border-color: #333333;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
[data-darkmode="auto"] body {
|
[data-darkmode=auto] body {
|
||||||
background-color: #3d3d3d;
|
background-color: hsl(0deg, 0%, 24%);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] a {
|
[data-darkmode=auto] a {
|
||||||
color: #6b90cc;
|
color: hsl(217deg, 49%, 61%);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] a:visited {
|
[data-darkmode=auto] a:visited {
|
||||||
color: #2f5189;
|
color: hsl(217deg, 49%, 36%);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] .container {
|
[data-darkmode=auto] .container {
|
||||||
background-color: #292929;
|
background-color: hsl(0deg, 0%, 16%);
|
||||||
color: #a3a3a3;
|
color: hsl(0deg, 0%, 64%);
|
||||||
}
|
}
|
||||||
[data-darkmode="auto"] .article__nav {
|
[data-darkmode=auto] .article__nav {
|
||||||
border-color: #333333;
|
border-color: hsl(0deg, 0%, 20%);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -110,8 +110,7 @@
|
||||||
// 非中文时不加间距
|
// 非中文时不加间距
|
||||||
letter-spacing: $letter-spacing-medium;
|
letter-spacing: $letter-spacing-medium;
|
||||||
@include non-cjk-block {
|
@include non-cjk-block {
|
||||||
letter-spacing: $letter-spacing-normal;
|
letter-spacing: $letter-spacing-normal;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
|
@ -119,10 +118,7 @@
|
||||||
code,
|
code,
|
||||||
heti-spacing,
|
heti-spacing,
|
||||||
[lang="en-US"] {
|
[lang="en-US"] {
|
||||||
/*
|
// There should be no leeter-spacing between English characters.
|
||||||
There should be no leeter-spacing between
|
|
||||||
English characters.
|
|
||||||
*/
|
|
||||||
letter-spacing: normal;
|
letter-spacing: normal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
6619
package-lock.json
generated
6619
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -9,10 +9,10 @@
|
||||||
"lib"
|
"lib"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node-sass -w --output-style=expanded _site/scss/ -o _site/",
|
"start": "sass -w --no-source-map _site/scss/:_site/",
|
||||||
"compile": "rollup -c -w",
|
"compile": "rollup -c -w",
|
||||||
"build:style": "node-sass --output-style=compressed lib/heti.scss umd/heti.min.css",
|
"build:style": "sass --no-source-map --style=compressed lib/heti.scss:umd/heti.min.css",
|
||||||
"build:site": "node-sass --output-style=expanded _site/scss/ -o _site/",
|
"build:site": "sass --no-source-map _site/scss/:_site/",
|
||||||
"build:script": "rollup -c",
|
"build:script": "rollup -c",
|
||||||
"build": "npm run build:style && npm run build:site && npm run build:script",
|
"build": "npm run build:style && npm run build:site && npm run build:script",
|
||||||
"test": "npx stylelint --config package.json 'lib/**/*.scss'"
|
"test": "npx stylelint --config package.json 'lib/**/*.scss'"
|
||||||
|
@ -40,9 +40,9 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@rollup/plugin-commonjs": "^11.1.0",
|
"@rollup/plugin-commonjs": "^11.1.0",
|
||||||
"@rollup/plugin-node-resolve": "^7.1.3",
|
"@rollup/plugin-node-resolve": "^7.1.3",
|
||||||
"node-sass": "^4.14.1",
|
|
||||||
"rollup": "^1.32.1",
|
"rollup": "^1.32.1",
|
||||||
"rollup-plugin-terser": "^5.3.1",
|
"rollup-plugin-terser": "^5.3.1",
|
||||||
|
"sass": "^1.57.0",
|
||||||
"stylelint": "^13.13.1",
|
"stylelint": "^13.13.1",
|
||||||
"stylelint-config-recommended-scss": "^4.3.0",
|
"stylelint-config-recommended-scss": "^4.3.0",
|
||||||
"stylelint-config-standard": "^22.0.0",
|
"stylelint-config-standard": "^22.0.0",
|
||||||
|
|
Loading…
Reference in a new issue