2024-01-25 23:24:11 +01:00
|
|
|
import {css} from 'lit';
|
|
|
|
|
|
|
|
export default css`
|
|
|
|
|
|
|
|
.form-control-input {
|
2024-04-11 16:07:00 +02:00
|
|
|
position: relative;
|
2024-04-10 17:47:28 +02:00
|
|
|
min-width: 15em;
|
|
|
|
|
2024-01-25 23:24:11 +01:00
|
|
|
flex: 1;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2024-04-09 19:51:21 +02:00
|
|
|
flex-wrap: nowrap;
|
2024-01-25 23:24:11 +01:00
|
|
|
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);
|
|
|
|
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;
|
2024-04-10 17:47:28 +02:00
|
|
|
min-width: 12em;
|
2024-01-25 23:24:11 +01:00
|
|
|
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;
|
2024-04-09 19:51:21 +02:00
|
|
|
visibility: hidden;
|
2024-01-25 23:24:11 +01:00
|
|
|
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;
|
2024-04-09 19:51:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
:host(:hover) .vfs-path__edit {
|
|
|
|
visibility: visible;
|
2024-01-25 23:24:11 +01:00
|
|
|
}
|
|
|
|
|
2024-04-11 16:07:00 +02:00
|
|
|
.vfs-path__scroll {
|
2024-04-09 19:51:21 +02:00
|
|
|
flex: 1 1 auto;
|
|
|
|
overflow: hidden;
|
2024-04-10 17:47:28 +02:00
|
|
|
min-width: 10em;
|
2024-04-09 19:51:21 +02:00
|
|
|
}
|
|
|
|
|
2024-04-12 18:18:25 +02:00
|
|
|
.vfs-path__overflow .vfs-path__scroll {
|
|
|
|
min-width: 8em;
|
|
|
|
margin-right: 2em;
|
|
|
|
}
|
|
|
|
|
2024-04-11 16:07:00 +02:00
|
|
|
.form-control-input sl-icon-button[name*="caret"] {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
background: var(--sl-input-background-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.form-control-input sl-icon-button[name*="caret"]:last-of-type {
|
|
|
|
right: 2em;
|
|
|
|
}
|
|
|
|
|
|
|
|
:host(:hover) .form-control-input.vfs-path__overflow sl-icon-button[name*="caret"] {
|
|
|
|
display: initial;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Breadcrumb directories */
|
|
|
|
|
|
|
|
sl-breadcrumb {
|
|
|
|
}
|
|
|
|
|
2024-04-09 19:51:21 +02:00
|
|
|
et2-image {
|
|
|
|
flex: none;
|
2024-08-16 11:49:31 +02:00
|
|
|
height: 2em;
|
2024-04-09 19:51:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sl-breadcrumb::part(base) {
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
sl-breadcrumb-item::part(base) {
|
|
|
|
font-size: var(--sl-font-size-medium);
|
|
|
|
}
|
2024-01-25 23:24:11 +01:00
|
|
|
sl-breadcrumb-item::part(label) {
|
|
|
|
color: var(--input-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
sl-breadcrumb-item::part(separator) {
|
|
|
|
color: var(--input-text-color);
|
2024-04-05 23:14:41 +02:00
|
|
|
margin: 0;
|
|
|
|
padding: 0 var(--sl-spacing-2x-small);
|
|
|
|
cursor: pointer;
|
2024-01-25 23:24:11 +01:00
|
|
|
}
|
|
|
|
|
2024-04-09 19:51:21 +02:00
|
|
|
sl-breadcrumb-item:first-of-type {
|
|
|
|
}
|
|
|
|
|
|
|
|
sl-breadcrumb-item:first-of-type::part(separator) {
|
2024-04-11 16:07:00 +02:00
|
|
|
display: initial;
|
2024-04-09 19:51:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
sl-breadcrumb-item:last-of-type::part(separator) {
|
2024-04-11 16:07:00 +02:00
|
|
|
/* Trailing / */
|
|
|
|
display: none;
|
2024-04-09 19:51:21 +02:00
|
|
|
}
|
|
|
|
|
2024-01-25 23:24:11 +01:00
|
|
|
/* Sizes */
|
|
|
|
|
|
|
|
.form-control--medium, .form-control--medium .form-control-input {
|
2024-03-06 00:34:19 +01:00
|
|
|
min-height: calc(var(--sl-input-height-medium) - var(--sl-input-border-width) * 2);
|
|
|
|
padding-top: 0;
|
|
|
|
padding-bottom: 0;
|
2024-01-25 23:24:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.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);
|
|
|
|
}
|
|
|
|
`;
|