[components] TButton 수정

Detail Notes :

1. TYPE 추가, (oneDepthCategory, twoDepthCateogy)
2. TYPE 추가에 따른 css 추가
This commit is contained in:
younghoon100.park
2024-02-20 18:49:43 +09:00
parent eb4ad6a393
commit c628c9b984
2 changed files with 66 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ const TYPES = {
terms: "terms",
agree: "agree",
popup: "popup",
oneDepthCategory: "oneDepthCategory",
twoDepthCategory: "twoDepthCategory",
};
const COLOR = {

View File

@@ -143,4 +143,68 @@
color: @COLOR_WHITE;
}
}
&.oneDepthCategory {
position: relative;
min-width: 180px;
height: 84px;
padding: 24px 30px;
background-color: @COLOR_WHITE;
border-radius: 42px;
.font(@fontFamily: @baseFontBold, @fontSize: 30px);
line-height: normal;
color: @COLOR_GRAY08;
&:focus {
color: @PRIMARY_COLOR_RED;
&::after {
.focused(@boxShadow: 0, @borderRadius: 42px);
}
}
&.selected {
background-color: @SELECTED_COLOR_RED;
color: @COLOR_WHITE;
&:focus {
&::after {
all: unset;
}
}
}
}
&.twoDepthCategory {
position: relative;
.flex();
width: 300px !important;
height: 72px;
padding: 18px 30px;
background-color: @COLOR_WHITE;
border-radius: 12px;
.font(@fontFamily: @baseFont, @fontSize: 30px);
color: @COLOR_GRAY08;
> div {
width: 240px;
}
&:focus {
color: @PRIMARY_COLOR_RED;
&::after {
.focused(@boxShadow: 0, @borderRadius: 12px);
}
}
&.selected {
background-color: @COLOR_NAVY;
color: @COLOR_WHITE;
&:focus {
&::after {
all: unset;
}
}
}
}
}