mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 15:08:46 +08:00
theme: format more files #947
This commit is contained in:
parent
348702d8c2
commit
ce72cce3e9
@ -8,7 +8,9 @@ exampleSite/layouts
|
|||||||
exampleSite/static
|
exampleSite/static
|
||||||
exampleSite/frontmatter.json
|
exampleSite/frontmatter.json
|
||||||
layouts
|
layouts
|
||||||
static/css
|
static/css/auto-complete.css
|
||||||
|
static/css/*.min.css
|
||||||
|
static/css/swagger*.css
|
||||||
static/fonts
|
static/fonts
|
||||||
static/js/d3
|
static/js/d3
|
||||||
static/js/lunr
|
static/js/lunr
|
||||||
|
@ -1 +1 @@
|
|||||||
7.1.1+85d43bcef3403a38c509d04606f2cd8ca91c8bd5
|
7.1.1+348702d8c2926bae9111a239755ac66866129748
|
@ -23,7 +23,7 @@
|
|||||||
font-weight: 100 1000;
|
font-weight: 100 1000;
|
||||||
font-stretch: 100%;
|
font-stretch: 100%;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("../fonts/RobotoFlex.cyrillic-ext.woff2") format('woff2-variations');
|
src: url('../fonts/RobotoFlex.cyrillic-ext.woff2') format('woff2-variations');
|
||||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
@ -32,7 +32,7 @@
|
|||||||
font-weight: 100 1000;
|
font-weight: 100 1000;
|
||||||
font-stretch: 100%;
|
font-stretch: 100%;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("../fonts/RobotoFlex.cyrillic.woff2") format('woff2-variations');
|
src: url('../fonts/RobotoFlex.cyrillic.woff2') format('woff2-variations');
|
||||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
@ -41,7 +41,7 @@
|
|||||||
font-weight: 100 1000;
|
font-weight: 100 1000;
|
||||||
font-stretch: 100%;
|
font-stretch: 100%;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("../fonts/RobotoFlex.greek.woff2") format('woff2-variations');
|
src: url('../fonts/RobotoFlex.greek.woff2') format('woff2-variations');
|
||||||
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
@ -50,7 +50,7 @@
|
|||||||
font-weight: 100 1000;
|
font-weight: 100 1000;
|
||||||
font-stretch: 100%;
|
font-stretch: 100%;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("../fonts/RobotoFlex.vietnamese.woff2") format('woff2-variations');
|
src: url('../fonts/RobotoFlex.vietnamese.woff2') format('woff2-variations');
|
||||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
@ -59,7 +59,7 @@
|
|||||||
font-weight: 100 1000;
|
font-weight: 100 1000;
|
||||||
font-stretch: 100%;
|
font-stretch: 100%;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("../fonts/RobotoFlex.latin-ext.woff2") format('woff2-variations');
|
src: url('../fonts/RobotoFlex.latin-ext.woff2') format('woff2-variations');
|
||||||
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
@ -68,6 +68,6 @@
|
|||||||
font-weight: 100 1000;
|
font-weight: 100 1000;
|
||||||
font-stretch: 100%;
|
font-stretch: 100%;
|
||||||
font-display: swap;
|
font-display: swap;
|
||||||
src: url("../fonts/RobotoFlex.latin.woff2") format('woff2-variations');
|
src: url('../fonts/RobotoFlex.latin.woff2') format('woff2-variations');
|
||||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||||
}
|
}
|
||||||
|
@ -1,23 +1,32 @@
|
|||||||
*, *::before, *::after {
|
*,
|
||||||
|
*::before,
|
||||||
|
*::after {
|
||||||
-webkit-box-sizing: border-box;
|
-webkit-box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
-moz-box-sizing: border-box;
|
||||||
box-sizing: border-box; }
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
@-webkit-viewport {
|
@-webkit-viewport {
|
||||||
width: device-width; }
|
width: device-width;
|
||||||
|
}
|
||||||
@-moz-viewport {
|
@-moz-viewport {
|
||||||
width: device-width; }
|
width: device-width;
|
||||||
|
}
|
||||||
@-o-viewport {
|
@-o-viewport {
|
||||||
width: device-width; }
|
width: device-width;
|
||||||
|
}
|
||||||
@viewport {
|
@viewport {
|
||||||
width: device-width; }
|
width: device-width;
|
||||||
|
}
|
||||||
html {
|
html {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
-webkit-text-size-adjust: 100%;
|
-webkit-text-size-adjust: 100%;
|
||||||
text-size-adjust: 100%; }
|
text-size-adjust: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
margin: 0; }
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
article,
|
article,
|
||||||
aside,
|
aside,
|
||||||
@ -31,64 +40,80 @@ main,
|
|||||||
nav,
|
nav,
|
||||||
section,
|
section,
|
||||||
summary {
|
summary {
|
||||||
display: block; }
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
audio,
|
audio,
|
||||||
canvas,
|
canvas,
|
||||||
progress,
|
progress,
|
||||||
video {
|
video {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: baseline; }
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
audio:not([controls]) {
|
audio:not([controls]) {
|
||||||
display: none;
|
display: none;
|
||||||
height: 0; }
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
[hidden],
|
[hidden],
|
||||||
template {
|
template {
|
||||||
display: none; }
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
background: transparent;
|
background: transparent;
|
||||||
text-decoration: none; }
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
abbr[title] {
|
abbr[title] {
|
||||||
border-bottom: 1px dotted; }
|
border-bottom: 1px dotted;
|
||||||
|
}
|
||||||
|
|
||||||
dfn {
|
dfn {
|
||||||
font-style: italic; }
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
sub,
|
sub,
|
||||||
sup {
|
sup {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
vertical-align: baseline; }
|
vertical-align: baseline;
|
||||||
|
}
|
||||||
|
|
||||||
sup {
|
sup {
|
||||||
top: -0.5em; }
|
top: -0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
sub {
|
sub {
|
||||||
bottom: -0.25em; }
|
bottom: -0.25em;
|
||||||
|
}
|
||||||
|
|
||||||
iframe {
|
iframe {
|
||||||
border: 0; }
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
border: 0;
|
border: 0;
|
||||||
max-width: 100%; }
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
svg:not(:root) {
|
svg:not(:root) {
|
||||||
overflow: hidden; }
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
figure {
|
figure {
|
||||||
margin: 1rem 2.5rem; }
|
margin: 1rem 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
height: 0; }
|
height: 0;
|
||||||
|
}
|
||||||
|
|
||||||
pre:not(.mermaid) {
|
pre:not(.mermaid) {
|
||||||
overflow: auto; }
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
input,
|
input,
|
||||||
@ -97,158 +122,236 @@ select,
|
|||||||
textarea {
|
textarea {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
font: inherit;
|
font: inherit;
|
||||||
margin: 0; }
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
padding: 0; }
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
select {
|
select {
|
||||||
text-transform: none; }
|
text-transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
html input[type="button"],
|
html input[type='button'],
|
||||||
input[type="reset"],
|
input[type='reset'],
|
||||||
input[type="submit"] {
|
input[type='submit'] {
|
||||||
-webkit-appearance: button;
|
-webkit-appearance: button;
|
||||||
cursor: pointer; }
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
button[disabled],
|
button[disabled],
|
||||||
html input[disabled] {
|
html input[disabled] {
|
||||||
cursor: default; }
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
button::-moz-focus-inner,
|
button::-moz-focus-inner,
|
||||||
input::-moz-focus-inner {
|
input::-moz-focus-inner {
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 0; }
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
input {
|
input {
|
||||||
line-height: normal; }
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="checkbox"],
|
input[type='checkbox'],
|
||||||
input[type="radio"] {
|
input[type='radio'] {
|
||||||
padding: 0; }
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="number"]::-webkit-inner-spin-button,
|
input[type='number']::-webkit-inner-spin-button,
|
||||||
input[type="number"]::-webkit-outer-spin-button {
|
input[type='number']::-webkit-outer-spin-button {
|
||||||
height: auto; }
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="search"] {
|
input[type='search'] {
|
||||||
-webkit-appearance: textfield; }
|
-webkit-appearance: textfield;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="search"]::-webkit-search-cancel-button,
|
input[type='search']::-webkit-search-cancel-button,
|
||||||
input[type="search"]::-webkit-search-decoration {
|
input[type='search']::-webkit-search-decoration {
|
||||||
-webkit-appearance: none; }
|
-webkit-appearance: none;
|
||||||
|
}
|
||||||
|
|
||||||
legend {
|
legend {
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 0; }
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
overflow: auto; }
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
optgroup {
|
optgroup {
|
||||||
font-weight: bold; }
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
table-layout: fixed;
|
table-layout: fixed;
|
||||||
width: 100%; }
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
tr, td, th {
|
tr,
|
||||||
vertical-align: middle; }
|
td,
|
||||||
|
th {
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
th, td {
|
th,
|
||||||
padding: 0.425rem 0; }
|
td {
|
||||||
|
padding: 0.425rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
text-align: start; }
|
text-align: start;
|
||||||
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: 1rem 0; }
|
margin: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
ul, ol {
|
ul,
|
||||||
|
ol {
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
margin-bottom: 1rem; }
|
margin-bottom: 1rem;
|
||||||
ul ul, ul ol, ol ul, ol ol {
|
}
|
||||||
margin-top: 0;
|
ul ul,
|
||||||
margin-bottom: 0; }
|
ul ol,
|
||||||
|
ol ul,
|
||||||
|
ol ol {
|
||||||
|
margin-top: 0;
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
margin: 1.5rem 0;
|
margin: 1.5rem 0;
|
||||||
padding-inline-start: 0.85rem; }
|
padding-inline-start: 0.85rem;
|
||||||
|
}
|
||||||
|
|
||||||
cite {
|
cite {
|
||||||
display: block;
|
display: block;
|
||||||
font-size: 0.925rem; }
|
font-size: 0.925rem;
|
||||||
cite:before {
|
}
|
||||||
content: "\2014 \0020"; }
|
cite:before {
|
||||||
|
content: '\2014 \0020';
|
||||||
|
}
|
||||||
|
|
||||||
pre:not(.mermaid) {
|
pre:not(.mermaid) {
|
||||||
margin: 1.5rem 0;
|
margin: 1.5rem 0;
|
||||||
padding: 0.938rem; }
|
padding: 0.938rem;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
vertical-align: bottom; }
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
small {
|
small {
|
||||||
font-size: 0.925rem; }
|
font-size: 0.925rem;
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border-left: none;
|
border-left: none;
|
||||||
border-right: none;
|
border-right: none;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
margin: 1.5rem 0; }
|
margin: 1.5rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
fieldset {
|
fieldset {
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: 0.938rem;
|
padding: 0.938rem;
|
||||||
margin: 0 0 1rem 0; }
|
margin: 0 0 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
label,
|
label,
|
||||||
select {
|
select {
|
||||||
display: block; }
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
margin-bottom: 0.425rem; }
|
margin-bottom: 0.425rem;
|
||||||
label.required:after {
|
}
|
||||||
content: "*"; }
|
label.required:after {
|
||||||
label abbr {
|
content: '*';
|
||||||
display: none; }
|
}
|
||||||
|
label abbr {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
textarea, input[type="email"], input[type="number"], input[type="password"], input[type="search"], input[type="tel"], input[type="text"], input[type="url"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="month"], input[type="time"], input[type="week"], select[multiple=multiple] {
|
textarea,
|
||||||
|
input[type='email'],
|
||||||
|
input[type='number'],
|
||||||
|
input[type='password'],
|
||||||
|
input[type='search'],
|
||||||
|
input[type='tel'],
|
||||||
|
input[type='text'],
|
||||||
|
input[type='url'],
|
||||||
|
input[type='color'],
|
||||||
|
input[type='date'],
|
||||||
|
input[type='datetime'],
|
||||||
|
input[type='datetime-local'],
|
||||||
|
input[type='month'],
|
||||||
|
input[type='time'],
|
||||||
|
input[type='week'],
|
||||||
|
select[multiple='multiple'] {
|
||||||
-webkit-transition: border-color;
|
-webkit-transition: border-color;
|
||||||
-moz-transition: border-color;
|
-moz-transition: border-color;
|
||||||
transition: border-color;
|
transition: border-color;
|
||||||
border-radius: 0.1875rem;
|
border-radius: 0.1875rem;
|
||||||
margin-bottom: 0.85rem;
|
margin-bottom: 0.85rem;
|
||||||
padding: 0.425rem 0.425rem;
|
padding: 0.425rem 0.425rem;
|
||||||
width: 100%; }
|
width: 100%;
|
||||||
textarea:focus, input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="search"]:focus, input[type="tel"]:focus, input[type="text"]:focus, input[type="url"]:focus, input[type="color"]:focus, input[type="date"]:focus, input[type="datetime"]:focus, input[type="datetime-local"]:focus, input[type="month"]:focus, input[type="time"]:focus, input[type="week"]:focus, select[multiple=multiple]:focus {
|
}
|
||||||
outline: none; }
|
textarea:focus,
|
||||||
|
input[type='email']:focus,
|
||||||
|
input[type='number']:focus,
|
||||||
|
input[type='password']:focus,
|
||||||
|
input[type='search']:focus,
|
||||||
|
input[type='tel']:focus,
|
||||||
|
input[type='text']:focus,
|
||||||
|
input[type='url']:focus,
|
||||||
|
input[type='color']:focus,
|
||||||
|
input[type='date']:focus,
|
||||||
|
input[type='datetime']:focus,
|
||||||
|
input[type='datetime-local']:focus,
|
||||||
|
input[type='month']:focus,
|
||||||
|
input[type='time']:focus,
|
||||||
|
input[type='week']:focus,
|
||||||
|
select[multiple='multiple']:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
resize: vertical; }
|
resize: vertical;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="checkbox"], input[type="radio"] {
|
input[type='checkbox'],
|
||||||
|
input[type='radio'] {
|
||||||
display: inline;
|
display: inline;
|
||||||
margin-inline-end: 0.425rem; }
|
margin-inline-end: 0.425rem;
|
||||||
|
}
|
||||||
|
|
||||||
input[type="file"] {
|
input[type='file'] {
|
||||||
width: 100%; }
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
select {
|
select {
|
||||||
width: auto;
|
width: auto;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin-bottom: 1rem; }
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
button,
|
button,
|
||||||
input[type="submit"] {
|
input[type='submit'] {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
-webkit-user-select: none;
|
-webkit-user-select: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
border: inherit; }
|
border: inherit;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user