/* * ============LICENSE_START======================================================= * SDC * ================================================================================ * Copyright (C) 2022 Nordix Foundation. All rights reserved. * ================================================================================ * 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. * * SPDX-License-Identifier: Apache-2.0 * ============LICENSE_END========================================================= */ @import '../../../../assets/styles/variables.less'; @import '../../../../assets/styles/override.less'; @import '../../../../assets/styles/sprite-old.less'; .interface-definition { font-size: 14px; display:flex; flex-direction:row; height: 100%; .delete-col-header{ .sprite; .sprite.e-sdc-small-icon-delete; } .field-delete{ display: flex; align-items: center; justify-content: center; } .interface-empty-msg { .bold-message { font-family: @font-opensans-bold; } :first-child { &:not(:only-child) { margin: 6px 0; } } display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 14px; } .link { color: @sdcui_color_blue; text-decoration: underline; font-family: @font-opensans-regular; &:not(.disabled) { &:not(.empty-list-add-btn) { &:hover { color: @sdcui_color_dark-blue; cursor: pointer; } } } } .operation-list { border-top: 1px solid @main_color_o; padding-top: 5px; .empty-list-container { width: 100%; display: flex; justify-content: center; .empty-list-add-btn { display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid @main_color_o; margin-top: 50px; height: 229px; width: 480px; &.disabled { pointer-events: none; } &:hover { &:not(.disabled) { border: 1px solid @sdcui_color_blue; cursor: pointer; } } .button-text { margin-top: 9px; font-family: @font-opensans-medium; font-size: 16px; text-transform: uppercase; color: @sdcui_color_blue; } } } .expand-collapse { margin-top: 4px; margin-bottom: 18px; color: @sdcui_color_light-gray; } .interface-row { width: 100%; margin-top: 13px; border-bottom: 1px solid @main_color_o; padding-left: 4px; min-height: 37px; .interface-accordion { cursor: pointer; .chevron-container { position: relative; margin-right: 5px; &.isCollapsed { right: -6px; top: 0; * { transform: rotate(270deg); } } &:not(.isCollapsed) { top: 6px; } * { &:hover { cursor: pointer; } } } .interface-name { font-size: 18px; font-family: @font-opensans-bold; margin-bottom: 15px; } } .generic-table { margin-bottom: 24px; margin-top: 10px; margin-left: 22px; font-size: 14px; .header-row, .data-row { .cell { &.field-description { flex: 2.5; } &.field-actions { flex-basis: 72px; display: flex; justify-content: center; align-items: center; } } } .header-row { .cell { background: @sdcui_color_silver; &.field-actions { font-size: 10px; } } } .data-row { cursor: pointer; .table-delete-btn{ .sprite; .sprite.e-sdc-small-icon-delete; border: none; display: none !important; } &:hover { background: @sdcui_color_light-silver; .table-delete-btn{ display: inline-block !important; } .cell { &.field-name { color: @sdcui_color_dark-blue; } } } &:not(:hover) { .field-actions { visibility: hidden; } } .cell { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; &.field-description { &:not(.collapsed) { white-space: normal; } &.collapsed { text-overflow: clip; } .more-or-less { margin-left: 5px; } } &.field-actions { .delete-action { position: relative; top: 2px; } } } } } } } .left-column { flex: 1 0 500px; position: relative; min-width:930px; } .right-column { display:flex; flex:0 0 350px; flex-direction:column; margin: 0px 0 0 1em; overflow-x:auto; .add-btn{ align-self: flex-end; margin-top: 10px; margin-bottom: 19px; } /deep/ .tabs { border-bottom: solid 1px #d0d0d0; } /deep/ .tab { flex: none; padding: 8px 20px 0; font-size: 14px; line-height:30px; font-family: @font-opensans-regular; &.active { font-family: @font-opensans-medium; } } } .hierarchy-tabs { flex: 0 0 40px; } .gray-border { border: 1px solid #ddd; } /deep/ .white-sub-header { background-color: #fffefe; box-shadow: 0px 1px 0.99px 0.01px rgba(34, 31, 31, 0.15); border-bottom: #d2d2d2 solid 1px; font-size:14px; text-align:left; flex:0 0 auto; padding: 10px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; text-transform: uppercase; &.hierarchy-header { padding-left:20px; &.selected { background-color: #e6f6fb; } } } .hierarchy-header { span{ text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 290px; } } .hierarchy-nav { flex:1; overflow:auto; display: grid; margin-top: 1em; margin-left: 1em; font-size: 12px; padding-top: 1em; } }