mirror of
https://github.com/kuohuanhuan/x-markdown-css.git
synced 2024-11-25 06:18:19 +00:00
Compare commits
12 Commits
v0.0.0-202
...
v0.0.0-202
Author | SHA1 | Date | |
---|---|---|---|
6fd50e0707
|
|||
8da53d8cde
|
|||
decfa2c47c
|
|||
58317f99cb
|
|||
a3f9084a2e
|
|||
26d5c7966f
|
|||
296bf3016e
|
|||
a40c973e46
|
|||
29b45f6a7f
|
|||
c2bd2cb722
|
|||
bd2f74a3b2
|
|||
d69a4ea949
|
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -22,12 +22,12 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.com
|
||||||
# Step III
|
# Step III
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
# Step IV
|
# Step IV
|
||||||
- name: Lint
|
- name: Test Lint
|
||||||
run: npm run lint
|
run: npm run lint
|
||||||
# Test Build
|
# Test Build
|
||||||
build:
|
build:
|
||||||
@ -47,7 +47,7 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.com
|
||||||
# Step III
|
# Step III
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
registry-url: https://registry.npmjs.org/
|
registry-url: https://registry.npmjs.com
|
||||||
# Step III
|
# Step III
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
"stylelint-config-standard-scss",
|
"stylelint-config-standard-scss",
|
||||||
"stylelint-config-hudochenkov/order"
|
"stylelint-config-hudochenkov/order"
|
||||||
],
|
],
|
||||||
"plugins": ["stylelint-scss"]
|
"plugins": ["stylelint-scss"],
|
||||||
,
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"alpha-value-notation": "number",
|
"alpha-value-notation": "number",
|
||||||
"at-rule-empty-line-before": null,
|
"at-rule-empty-line-before": null,
|
||||||
|
16
README.md
16
README.md
@ -1,14 +1,14 @@
|
|||||||
<h1 align="center">x-markdown-css</h1>
|
<h1 align="center">x-markdown-css</h1>
|
||||||
|
|
||||||
<p align="center">
|
<center>
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/x-markdown-css)
|
[](https://www.npmjs.com/package/x-markdown-css)
|
||||||
[](https://github.com/kuohuanhuan/x-markdown-css/blob/master/package.json)
|
[](https://github.com/kuohuanhuan/x-markdown-css/blob/master/package.json)
|
||||||
[](https://github.com/kuohuanhuan/x-markdown-css/blob/master/LICENSE)
|
[](https://github.com/kuohuanhuan/x-markdown-css/blob/master/LICENSE)
|
||||||
|
|
||||||
</p>
|
</center>
|
||||||
|
|
||||||
> A simple and customizable Markdown CSS for everyone.
|
> A simple and customizable markdown CSS stylesheet for everyone.
|
||||||
|
|
||||||
## Requirement
|
## Requirement
|
||||||
|
|
||||||
@ -50,11 +50,11 @@ You can use the minified CSS file with a CDN service:
|
|||||||
|
|
||||||
## Uses
|
## Uses
|
||||||
|
|
||||||
- [SCSS](https://sass-lang.com): CSS pre-processor.
|
- [SCSS](https://sass-lang.com)
|
||||||
- [Stylelint](https://stylelint.io): Linting SCSS codes.
|
- [Stylelint](https://stylelint.io)
|
||||||
- [Grunt](https://gruntjs.com): Automating build tasks.
|
- [Grunt](https://gruntjs.com)
|
||||||
- [PostCSS](https://postcss.org): Transforming CSS dist.
|
- [PostCSS](https://postcss.org)
|
||||||
- [cssnano](https://cssnano.co): Compressing CSS dist.
|
- [cssnano](https://cssnano.co)
|
||||||
|
|
||||||
*...and much more.*
|
*...and much more.*
|
||||||
|
|
||||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "x-markdown-css",
|
"name": "x-markdown-css",
|
||||||
"version": "0.0.0-20230302.3",
|
"version": "0.0.0-20230302.7",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "x-markdown-css",
|
"name": "x-markdown-css",
|
||||||
"version": "0.0.0-20230302.3",
|
"version": "0.0.0-20230302.7",
|
||||||
"description": "A simple and customizable Markdown CSS for everyone.",
|
"description": "A simple and customizable markdown CSS stylesheet for everyone.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"markdown",
|
"markdown",
|
||||||
"css",
|
"css",
|
||||||
|
@ -1,13 +1,11 @@
|
|||||||
.markdown-body {
|
.markdown-body {
|
||||||
color: var(--xm-c-general);
|
color: var(--xm-c-general);
|
||||||
font-family: var(--xm-font-display) !important;
|
font-family: var(--xm-font-display) !important;
|
||||||
pre {
|
pre:not(.shiki, .highlight) {
|
||||||
&:not(.shiki, .highlight) {
|
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
.shiki,
|
.shiki,
|
||||||
.highlight {
|
.highlight {
|
||||||
margin: .5rem 0;
|
margin: .5rem 0;
|
||||||
@ -81,7 +79,7 @@ html:not(.dark) .shiki-dark,
|
|||||||
.header-anchor {
|
.header-anchor {
|
||||||
float: left;
|
float: left;
|
||||||
margin-top: .125rem;
|
margin-top: .125rem;
|
||||||
margin-left: -1.2rem;
|
margin-left: -1.25rem;
|
||||||
padding-right: .5rem;
|
padding-right: .5rem;
|
||||||
border: 0 !important;
|
border: 0 !important;
|
||||||
font-size: .875rem;
|
font-size: .875rem;
|
||||||
@ -92,12 +90,8 @@ html:not(.dark) .shiki-dark,
|
|||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
h1,
|
@for $i from 1 through 6 {
|
||||||
h2,
|
h#{$i} {
|
||||||
h3,
|
|
||||||
h4,
|
|
||||||
h5,
|
|
||||||
h6 {
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
.header-anchor {
|
.header-anchor {
|
||||||
@ -105,3 +99,4 @@ h6 {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -3,7 +3,7 @@ q {
|
|||||||
margin-top: 1.65rem;
|
margin-top: 1.65rem;
|
||||||
margin-bottom: 1.65rem;
|
margin-bottom: 1.65rem;
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
border-left: .25rem solid var(--xm-c-blockquote-border);
|
border-left: .25rem solid var(--xm-c-quote-border);
|
||||||
color: inherit;
|
color: inherit;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-style: italic;
|
font-style: italic;
|
@ -1,6 +1,6 @@
|
|||||||
@use 'partial/container' as *;
|
@use 'partials/container' as *;
|
||||||
|
|
||||||
.prose {
|
.prose {
|
||||||
@include container;
|
@include container;
|
||||||
@import 'partial/all';
|
@import 'partials/all';
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ $code: #111827;
|
|||||||
$ol-counter: #6b7280;
|
$ol-counter: #6b7280;
|
||||||
$ul-counter: #d1d5db;
|
$ul-counter: #d1d5db;
|
||||||
$hr-border: hsla(0deg 0 50% / .3);
|
$hr-border: hsla(0deg 0 50% / .3);
|
||||||
$blockquote-border: hsla(0deg 0 50% / .3);
|
$quote-border: hsla(0deg 0 50% / .3);
|
||||||
$figcaption: #6b7280;
|
$figcaption: #6b7280;
|
||||||
$pre: #e5e7eb;
|
$pre: #e5e7eb;
|
||||||
$thead: #111827;
|
$thead: #111827;
|
||||||
|
Reference in New Issue
Block a user