1
0
mirror of https://github.com/kuohuanhuan/x-markdown-css.git synced 2024-11-25 06:18:19 +00:00

chore(lint): use @kuohuanhuan/stylelint-config as Stylelint config

This commit is contained in:
2023-03-06 22:07:19 +08:00
parent 0e6c171424
commit e9264bfa01
10 changed files with 57 additions and 100 deletions

View File

@ -1,5 +1,4 @@
@use 'sass:meta';
@use 'partials/container';
.markdown-body {

View File

@ -1,8 +1,6 @@
@use 'sass:meta';
@use 'variables/constants';
@use 'variables/colors';
@use 'variables/modes/light';
@use 'variables/modes/dark';
@ -10,6 +8,7 @@
@each $name, $val in meta.module-variables('constants') {
--xm-#{$name}: #{$val};
}
@each $name, $val in meta.module-variables('colors') {
--xm-c-#{$name}: #{$val};
}
@ -20,6 +19,7 @@
--xm-c-#{$name}: #{$val};
}
}
.dark .markdown-body {
@each $name, $val in meta.module-variables('dark') {
--xm-c-#{$name}: #{$val};

View File

@ -8,6 +8,7 @@ code {
content: '`';
}
}
pre {
overflow-x: auto;
margin-top: 1.75rem;
@ -33,6 +34,7 @@ pre {
}
}
}
.shiki {
margin: .5rem 0;
font-size: 1.05rem;

View File

@ -2,6 +2,7 @@ li {
margin-top: .5rem;
margin-bottom: .5rem;
}
ol {
margin-top: 1.25rem;
margin-bottom: 1.25rem;
@ -18,6 +19,7 @@ ol {
}
}
}
ul {
margin-top: 1.25rem;
margin-bottom: 1.25rem;
@ -37,6 +39,7 @@ ul {
}
}
}
ul ul,
ul ol,
ol ul,

View File

@ -7,6 +7,7 @@ table {
line-height: 1.75;
text-align: left;
}
thead {
border-bottom-width: 1px;
border-bottom-color: var(--xm-c-thead-border);
@ -23,6 +24,7 @@ thead {
}
}
}
tbody {
tr {
border-bottom-width: 1px;

View File

@ -2,13 +2,16 @@ p {
margin-top: 1.25rem;
margin-bottom: 1.25rem;
}
strong {
color: var(--xm-c-deep);
font-weight: 600;
}
b {
color: var(--xm-c-deep);
}
em {
color: inherit;
}

View File

@ -6,6 +6,7 @@ h1 {
font-size: 2.25rem;
line-height: 1.15;
}
h2 {
margin-top: 2rem;
margin-bottom: 1rem;
@ -20,6 +21,7 @@ h2 {
margin-top: 0;
}
}
h3 {
margin-top: 1.6rem;
margin-bottom: .6rem;
@ -35,6 +37,7 @@ h3 {
margin-top: 0;
}
}
h4 {
margin-top: 1.5rem;
margin-bottom: .5rem;
@ -45,6 +48,7 @@ h4 {
margin-top: 0;
}
}
h5,
h6 {
margin-top: 20px;
@ -54,6 +58,7 @@ h6 {
text-transform: uppercase;
opacity: .5;
}
hr {
width: 50px;
margin-top: 2rem;
@ -63,6 +68,7 @@ hr {
margin-top: 0;
}
}
.header-anchor {
float: left;
margin-top: .125rem;
@ -77,6 +83,7 @@ hr {
text-decoration: none;
}
}
@for $i from 1 through 6 {
h#{$i} {
&:hover,