Files
tuliprox/frontend/scss/app/components/_form.scss
T
euzuandGitHub 66915a306d Feature/rbac (#656)
* RBAC implementation
* Schedules config edit mode
2026-03-20 15:31:19 +01:00

113 lines
2.0 KiB
SCSS

@use '../../size';
@mixin tp-field-label-base($flex: null) {
padding-left: 2px;
font-weight: bold;
white-space: nowrap;
vertical-align: middle;
color: var(--text-color);
font-size: 1.1rem;
@if $flex {
flex: $flex;
}
}
.tp__form-field {
display: flex;
gap: var(--gap-default);
box-sizing: border-box;
min-width: size.$config-field-min-width;
&__list,
&__text {
display: flex;
flex-flow: column;
gap: var(--gap-default);
}
&__value {
display: flex;
flex-flow: row nowrap;
align-items: center;
flex: 1 1 auto;
background-color: var(--input-background-color);
color: var(--modest-text-color);
padding: var(--padding-small) var(--padding-mini);
min-height: 2.5rem;
max-height: 2.5rem;
overflow: hidden;
text-overflow: ellipsis;
border: 1px solid var(--input-border-color);
border-radius: var(--border-radius);
box-sizing: border-box;
white-space: nowrap;
overflow-x: auto;
scrollbar-width: none;
}
&__bool {
flex-flow: row;
align-items: center;
}
label {
@include tp-field-label-base;
}
}
.tp__form-field__label {
@include tp-field-label-base;
}
.tp__field-label {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--gap-mini);
label {
@include tp-field-label-base(1);
}
&__help {
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.5rem;
height: 1.5rem;
padding: 0;
border: none;
background: transparent;
color: var(--modest-text-color);
fill: currentColor;
cursor: pointer;
border-radius: 50%;
}
&__help:hover {
background: var(--menu-background-active-color);
color: var(--text-color);
}
}
.tp__field-explanation-dialog {
display: flex;
flex-flow: column;
gap: var(--gap-large);
min-width: min(32rem, 88vw);
&__header {
h2 {
color: var(--modest-text-color);
margin: 0;
}
}
&__body {
p {
white-space: pre-wrap;
}
}
}