Refactor components of battlesuit list page

This commit is contained in:
Sakura Knoll
2022-01-01 17:40:11 +09:00 Unverified
parent 3af8a985b0
commit 190b50b69f
6 changed files with 102 additions and 51 deletions
+20
View File
@@ -54,6 +54,7 @@ export const theme: Theme = {
},
borders: {
default: `1px solid ${colors.gray[5]}`,
primary: `1px solid #007bff`,
},
lineHeights: {
body: 1.6,
@@ -96,10 +97,19 @@ export const theme: Theme = {
borderStyle: 'solid',
borderWidth: 1,
bg: 'background',
cursor: 'pointer',
'&:hover, &.active': {
color: 'background',
bg: 'primary',
},
transition:
'box-shadow 200ms ease-in-out, color 200ms ease-in-out, background-color 200ms ease-in-out',
'&:hover': {
boxShadow: 'rgba(0, 0, 0, 0.2) 0px 4px 8px;',
},
'&.hidden': {
display: 'none',
},
},
secondary: {
color: 'background',
@@ -209,6 +219,16 @@ export const theme: Theme = {
},
},
cards: {
primary: {
border: 'default',
borderRadius: 'default',
transition:
'box-shadow 200ms ease-in-out, color 200ms ease-in-out, background-color 200ms ease-in-out',
'&:hover': {
boxShadow: 'rgba(0, 0, 0, 0.2) 0px 4px 8px;',
},
},
stigmata: {
padding: 2,
borderRadius: 4,