1
0
Fork 0
HANYANG_MES/hymes_scss/inc/css/scss/component/_table.scss

350 lines
5.9 KiB
SCSS

.tabulator.hy-table{
background-color: white;
border: none;
margin-top: 10px;
overflow: hidden;
height: 100%;
&.no-margin{
margin: 0;
}
// 테이블 헤더
.tabulator-header{
border-top: solid 1px $gray-004;
border-bottom: solid 1px $gray-004;
background-color: #F6F6FC;
.tabulator-col{
background-color: #F6F6FC;
border-right: solid 1px $gray-004;
height: 32px;
justify-content: center;
.tabulator-col-content .tabulator-col-title{
font-weight: 500;
padding: 0;
}
}
}
// 테이블 행
.tabulator-row{
background-color: transparent;
border: solid 0.5px $gray-002;
border-left: solid 0.5px transparent;
border-right: solid 0.5px transparent;
&:hover{
background-color: $gray-003;
}
&.tabulator-selected{
background-color: $gray-002;
}
&.remove-row{
background-color: $red;
}
&.edit-row{
background-color: #d2ddff;
}
&.blank-row{
border: solid 0.5px red
}
.tabulator-cell{
border-right: solid 1px $gray-002;
// &.tabulator-editable{
// background-color: transparent ;
// &::after{
// content: "";
// }
// &:hover{
// background-color: $gray-003;
// }
// }
&.editable-cell, &.tabulator-editable{
background-color: rgba(255, 253, 221, 0.548) ;
&::after{
content: "";
color: $blue-004;
position: absolute;
top: -1px;
right: -1px;
line-height: 7px;
font-size: 7px;
}
}
}
}
// 테이블 푸터
.tabulator-footer{
border: none;
.tabulator-calcs-holder{
border: none;
}
}
}
// 컬럼 그룹화 된 테이블
.tabulator.group-table{
// 테이블 헤더
.tabulator-header{
.tabulator-col{
height: 50px;
align-items: center;
&.tabulator-col-group{
.tabulator-col-group-cols{
border-top: solid 1px $gray-004;
}
}
}
}
}
.tabulator.groupby{
.tabulator-row{
&.tabulator-group {
border-bottom: solid 2px $gray-002;
border-top: none;
border-right: solid 1px $gray-002;
&.select{
background-color: $gray-004;
}
&.tabulator-group-visible{
// .tabulator-group-toggle{
// &::before{
// content:"▼\00a0";
// }
// }
// }
// .tabulator-group-toggle{
// &::before{
// content:"▶\00a0";
// font-weight: 500;
// font-size: 11px;
// }
.tabulator-arrow{
// display: none;
}
}
span{
display: none;
}
}
}
}
// 작업자 메인화면 2 그룹화 테이블
.tabulator.group-table-style{
.tabulator-header .tabulator-col{
&.tabulator-col-group{
.tabulator-col-content{
width: 200px;
}
.tabulator-col-group-cols{
display: none;
}
}
}
.tabulator-row{
border-bottom: none;
.tabulator-cell{
border-bottom: solid 1px $gray-002;
}
.tabulator-cell:nth-of-type(-n+6){
border-bottom: none;
}
}
.tabulator-row:nth-of-type(5n+1), .tabulator-row:nth-of-type(5n+4){
.tabulator-cell:nth-of-type(2n+7){
width: 200px !important;
}
.tabulator-cell:nth-of-type(2n+8){
display: none !important;
}
}
.tabulator-row:nth-of-type(5n+5){
border-bottom: solid 1px $gray-002;
}
}
// basecode vue 테이블
/* 기본테이블 */
.bg-light{
background-color: #f8f9fa;
}
.font-weight-bold td{
font-weight: 700;
}
.tb-height-full .cont_hfix{
height: calc(100% - 44px);
margin-top: 10px;
overflow: auto;
}
.basetable, .vue-table {
min-width: 100%;
border-collapse: separate;
border-bottom: 1px solid $gray-002;
border-top: 1px solid $gray-002;
th {
text-align: center;
background-color: #f6f6fc;
font-weight: 500;
color:#555;
height: 30px;
min-width: 100px;
padding: 0;
margin: 0;
border-top: solid 1px $gray-004;
border-bottom: solid 1px $gray-004;
&:not(:first-child) {
border-left: 1px solid $gray-004;
}
}
td {
white-space: nowrap;
text-align: center;
border-bottom: 1px solid $gray-002;
height: 31px;
&:not(:last-child:first-child) {
border-left: 1px solid $gray-002;
}
&:last-child:first-child {
border-right: 1px solid $gray-002;
}
}
thead.top_sticky, .basetable thead.top_sticky th {
position: sticky;
top:0;
left:0;
}
}
.vue-table {
width: 3000px;
th{
min-width: auto;
}
}
// 품목코드등록-라우팅 테이블
.tabulator.hy-table.hide-sub-column{
.tabulator-header{
.tabulator-col.tabulator-col-group{
&.width-150{
width: 150px;
}
&.width-160{
width: 160px;
}
&.width-180{
width: 180px;
}
&.width-200{
width: 200px;
}
&.width-230{
width: 230px;
}
&.width-800{
width: 800px;
}
.tabulator-col-group-cols{
display: none;
}
}
}
}
// 테이블 소계 및 합계 css
.tabulator.hy-table{
.tabulator-calcs{
position: relative;
.tabulator-cell:nth-of-type(1){
position: sticky;
top: 0;
left: 0;
border-right: solid 2px $gray-004;
&::after {
content: "소계";
font-weight: 700;
}
}
// .tabulator-cell:nth-of-type(2){
// width: 150px !important;
// }
}
.tabulator-footer{
.tabulator-calcs{
.tabulator-cell:nth-of-type(1)::after {
content: "합계";
}
}
}
}
.status-table.vue-table{
colgroup{
col{}
}
thead{
tr{
th{}
}
}
tbody{
tr{
td{
&.on{
background-color: $gray-002;
cursor: pointer;
}
}
}
}
}