Skip to content

Commit

Permalink
💄 style: 补充响应式用法的 demo
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Mar 22, 2023
1 parent 08fc472 commit f81b69c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"scripts": {
"build": "max build",
"build:analyze": "ANALYZE=1 max build",
"dev": "max dev",
"lint": "max lint",
"prepare": "husky install",
Expand Down Expand Up @@ -47,5 +48,6 @@
"ts-node": "^10",
"typescript": "^4",
"vercel": "^28"
}
},
"repository": "https://github.com/arvinxx/umi-simple-web-template.git"
}
8 changes: 6 additions & 2 deletions src/pages/style.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
import { createStyles, css } from 'antd-style';
import img from '@/assets/yay.jpg';
import { createStyles } from 'antd-style';

export default createStyles(({ token }) => ({
export default createStyles(({ token, css, responsive }) => ({
normal: css`
font-family: Georgia, sans-serif;
margin-top: 4em;
text-align: center;
${responsive.mobile} {
margin-top: 10px;
}
`,

welcome: css`
Expand Down

1 comment on commit f81b69c

@vercel
Copy link

@vercel vercel bot commented on f81b69c Mar 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.