[components] TButton 수정
Detail Notes : 1. TYPE 추가, (oneDepthCategory, twoDepthCateogy) 2. TYPE 추가에 따른 css 추가
This commit is contained in:
@@ -20,6 +20,8 @@ const TYPES = {
|
||||
terms: "terms",
|
||||
agree: "agree",
|
||||
popup: "popup",
|
||||
oneDepthCategory: "oneDepthCategory",
|
||||
twoDepthCategory: "twoDepthCategory",
|
||||
};
|
||||
|
||||
const COLOR = {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user