Skip to content

Commit d61b02d

Browse files
committed
(_ _*) Z z z
1 parent 83049b0 commit d61b02d

File tree

7 files changed

+219
-153
lines changed

7 files changed

+219
-153
lines changed

package.json

+9-4
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,21 @@
99
"@vueuse/core": "^4.0.0-rc.4",
1010
"dayjs": "^1.9.6",
1111
"vue": "^3.0.3",
12-
"vue-router": "^4.0.0-rc.5"
12+
"vue-router": "^4.0.0-rc.6"
1313
},
1414
"devDependencies": {
1515
"@antfu/eslint-config-vue": "^0.4.3",
16-
"@iconify/json": "^1.1.265",
16+
"@iconify/json": "^1.1.266",
1717
"@purge-icons/generated": "^0.4.1",
1818
"@types/markdown-it": "^10.0.3",
19-
"@typescript-eslint/eslint-plugin": "^4.8.2",
19+
"@typescript-eslint/eslint-plugin": "^4.9.0",
2020
"@vue/compiler-sfc": "^3.0.3",
21+
"autoprefixer": "^10.0.4",
2122
"cross-env": "^7.0.2",
2223
"eslint": "^7.14.0",
2324
"markdown-it": "^12.0.2",
24-
"tailwindcss": "^1.9.6",
25+
"postcss-nested": "^5.0.1",
26+
"tailwindcss": "^2.0.1",
2527
"typescript": "^4.1.2",
2628
"vite": "^1.0.0-rc.13",
2729
"vite-plugin-components": "^0.4.1",
@@ -30,6 +32,9 @@
3032
"vite-plugin-voie": "^0.4.0",
3133
"voie-pages": "^0.4.0"
3234
},
35+
"resolutions": {
36+
"postcss": "8.1.7"
37+
},
3338
"eslintConfig": {
3439
"extends": "@antfu/eslint-config-vue",
3540
"rules": {

postcss.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
module.exports = {
22
plugins: [
33
require('tailwindcss'),
4+
require('postcss-nested'),
45
require('autoprefixer'),
56
],
67
}

src/css/index.postcss

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
@import 'tailwindcss/base';
2+
@import 'tailwindcss/components';
3+
@import 'tailwindcss/utilities';
4+
@import './markdown.postcss';
5+
6+
html,
7+
body,
8+
#app {
9+
height: 100vh;
10+
width: 100vw;
11+
margin: 0;
12+
padding: 0;
13+
@apply font-mono;
14+
}
15+
16+
html.dark {
17+
background: #222;
18+
}
19+
20+
.link {
21+
@apply cursor-pointer opacity-50;
22+
23+
&:hover {
24+
@apply opacity-100;
25+
}
26+
}
27+

src/css/markdown.postcss

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.markdown-body {
2+
h1 {
3+
font-size: 1rem;
4+
font-weight: bold;
5+
margin-bottom: 1rem;
6+
}
7+
a {
8+
cursor: pointer;
9+
opacity: 0.5;
10+
}
11+
a:hover {
12+
opacity: 1;
13+
}
14+
}

src/main.postcss

-15
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,3 @@ html.dark {
2323
.link:hover {
2424
@apply opacity-100;
2525
}
26-
27-
.btn {
28-
@apply
29-
px-4 py-1 rounded inline-block
30-
bg-teal-600 text-white cursor-pointer
31-
hover:bg-teal-700
32-
disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50;
33-
}
34-
35-
.icon-btn {
36-
@apply
37-
inline-block cursor-pointer select-none
38-
opacity-75 transition duration-200 ease-in-out
39-
hover:opacity-100;
40-
}

tailwind.config.js

+1-13
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,5 @@ module.exports = {
2929
textColor: ['dark', 'hover', 'active', 'disabled'],
3030
opacity: ['dark', 'hover', 'active', 'focus', 'disabled'],
3131
},
32-
future: {
33-
purgeLayersByDefault: true,
34-
removeDeprecatedGapUtilities: true,
35-
},
36-
experimental: {
37-
darkModeVariant: true,
38-
applyComplexClasses: true,
39-
uniformColorPalette: true,
40-
extendedSpacingScale: true,
41-
defaultLineHeights: true,
42-
extendedFontSizeScale: true,
43-
},
44-
dark: 'class',
32+
darkMode: 'class',
4533
}

0 commit comments

Comments
 (0)