qcast-front/src/styles/_table.scss

562 lines
16 KiB
SCSS

@mixin flexbox(){
display: flex;
align-items: center;
}
table{
.overflow-lab{
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.al-l{
text-align: left !important;
}
}
.flx-box{
@include flexbox;
}
.common-table{
table{
table-layout: fixed;
border: 1px solid #ECF0F4;
border-radius: 3px;
border-collapse:collapse;
tbody{
th{
font-size: 13px;
font-weight: 500;
color: #344356;
padding: 14px 12px;
border: 1px solid #ECF0F4 ;
background-color: #F7F9FA;
vertical-align: middle;
}
td{
padding: 9px;
border: 1px solid #ECF0F4 ;
font-size: 13px;
font-weight: 400;
color: #45576F;
vertical-align: middle;
.radio-wrap{
flex: none;
@include flexbox;
}
.form-flex-wrap{
@include flexbox;
.form-flex-select{
@include flexbox;
label{
flex: none;
margin-right: 5px;
}
.form-select{
min-width: 300px;
}
}
}
.date-picker-wrap{
width: 100%;
@include flexbox;
span{
margin: 0 4px;
}
}
}
}
}
&.bt-able{
margin-bottom: 30px;
}
}
.infomation-table{
table{
border-top: 1px solid #DEE3EA;
border-bottom: 1px solid #DEE3EA;
border-collapse:collapse;
tbody{
tr{
th{
font-size: 13px;
color: #344356;
font-weight: 500;
padding: 18px 0;
border-bottom: 1px solid #F4F4F7;
.title{
margin-right: 8px;
}
}
td{
padding: 0 0 0 15px;
border-bottom: 1px solid #F4F4F7;
.guide{
font-size: 13px;
color: #697C8F;
font-weight: normal;
margin-left: 15px;
margin-bottom: 0;
}
span{
font-size: 13px;
color: #697C8F;
font-weight: normal;
}
}
&:last-child{
th,td{border-bottom: none;}
}
}
}
}
.tooltips{
position: relative;
display: block;
width: 14px;
height: 14px;
display: inline-block;
background: url(../../public/static/images/sub/tooltips.svg)no-repeat center;
background-size: cover;
cursor: pointer;
span{
position: absolute;
top: 50%;
transform: translateY(-50%);
left: 25px;
padding: 11px 7px;
font-size: 12px;
font-weight: 400;
color: #45576F;
background-color: #fff;
border: 2px solid #45576F;
border-radius: 2px;
white-space: nowrap;
opacity: 0;
visibility: hidden;
z-index: 99;
transition: all .15s ease-in-out;
&::before{
content: '';
position: absolute;
top: 50%;
left: -6px;
transform: translateY(-50%) rotate(45deg);
width: 9px;
height: 9px;
border: 2px solid #45576F;
background-color: #fff;
border-top: none;
border-right: none;
}
}
&:hover{
span{
opacity: 1;
visibility: visible;
}
}
}
}
.module-table{
table{
table-layout: fixed;
border-collapse: collapse;
thead{
display: table;
table-layout: fixed;
width: 100%;
th{
padding: 13px 0;
font-size: 13px;
color: #344356;
font-weight: 500;
border-bottom: 2px solid #E0E5EB;
text-align: center;
}
}
tbody{
display: block;
overflow-y: auto;
tr{
display: table;
table-layout: fixed;
width: 100%;
border: 1px solid #ECF0F4;
td{
padding: 10px 0px;
font-size: 13px;
color: #45576F;
font-weight: 400;
text-align: center;
}
}
&::-webkit-scrollbar {
width: 4px;
background-color: transparent;
}
&::-webkit-scrollbar-thumb {
background-color: #C1CCD7;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
}
&.small{
tbody{height: 120px;}
}
&.big{
td,
th{
&:nth-child(2){
width: 121px;
}
}
tbody{
height: 160px;
td{
padding: 10px 20px;
}
}
}
}
}
.roof-module-table{
table{
border-collapse: collapse;
thead{
th{
height: 40px;
padding: 0px 10px;
font-size: 12px;
line-height: 1.1;
color: #fff;
font-weight: 500;
border: 1px solid #505050;
vertical-align: middle;
background-color: rgba(255, 255, 255, 0.05);
text-align: center;
word-break: keep-all;
.d-check-box{
opacity: 0.5;
}
.color-wrap{
display: flex;
align-items: center;
justify-content: center;
.color-box{
width: 14px;
height: 14px;
margin-right: 8px;
}
}
}
}
tbody{
tr{
cursor: pointer;
&.on{
background-color: #272727;
}
&.wrong{
background-color: #7E3434;
}
}
td{
height: 40px;
vertical-align: middle;
font-size: 12px;
color: #fff;
font-weight: 400;
border: 1px solid #505050;
padding: 0 10px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
.warning{
color: PCSオプションマスター;
}
.color-wrap{
display: flex;
align-items: center;
.color-box{
width: 14px;
height: 14px;
margin-right: 8px;
}
.name{
width: 0;
flex: 1;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
}
}
}
}
&.overflow-y{
table{
table-layout: fixed;
border-collapse: collapse;
thead{
display: table;
table-layout: fixed;
width: 100%;
border-collapse: collapse;
}
tbody{
display: block;
max-height: 81px;
overflow-y: auto;
tr{
display: table;
table-layout: fixed;
width: 100%;
border-collapse: collapse;
margin-top: -1px;
}
&::-webkit-scrollbar {
width: 2px;
background-color: rgba(255, 255, 255, 0.05);
}
&::-webkit-scrollbar-thumb {
background-color: #C1CCD7;
}
&::-webkit-scrollbar-track {
background-color: rgba(255, 255, 255, 0.05);
}
}
}
&.min{
table{
tbody{
max-height: 150px;
td{
height: 30px;
}
}
}
}
}
&.min{
table{
tbody{
td{
font-size: 11px;
}
}
}
}
}
// 커뮤니티 테이블
.community-table{
margin-bottom: 24px;
table{
table-layout: fixed;
border-collapse: collapse;
border-top: 2px solid #101010;
tbody{
td{
font-size: 13px;
font-weight: 400;
color: #45576F;
padding: 10.5px 10px;
border-bottom: 1px solid #ECF0F4;
vertical-align: middle;
.text-frame{
display: flex;
align-items: center;
.text-overflow{
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
text-overflow: ellipsis;
overflow: hidden;
}
.clip{
flex: none;
display: block;
margin-left: 10px;
width: 14px;
height: 14px;
background: url(../../public/static/images/sub/community_clip.svg)no-repeat center;
background-size: cover;
}
}
.renewal{
font-size: inherit;
color: #999;
text-align: center;
span{
color: #45576f;
font-weight: 400;
}
}
}
tr{
background-color: transparent;
transition: all .15s ease-in-out;
cursor: pointer;
&:hover{
background: #F7F9FA;
}
}
}
}
}
// 풍속 선택 테이블
.wind-table{
margin-top: 20px;
table{
width: 100%;
table-layout: fixed;
border-collapse: separate;
thead{
display: table;
table-layout: fixed;
width: 100%;
tr{
th{
text-align: center;
font-size: 13px;
font-weight: 600;
color: #344356;
background-color: #F7F9FA;
padding: 10.5px 10px;
vertical-align: middle;
border-bottom: 1px solid #ECF0F4;
border-top: 1px solid #ECF0F4;
&:first-child{
border-left: 1px solid #ECF0F4;
border-radius: 4px 0 0 4px;
}
&:last-child{
border-right: 1px solid #ECF0F4;
border-radius: 0 4px 4px 0;
}
}
}
}
tbody{
display: block;
max-height: 200px;
overflow-y: auto;
tr{
display: table;
table-layout: fixed;
width: 100%;
td{
padding: 13.5px 10px;
font-size: 13px;
font-weight: 400;
color: #45576F;
vertical-align: middle;
border-bottom: 1px solid #ECF0F4;
&:nth-child(2){
width: 110px;
}
&:nth-child(1){
width: 50px;
}
}
}
&::-webkit-scrollbar {
width: 4px;
background-color: transparent;
}
&::-webkit-scrollbar-thumb {
background-color: #ECF0F4;
}
&::-webkit-scrollbar-track {
background-color: transparent;
}
}
}
}
// 견적서 테이블
.esimate-table{
table{
table-layout: fixed;
border-collapse: separate;
thead{
tr{
th{
text-align: center;
font-size: 13px;
color: #fff;
font-weight: 600;
padding: 11px 5px;
background-color: #5D6A76;
&:first-child{
border-radius: 4px 0 0 4px;
}
&:last-child{
border-radius: 0 4px 4px 0;
}
}
}
}
tbody{
tr{
td{
padding: 5px 10px;
font-size: 13px;
color: #45576F;
font-weight: 400;
border-bottom: 1px solid #ECF0F4;
.form-flex-wrap{
display: flex;
align-items: center;
.input-wrap,
.select-wrap{
flex: 1;
}
.btn-area{
flex: none;
}
.icon-wrap{
margin-left: auto;
display: flex;
align-items: center;
gap: 5px;
}
}
.tb_ico{
display: block;
width: 20px;
height: 20px;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
&.change_check{
background-image: url(../../public/static/images/sub/change_ico.svg);
}
&.file_check{
background-image: url(../../public/static/images/sub/attachment_ico.svg);
}
&.open_check{
background-image: url(../../public/static/images/sub/open_ico.svg);
}
}
.grid-tip{
display: block;
width: 20px;
height: 20px;
background: url(../../public/static/images/sub/click_check_ico.svg)no-repeat center;
background-size: cover;
}
}
}
}
}
}