mirror of
https://github.com/kuohuanhuan/x-markdown-css.git
synced 2024-11-25 06:18:19 +00:00
Compare commits
7 Commits
v0.0.0-202
...
v0.0.0-202
Author | SHA1 | Date | |
---|---|---|---|
6fd50e0707
|
|||
8da53d8cde
|
|||
decfa2c47c
|
|||
58317f99cb
|
|||
a3f9084a2e
|
|||
26d5c7966f
|
|||
296bf3016e
|
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -22,12 +22,12 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: https://registry.npmjs.org/
|
||||
registry-url: https://registry.npmjs.com
|
||||
# Step III
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
# Step IV
|
||||
- name: Lint
|
||||
- name: Test Lint
|
||||
run: npm run lint
|
||||
# Test Build
|
||||
build:
|
||||
@ -47,7 +47,7 @@ jobs:
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
registry-url: https://registry.npmjs.org/
|
||||
registry-url: https://registry.npmjs.com
|
||||
# Step III
|
||||
- name: Install Dependencies
|
||||
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
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: https://registry.npmjs.org/
|
||||
registry-url: https://registry.npmjs.com
|
||||
# Step III
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
|
14
README.md
14
README.md
@ -1,12 +1,12 @@
|
||||
<h1 align="center">x-markdown-css</h1>
|
||||
|
||||
<p align="center">
|
||||
<center>
|
||||
|
||||
[](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/LICENSE)
|
||||
|
||||
</p>
|
||||
</center>
|
||||
|
||||
> A simple and customizable markdown CSS stylesheet for everyone.
|
||||
|
||||
@ -50,11 +50,11 @@ You can use the minified CSS file with a CDN service:
|
||||
|
||||
## Uses
|
||||
|
||||
- [SCSS](https://sass-lang.com): CSS pre-processor.
|
||||
- [Stylelint](https://stylelint.io): Linting SCSS codes.
|
||||
- [Grunt](https://gruntjs.com): Automating build tasks.
|
||||
- [PostCSS](https://postcss.org): Transforming CSS dist.
|
||||
- [cssnano](https://cssnano.co): Compressing CSS dist.
|
||||
- [SCSS](https://sass-lang.com)
|
||||
- [Stylelint](https://stylelint.io)
|
||||
- [Grunt](https://gruntjs.com)
|
||||
- [PostCSS](https://postcss.org)
|
||||
- [cssnano](https://cssnano.co)
|
||||
|
||||
*...and much more.*
|
||||
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "x-markdown-css",
|
||||
"version": "0.0.0-20230302.4",
|
||||
"version": "0.0.0-20230302.7",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "x-markdown-css",
|
||||
"version": "0.0.0-20230302.4",
|
||||
"version": "0.0.0-20230302.7",
|
||||
"description": "A simple and customizable markdown CSS stylesheet for everyone.",
|
||||
"keywords": [
|
||||
"markdown",
|
||||
|
@ -1,13 +1,11 @@
|
||||
.markdown-body {
|
||||
color: var(--xm-c-general);
|
||||
font-family: var(--xm-font-display) !important;
|
||||
pre {
|
||||
&:not(.shiki, .highlight) {
|
||||
pre:not(.shiki, .highlight) {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
}
|
||||
}
|
||||
.shiki,
|
||||
.highlight {
|
||||
margin: .5rem 0;
|
||||
@ -81,7 +79,7 @@ html:not(.dark) .shiki-dark,
|
||||
.header-anchor {
|
||||
float: left;
|
||||
margin-top: .125rem;
|
||||
margin-left: -1.2rem;
|
||||
margin-left: -1.25rem;
|
||||
padding-right: .5rem;
|
||||
border: 0 !important;
|
||||
font-size: .875rem;
|
||||
@ -92,16 +90,13 @@ html:not(.dark) .shiki-dark,
|
||||
text-decoration: none;
|
||||
}
|
||||
}
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
@for $i from 1 through 6 {
|
||||
h#{$i} {
|
||||
&:hover,
|
||||
&:focus {
|
||||
.header-anchor {
|
||||
opacity: .5;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user