Skip to content

Commit

Permalink
add less
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed Jan 7, 2021
1 parent d473a36 commit eb948c2
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 23 deletions.
4 changes: 3 additions & 1 deletion src/app.jsx
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
// Just for dumi style
import './app.less';
import './less/main.less';
import './less/markdown.less';
import './less/dumi.less';
66 changes: 44 additions & 22 deletions src/app.less → src/less/dumi.less

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/less/main.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
html {
scroll-behavior: smooth;
}
15 changes: 15 additions & 0 deletions src/less/markdown.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.markdown table {
width: auto !important;
}

.markdown table td:first-child {
font-weight: normal !important;
}

code {
padding: 1px 5px !important;
border-radius: 4px;
background: rgba(0, 0, 0, 0.06) !important;
box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(0,0,0,0.1);
}

0 comments on commit eb948c2

Please sign in to comment.