/** * Copyright © 2016-2023 The Thingsboard Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ $tb-button-selected-color: rgb(255, 110, 64) !default; .tb-images { .tb-images-content { width: 100%; height: 100%; background: #fff; overflow: hidden; &.tb-outlined-border { box-shadow: 0 0 0 0 rgb(0 0 0 / 20%), 0 0 0 0 rgb(0 0 0 / 14%), 0 0 0 0 rgb(0 0 0 / 12%); border: solid 1px #e0e0e0; border-radius: 4px; } .tb-images-title { padding-right: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tb-images-view-type-toolbar { height: 55px; min-height: 55px; padding-right: 16px; background-color: transparent; box-shadow: none; .tb-toolbar-button { height: 48px; button.mat-mdc-icon-button { margin: 0; } &.tb-selected { background-color: rgba(255, 255, 255, .15); border-bottom: $tb-button-selected-color solid 4px; button.mat-mdc-icon-button { margin-bottom: -4px; .mat-icon { color: $tb-button-selected-color; fill: $tb-button-selected-color; } } } } } .table-container, tb-scroll-grid { position: relative; } .tb-no-images { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; } .tb-image-card { height: 100%; border-radius: 8px; padding: 8px; display: flex; gap: 8px; flex-direction: column; cursor: pointer; transition: box-shadow 0.2s; .tb-image-preview-container { position: relative; .tb-image-preview-spacer { margin-top: 100%; } .tb-image-preview { position: absolute; inset: 0; width: 100%; height: 100%; } } .tb-image-details { flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 4px; align-self: stretch; .tb-image-title-container { display: flex; align-items: center; gap: 8px; align-self: stretch; .tb-image-title { flex: 1; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; color: rgba(0, 0, 0, 0.76); font-size: 12px; font-style: normal; font-weight: 500; line-height: 16px; } .tb-image-sys { padding: 1px 4px; border-radius: 4px; background: rgba(236, 236, 236, 0.64); color: rgba(0, 0, 0, 0.54); font-size: 11px; font-style: normal; font-weight: 500; line-height: 16px; letter-spacing: 0.017px; } } .tb-image-info-container { display: flex; align-items: center; gap: 8px; align-self: stretch; color: rgba(0, 0, 0, 0.38); font-size: 10px; font-style: normal; font-weight: 400; line-height: 16px; .mat-divider.mat-divider-vertical { height: 16px; } } } &:hover { box-shadow: 0 0 28px 0 rgba(0, 0, 0, 0.24); } } .table-container { overflow: auto; .mat-sort-header-sorted .mat-sort-header-arrow { opacity: 1 !important; } .mat-mdc-cell.mat-column-preview { width: 50px; height: 50px; padding: 2px 12px; display: block; } } .tb-image-preview { width: 50px; height: 50px; object-fit: contain; border-radius: 4px; } } }