[Customer] Changed filter css for Tablet mode
This commit is contained in:
parent
ab43dc8242
commit
64b8f556c0
|
|
@ -660,16 +660,18 @@ $(document).ready(function(){
|
||||||
<style>
|
<style>
|
||||||
.cstatus-segment,
|
.cstatus-segment,
|
||||||
.cistop-segment {
|
.cistop-segment {
|
||||||
display: inline-flex;
|
display: flex; /* inline-flex 말고 flex 로 */
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 라벨 전체가 버튼처럼 동작 + 같은 너비 */
|
||||||
.cstatus-segment label,
|
.cstatus-segment label,
|
||||||
.cistop-segment label {
|
.cistop-segment label {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
flex: 1 1 0; /* 3개 버튼을 동일 너비로 나눔 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.cstatus-segment input[type="radio"],
|
.cstatus-segment input[type="radio"],
|
||||||
|
|
@ -679,8 +681,9 @@ $(document).ready(function(){
|
||||||
|
|
||||||
.cstatus-segment span,
|
.cstatus-segment span,
|
||||||
.cistop-segment span {
|
.cistop-segment span {
|
||||||
display: inline-block;
|
display: block;
|
||||||
padding: 8px 23px;
|
text-align: center;
|
||||||
|
padding: 8px 0; /* 좌우 padding 빼고, 너비는 flex가 담당 */
|
||||||
background: #e7e7e7;
|
background: #e7e7e7;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
|
|
@ -692,6 +695,7 @@ $(document).ready(function(){
|
||||||
color: #333;
|
color: #333;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 가로일 때 border-radius (좌우) */
|
||||||
.cstatus-segment label:first-child span,
|
.cstatus-segment label:first-child span,
|
||||||
.cistop-segment label:first-child span {
|
.cistop-segment label:first-child span {
|
||||||
border-radius: 5px 0 0 5px;
|
border-radius: 5px 0 0 5px;
|
||||||
|
|
@ -702,4 +706,31 @@ $(document).ready(function(){
|
||||||
border-radius: 0 5px 5px 0;
|
border-radius: 0 5px 5px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 모바일. 너비는 나중에 조절 */
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.cstatus-segment,
|
||||||
|
.cistop-segment {
|
||||||
|
flex-direction: column; /* 세로로 쌓기 */
|
||||||
|
width: 100%; /* td 안에서 꽉 차게 */
|
||||||
|
}
|
||||||
|
|
||||||
|
.cstatus-segment label,
|
||||||
|
.cistop-segment label {
|
||||||
|
flex: 1 0 auto;
|
||||||
|
width: 100%; /* 각 버튼이 컨테이너 전체 너비 사용 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 세로일 때 border-radius (위/아래) 다시 정의 */
|
||||||
|
.cstatus-segment label:first-child span,
|
||||||
|
.cistop-segment label:first-child span {
|
||||||
|
border-radius: 5px 5px 0 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cstatus-segment label:last-child span,
|
||||||
|
.cistop-segment label:last-child span {
|
||||||
|
border-radius: 0 0 5px 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
Loading…
Reference in New Issue