UNPKG

@eclipse-scout/core

Version:
147 lines (122 loc) 3.1 kB
/* * Copyright (c) 2010, 2025 BSI Business Systems Integration AG * * This program and the accompanying materials are made * available under the terms of the Eclipse Public License 2.0 * which is available at https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 */ .simple-tab { position: relative; display: inline-block; vertical-align: top; padding: @simple-tab-padding; background-color: @simple-tab-background-color; cursor: pointer; width: 120px; min-width: 60px; .position-top > &, .position-bottom > & { border-right: 1px solid @border-color; } .position-right > &, .position-left > & { border-bottom: 1px solid @border-color; min-width: 120px; min-height: @desktop-header-height; } & > .title-line { display: flex; align-items: center; overflow: hidden; .closable& { margin-right: 20px; } & > .icon-container { display: flex; // Makes container as height as icon inside which improves alignment (title-line has flex box layout) & > .icon { margin-right: 6px; &.font-icon { font-size: 14px; } } } & > .title { #scout.overflow-ellipsis-nowrap(); display: inline-block; vertical-align: top; } & > .status-container { position: relative; display: inline-flex; align-items: center; margin-left: 4px; flex: none; max-width: 75%; // leave a little space for title and icon color: @status-info-color; & > .status { margin-left: 5px; #scout.overflow-ellipsis-nowrap(); // do not grow or shrink icons &.save-needer, &.icon { flex: none; } &.message { display: none; } &.notification-badge { display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; min-width: 16px; min-height: 16px; border-radius: 8px; font-weight: @font-weight-normal; font-size: @font-size-small; background: @simple-tab-status-notification-badge-background-color; color: @simple-tab-status-notification-badge-color; & > .text { #scout.overflow-ellipsis-nowrap(); } } } } } & > .closer { position: absolute; top: 0; right: 0; margin: @simple-tab-padding; display: none; // @formatter:off :hover&, // @formatter:on .closable.selected& { display: inline-block; } } & > .sub-title { #scout.overflow-ellipsis-nowrap(); padding-top: 2px; color: @simple-tab-sub-title-color; } &:hover > .title-line > .title { color: @hover-color; } &:active > .title-line > .title { color: @active-color; } &.selected { cursor: default; background-color: @simple-tab-selected-background-color; & > .title-line > .title { color: @simple-tab-selected-color; } } } .simple-tab > .key-box { bottom: 4px; }