egroupware_official/api/js/etemplate/Et2Vfs/Et2VfsPath.styles.ts
2024-03-05 16:34:19 -07:00

97 lines
2.1 KiB
TypeScript

import {css} from 'lit';
export default css`
.form-control-input {
flex: 1;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.1rem 0.5rem;
background-color: var(--sl-input-background-color);
border: solid var(--sl-input-border-width) var(--sl-input-border-color);
border-radius: var(--sl-input-border-radius-medium);
font-size: var(--sl-input-font-size-medium);
overflow-y: auto;
padding-block: 0;
padding-inline: var(--sl-input-spacing-medium);
padding-top: 0.1rem;
padding-bottom: 0.1rem;
transition: var(--sl-transition-fast) color, var(--sl-transition-fast) border, var(--sl-transition-fast) box-shadow,
var(--sl-transition-fast) background-color;
}
.vfs-path__value-input {
flex: 1 1 auto;
order: 10;
min-width: 7em;
border: none;
outline: none;
color: var(--input-text-color);
font-size: var(--sl-input-font-size-medium);
padding-block: 0;
padding-inline: var(--sl-input-spacing-medium);
}
/* Edit button */
.vfs-path__edit {
flex-grow: 0;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: inherit;
color: var(--sl-input-icon-color);
border: none;
background: none;
padding: 0;
transition: var(--sl-transition-fast) color;
cursor: pointer;
margin-left: auto;
}
/* Breadcrumb directories */
sl-breadcrumb-item::part(label) {
color: var(--input-text-color);
}
sl-breadcrumb-item::part(separator) {
color: var(--input-text-color);
margin: 0 var(--sl-spacing-2x-small);
}
/* Sizes */
.form-control--medium, .form-control--medium .form-control-input {
min-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
padding-top: 0;
padding-bottom: 0;
}
.form-control--medium .vfs-path__edit {
margin-inline-start: var(--sl-input-spacing-medium);
}
/* Readonly */
:host([readonly]) .form-control-input {
border: none;
box-shadow: none;
}
.vfs-path__readonly sl-breadcrumb-item::part(label) {
cursor: initial;
}
.vfs-path__disabled sl-breadcrumb-item::part(label) {
color: var(--sl-input-color-disabled);
}
`;