Skip to content

Commit

Permalink
style: 폴더 영역 클릭,호버,디폴트 상태별 스타일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dmswl98 committed Feb 22, 2024
1 parent cf568a2 commit 9ac5d07
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
17 changes: 13 additions & 4 deletions src/domain/저장하는/components/ArchiveFolder/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,27 @@ export const folder = style({

export const userFolder = recipe({
base: [
sprinkles({ typography: '16/Title/Bold' }),
sprinkles({ typography: '16/Title/Medium' }),
utils.flexAlignCenter,
{
gap: '5px',
padding: '8px 20px',
padding: '14px 20px',
borderRadius: '8px',
transition: 'all 100ms ease-in-out',

':hover': {
fontWeight: 700,
color: COLORS['Grey/900'],
backgroundColor: COLORS['Grey/100'],
},
},
],
variants: {
isActive: {
true: {
backgroundColor: COLORS['Grey/100'],
fontWeight: 700,
color: COLORS['Blue/Default'],
backgroundColor: COLORS['Grey/White'],
},
false: {
backgroundColor: COLORS['Grey/White'],
Expand Down Expand Up @@ -61,7 +65,12 @@ export const createFolderButton = style([
{
width: '100%',
gap: '4px',
padding: '8px 20px',
padding: '10px 20px',
borderRadius: '8px',
color: COLORS['Grey/400'],

':hover': {
backgroundColor: COLORS['Grey/100'],
},
},
]);
10 changes: 7 additions & 3 deletions src/domain/저장하는/components/Folder/style.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,21 @@ export const folderButton = recipe({
justifyContent: 'space-between',
borderRadius: '8px',
transition: 'all 100ms ease-in-out',
paddingRight: '8px',
paddingRight: '12px',

':hover': {
fontWeight: 700,
color: COLORS['Grey/900'],
backgroundColor: COLORS['Grey/100'],
},
},
],
variants: {
isActive: {
true: {
backgroundColor: COLORS['Grey/100'],
fontWeight: 700,
color: COLORS['Blue/Default'],
backgroundColor: COLORS['Grey/White'],
},
false: {
backgroundColor: COLORS['Grey/White'],
Expand All @@ -37,5 +41,5 @@ export const folderButton = recipe({
export const folderName = style({
display: 'inline-block',
width: '100%',
padding: '11px 0 11px 20px',
padding: '14px 0 14px 20px',
});

0 comments on commit 9ac5d07

Please sign in to comment.