Skip to content

Commit

Permalink
feat: #1 代码块样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Feb 24, 2023
1 parent 6767d43 commit 635118e
Show file tree
Hide file tree
Showing 25 changed files with 2,330 additions and 2,646 deletions.
2,102 changes: 2,102 additions & 0 deletions csslib/webfont.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
</head>
<body>
<div id="root"></div>
<script src="/src/blog-main.tsx" type="module"></script>
<script src="/src/blog.tsx" type="module"></script>
</body>
</html>
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "0.0.0",
"scripts": {
"dev": "vite",
"watch": "tsc && vite build -c vite.cjs.config.ts --outDir dist-cjs --watch",
"build": "pnpm build:cjs && pnpm build:esm",
"build:cjs": "tsc && vite build -c vite.cjs.config.ts --outDir dist-cjs",
"build:esm": "tsc && vite build",
Expand Down
6 changes: 3 additions & 3 deletions src/apps/blog/BlogApp.tsx → src/apps/blog/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

import { useState } from "react"
import reactLogo from "../../assets/react.svg"
import "../../styles/app/BlogApp.sass"
import "../../styles/app/app.sass"

function BlogApp() {
function App() {
const [count, setCount] = useState(0)

return (
Expand Down Expand Up @@ -56,4 +56,4 @@ function BlogApp() {
)
}

export default BlogApp
export default App
136 changes: 0 additions & 136 deletions src/blog-theme.css

This file was deleted.

7 changes: 0 additions & 7 deletions src/blog-theme.css.map

This file was deleted.

File renamed without changes.
8 changes: 4 additions & 4 deletions src/blog-main.tsx → src/blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@

import React from "react"
import ReactDOM from "react-dom/client"
import BlogApp from "./apps/blog/BlogApp"
import "./blog-theme.sass"
import zhi from "~/src/zhi-theme"
import App from "./apps/blog/App"
import "./blog.sass"
import zhi from "~/src/zhi"

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<React.StrictMode>
<BlogApp />
<App />
</React.StrictMode>
)

Expand Down
57 changes: 0 additions & 57 deletions src/styles/app/BlogApp.css

This file was deleted.

7 changes: 0 additions & 7 deletions src/styles/app/BlogApp.css.map

This file was deleted.

File renamed without changes.
30 changes: 5 additions & 25 deletions src/styles/common/common.sass
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
/*!
/ Copyright (c) 2023, Terwer . All rights reserved.
/ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
/
/ This code is free software; you can redistribute it and/or modify it
/ under the terms of the GNU General Public License version 2 only, as
/ published by the Free Software Foundation. Terwer designates this
/ particular file as subject to the "Classpath" exception as provided
/ by Terwer in the LICENSE file that accompanied this code.
/
/ This code is distributed in the hope that it will be useful, but WITHOUT
/ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
/ FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
/ version 2 for more details (a copy is included in the LICENSE file that
/ accompanied this code).
/
/ You should have received a copy of the GNU General Public License version
/ 2 along with this work; if not, write to the Free Software Foundation,
/ Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
/
/ Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com
/ or visit www.terwer.space if you need additional information or have any
/ questions.
/
/* 字体 */
$font-family-mono: "JetBrains Mono", "LXGW WenKai", "-apple-system", "Microsoft YaHei", "Times New Roman", "方正北魏楷书_GBK"
@import "/appearance/themes/zhi/csslib/webfont.css"
$font-family-mono: "JetBrains Mono", "LXGW WenKai", "-apple-system", "Microsoft YaHei", "Times New Roman", "方正北魏楷书_GBK"

/* 颜色 */
$primary-color: #333
Loading

0 comments on commit 635118e

Please sign in to comment.