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 | |
---|---|---|---|
ae19499146
|
|||
7ab2bd67ea
|
|||
a307ac8851
|
|||
58d893bc24
|
|||
e13c83de24
|
|||
3ddc662741
|
|||
17c8caaa11
|
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -23,10 +23,10 @@ jobs:
|
||||
with:
|
||||
node-version: 16
|
||||
registry-url: https://registry.npmjs.org/
|
||||
# Step IV
|
||||
# Step III
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
# Step V
|
||||
# Step IV
|
||||
- name: Lint
|
||||
run: npm run lint
|
||||
# Test Build
|
||||
@ -35,8 +35,8 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [ 16, 18, latest ]
|
||||
os: [ ubuntu-latest, windows-latest, macos-latest ]
|
||||
node-version: [16, 18, latest]
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
fail-fast: false
|
||||
steps:
|
||||
# Step I
|
||||
|
@ -1,12 +1,12 @@
|
||||
<h1 align="center">x-markdown-css</h1>
|
||||
|
||||
<center>
|
||||
<p align="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)
|
||||
|
||||
</center>
|
||||
</p>
|
||||
|
||||
> A simple and customizable Markdown CSS for everyone.
|
||||
|
||||
|
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "x-markdown-css",
|
||||
"version": "0.0.0-20230301.7",
|
||||
"version": "0.0.0-20230302.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "x-markdown-css",
|
||||
"version": "0.0.0-20230301.7",
|
||||
"version": "0.0.0-20230302.2",
|
||||
"description": "A simple and customizable Markdown CSS for everyone.",
|
||||
"keywords": [
|
||||
"markdown",
|
||||
|
@ -1,9 +1,10 @@
|
||||
code {
|
||||
font-size: .85rem;
|
||||
font-weight: 600;
|
||||
font-family: var(--xm-font-mono);
|
||||
font-family: var(--xm-font-code);
|
||||
color: var(--xm-c-dark);
|
||||
&::before, &::after {
|
||||
&::before,
|
||||
&::after {
|
||||
content: '`';
|
||||
}
|
||||
}
|
||||
@ -26,9 +27,7 @@ pre {
|
||||
border-width: 0;
|
||||
border-radius: 0;
|
||||
line-height: inherit;
|
||||
&::before {
|
||||
content: none;
|
||||
}
|
||||
&::before,
|
||||
&::after {
|
||||
content: none;
|
||||
}
|
||||
|
@ -1,2 +1,2 @@
|
||||
$font-sans: 'Open Sans', 'Inter', 'Roboto', 'Helvetica', 'Arial', 'Sarasa Gothic TC', 'Sarasa Gothic SC', 'Noto Sans TC', 'Noto Sans SC', 'Microsoft JhengHei', 'Microsoft YaHei', -apple-system, sans-serif;
|
||||
$font-mono: 'DM Mono', 'Fira Code', 'Jetbrains Mono', 'Input Mono', 'Menlo', 'MesloLGS NF', 'Ubuntu', monospace;
|
||||
$font-regular: 'Open Sans', 'Inter', 'Roboto', 'Helvetica', 'Arial', 'Sarasa Gothic TC', 'Sarasa Gothic SC', 'Noto Sans TC', 'Noto Sans SC', 'Microsoft JhengHei', 'Microsoft YaHei', -apple-system, sans-serif;
|
||||
$font-code: 'DM Mono', 'Fira Code', 'Jetbrains Mono', 'Input Mono', 'Menlo', 'MesloLGS NF', 'Ubuntu', monospace;
|
||||
|
@ -1,5 +1,5 @@
|
||||
.markdown-body {
|
||||
font-family: var(--xm-font-sans) !important;
|
||||
font-family: var(--xm-font-regular) !important;
|
||||
color: var(--xm-c-general);
|
||||
pre {
|
||||
&:not(.shiki, .highlight) {
|
||||
@ -12,7 +12,7 @@
|
||||
.highlight {
|
||||
margin: .5rem 0;
|
||||
font-size: 1.05rem;
|
||||
font-family: var(--xm-font-mono) !important;
|
||||
font-family: var(--xm-font-code) !important;
|
||||
line-height: 1.4;
|
||||
&.shiki-light {
|
||||
background: var(--xm-c-shiki-light) !important;
|
||||
@ -54,11 +54,9 @@
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
p {
|
||||
&:first-of-type::before {
|
||||
content: none;
|
||||
}
|
||||
&:first-of-type::after {
|
||||
p:first-of-type {
|
||||
&::before,
|
||||
&::after {
|
||||
content: none;
|
||||
}
|
||||
}
|
||||
@ -67,12 +65,10 @@
|
||||
margin-top: 1rem;
|
||||
}
|
||||
}
|
||||
html:not(.dark) .shiki-dark,
|
||||
.dark .shiki-light {
|
||||
display: none;
|
||||
}
|
||||
html:not(.dark) .shiki-dark {
|
||||
display: none;
|
||||
}
|
||||
.item {
|
||||
text-decoration: none;
|
||||
opacity: .6;
|
||||
@ -90,9 +86,7 @@ html:not(.dark) .shiki-dark {
|
||||
text-decoration: none;
|
||||
border: 0 !important;
|
||||
opacity: 0;
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
&:hover,
|
||||
&:focus {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
Reference in New Issue
Block a user