UNPKG

@eclipse-scout/core

Version:
71 lines (54 loc) 1.69 kB
/* * Copyright (c) 2010, 2023 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 */ .string-field { &.multiline > label.top { /* NOSONAR overqualify by purpose to make it more specific than default rule in FormField.less */ padding-bottom: @top-label-border-padding-bottom; } & > .field { &.has-inner-alignment { &.halign-left { text-align: left; } &.halign-center { text-align: center; } &.halign-right { text-align: right; } } } /* adjust paddings in case of both icons (icon and clear-icon) are visible */ &.has-icon.clearable-always.has-text:not(.loading):not(.disabled):not(.compact), &.has-icon.clearable-focused.has-text.focused:not(.loading):not(.disabled):not(.compact) { & > .clear-icon { margin-right: 0; } & > input { padding-right: @text-field-icon-outer-width + @text-field-icon-size + @text-field-icon-margin-x; &.alternative { padding-right: @text-field-alternative-icon-outer-width * 2; } } &.halign-right > input { padding-left: @text-field-icon-outer-width; padding-right: @text-field-icon-outer-width; &.alternative { padding-left: @text-field-alternative-icon-outer-width; padding-right: @text-field-alternative-icon-outer-width; } } & > .icon { display: flex; } } &.has-icon > .icon::before { content: @icon-arrow-right-bold; } }