Skip to content

Commit

Permalink
微调 增加了browserlist
Browse files Browse the repository at this point in the history
  • Loading branch information
Redapple-one authored Oct 24, 2024
1 parent 75be045 commit 583f85f
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 37 deletions.
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
defaults
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*node_modules/*
node_modules
44 changes: 44 additions & 0 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 45 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 1 addition & 9 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,4 @@ module.exports = {
require('autoprefixer'),
require('postcss-preset-env'),
],
};
module.exports = (ctx) => ({
map: ctx.options.map,
parser: ctx.options.parser,
plugins: {
'postcss-import': { root: ctx.file.dirname },
cssnano: ctx.env === 'production' ? {} : false,
},
})
};
6 changes: 1 addition & 5 deletions src/input.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
@tailwind components;
@tailwind utilities;

/* :root {
font-family: "MiSans VF", MiSans, system-ui, sans-serif;
} */

.navbar-menu:checked ~ label .navbar-menu\:rotate-180 {
--tw-rotate: 180deg;
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(180deg) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
Expand All @@ -18,7 +14,7 @@
overflow: hidden; /* 防止内容溢出 */
opacity: 0; /* 初始透明度为 0 */
}

.navbar-menu\:block.visible {
height: calc(100vh - 64px); /* 目标高度 */
opacity: 1; /* 完全不透明 */
Expand Down
23 changes: 1 addition & 22 deletions src/output.css

Large diffs are not rendered by default.

0 comments on commit 583f85f

Please sign in to comment.