diff --git a/README.md b/README.md index 5ffdd52..f6489f3 100644 --- a/README.md +++ b/README.md @@ -7,27 +7,27 @@ Quick Reference ## 编程 -[TOML](./docs/toml.md) -[TypeScript](./docs/typescript.md) -[JavaScript](./docs/javascript.md) -[JSON](./docs/json.md) -[Markdown](./docs/markdown.md) +[TOML](./docs/toml.md) +[TypeScript](./docs/typescript.md) +[JavaScript](./docs/javascript.md) +[JSON](./docs/json.md) +[Markdown](./docs/markdown.md) ## 工具包 -[npm](./docs/npm.md) -[package.json](./docs/package.json.md) -[VSCode](./docs/vscode.md) -[Semver](./docs/semver.md) -[Sketch](./docs/sketch.md) -[Jest](./docs/jest.md) +[npm](./docs/npm.md) +[package.json](./docs/package.json.md) +[Semver](./docs/semver.md) +[Sketch](./docs/sketch.md) +[Jest](./docs/jest.md) +[VSCode](./docs/vscode.md) ## Linux 命令 -[Cron](./docs/cron.md) -[Git](./docs/git.md) +[Cron](./docs/cron.md) +[Git](./docs/git.md) ## License diff --git a/package.json b/package.json index c3fa79f..73691da 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,9 @@ "name": "reference", "version": "1.0.0", "description": "为开发人员分享快速参考备忘单(主要是方便自己)。", + "author": "jaywcjlove", + "license": "MIT", + "homepage": "https://jaywcjlove.github.io/reference", "private": false, "scripts": { "build": "node scripts/build.mjs", @@ -11,13 +14,10 @@ "type": "git", "url": "git+https://github.com/jaywcjlove/reference.git" }, - "keywords": [], - "author": "jaywcjlove", - "license": "MIT", "bugs": { "url": "https://github.com/jaywcjlove/reference/issues" }, - "homepage": "https://github.com/jaywcjlove/reference#readme", + "keywords": [], "devDependencies": { "@wcj/markdown-to-html": "^2.0.14", "fs-extra": "^10.1.0", diff --git a/scripts/style.css b/scripts/style.css index d136202..fcb5356 100644 --- a/scripts/style.css +++ b/scripts/style.css @@ -22,8 +22,10 @@ blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; } -.max-container a, .max-container a:visited { +.max-container a { color: rgb(2 132 199/1); +} +.max-container a, .max-container a:visited { text-decoration: none; background-image: linear-gradient(transparent,transparent 6px,#34495e 6px,#34495e); background-position: bottom; @@ -78,7 +80,9 @@ body.home .h1wrap p { } .home-card { - grid-template-columns: repeat(4,minmax(0,1fr)); + display: grid; + gap: 2rem; + grid-template-columns: repeat(2,minmax(0,1fr)); } .home-card a { @@ -87,9 +91,9 @@ body.home .h1wrap p { cursor: pointer; border-radius: 0.5rem; padding: 1rem; - color: rgb(30 41 59/1); box-shadow: 0 0 #0000,0 0 #0000,0 1px 2px 0 rgba(0,0,0,0.05); - color: rgb(203 213 225/1); + --text-opacity: 1; + color: rgb(203 213 225/var(--text-opacity)); --bg-opacity: 0.5; background-color: rgb(62 69 72/var(--bg-opacity)); transition: all .3s; @@ -617,10 +621,6 @@ pre { } @media (min-width: 1024px) { - .home-card { - display: grid; - gap: 2rem; - } .h2wrap-body { display: grid; gap: 1.75rem; @@ -628,4 +628,10 @@ pre { .h2wrap-body > .wrap { margin-bottom: 0; } +} + +@media (min-width: 768px) { + .home-card { + grid-template-columns: repeat(4,minmax(0,1fr)); + } } \ No newline at end of file