File: D:/HostingSpaces/blijegasten/blijegasten.be/resources/sass/kms/attributes/_dataTable.scss
.entity-attribute-data-table {
max-width: 1200px;
}
.c-data-table {
margin: 10px 45px 0;
padding: 20px 20px 0;
border: 1px solid $lighter-gray;
background-color: white;
border-radius: 4px;
}
.c-data-table__row {
display: flex;
}
.c-data-table__row--header {
padding-bottom: 14px;
border-bottom: 1px solid $lighter-gray;
}
.c-data-table__content {
&:empty {
&:before {
display: block;
content: attr(data-empty);
font-size: 0.7rem;
color: $light-gray;
padding: 20px 0;
}
}
}
.c-data-table__item--header {
color: $light-gray;
font-size: 0.65rem;
line-height: 1.2;
text-transform: uppercase;
font-weight: $font-weight-bold;
}
.c-data-table__item {
flex: 1;
&.is-locked {
pointer-events: none;
background-color: $whitish;
}
}
.c-data-table__item--f2 { flex: 2; }
.c-data-table__item--f3 { flex: 3; }
.c-data-table__field {
width: 100%;
min-height: 40px;
margin-left: 0 !important;
background-color: white;
font-size: 0.7rem;
line-height: 1.4;
border: 0;
display: block;
color: $dark-gray;
transition: border-color ease-in-out 0.25s, box-shadow ease-in-out 0.25s;
.c-data-table__item.is-locked & {
color: $medium-gray;
background-color: transparent;
}
}
.c-data-table__field--textarea {
width: calc(100% - 15px);
resize: vertical;
padding: 13px 10px;
font-family: $fontFamily;
}
.c-data-table__row {
& + & {
border-top: 1px solid $lightest-gray;
}
}
.c-data-table__delete {
position: relative;
margin-top: 10px;
border-radius: 50%;
height: 18px;
width: 18px;
background-color: rgba($brightRed, 0.4);
background-image: url("#{$baseImagePath}/icons/icon_cross.svg");
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: 8px 8px;
cursor: pointer;
transition: background-color 0.3s;
&:hover {
background-color: $brightRed;
}
}
.c-data-table__controls {
margin: 10px 45px 0;
padding: 0 20px;
text-align: right;
}
.c-data-table__add {
display: inline-flex;
align-items: center;
padding: 6px 10px;
border-radius: 15px;
background-color: $blue;
opacity: 1;
cursor: pointer;
transition: opacity 0.2s;
color: white;
font-size: 0.7rem;
line-height: 1.2;
font-weight: $font-weight-bold;
user-select: none;
&:hover {
opacity: 0.8;
}
}
.c-data-table__add-icon {
display: inline-block;
width: 10px;
height: 10px;
margin-right: 10px;
background-image: url("#{$baseImagePath}/icons/icon_plus_white.svg");
background-repeat: no-repeat;
background-position: 50% 50%;
background-size: contain;
}