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

Compare commits

...

6 Commits

5 changed files with 22 additions and 22 deletions

View File

@ -21,7 +21,7 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 18
registry-url: https://registry.npmjs.com registry-url: https://registry.npmjs.com
# Step III # Step III
- name: Install Dependencies - name: Install Dependencies

View File

@ -6,7 +6,7 @@ on:
- 'v*' - 'v*'
jobs: jobs:
# NPM Registry Release # NPM Registry & GitHub Release
release: release:
# Use Ubuntu 22.04 # Use Ubuntu 22.04
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
@ -20,7 +20,7 @@ jobs:
- name: Setup Node.js - name: Setup Node.js
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: 16 node-version: 18
registry-url: https://registry.npmjs.com registry-url: https://registry.npmjs.com
# Step III # Step III
- name: Install Dependencies - name: Install Dependencies
@ -38,3 +38,8 @@ jobs:
run: npx changelogithub@0.12 run: npx changelogithub@0.12
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Step VII
- name: GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/*

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "x-markdown-css", "name": "x-markdown-css",
"version": "0.0.0-20230302.6", "version": "0.0.0-20230302.9",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {

View File

@ -1,6 +1,6 @@
{ {
"name": "x-markdown-css", "name": "x-markdown-css",
"version": "0.0.0-20230302.6", "version": "0.0.0-20230302.9",
"description": "A simple and customizable markdown CSS stylesheet for everyone.", "description": "A simple and customizable markdown CSS stylesheet for everyone.",
"keywords": [ "keywords": [
"markdown", "markdown",

View File

@ -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,16 +90,13 @@ 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 {
opacity: .5; opacity: .5;
} }
} }
}
} }