@stories-js/core
Version:
Stories web components to build stories
67 lines (59 loc) • 1.17 kB
CSS
:host-context(.item) {
/**
* @prop --color: Color of the label
*/
--color: initial;
display: block;
color: var(--color);
font-family: var(--stories-font-family, inherit);
font-size: inherit;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
box-sizing: border-box;
}
:host(.stories-color) {
color: var(--stories-color-base);
}
:host(.stories-text-wrap),
:host([text-wrap]) {
white-space: normal;
}
:host-context(.item-interactive-disabled:not(.item-multiple-inputs)) {
cursor: default;
opacity: 0.3;
pointer-events: none;
}
:host-context(.item-input) {
flex: initial;
max-width: 200px;
pointer-events: none;
}
:host-context(.item-textarea) {
align-self: baseline;
}
:host(.label-fixed) {
flex: 0 0 100px;
width: 100px;
min-width: 100px;
max-width: 200px;
}
:host(.label-stacked),
:host(.label-floating) {
margin-bottom: 0;
align-self: stretch;
width: auto;
max-width: 100%;
}
:host(.label-no-animate.label-floating) {
transition: none;
}
::slotted(*) h1,
::slotted(*) h2,
::slotted(*) h3,
::slotted(*) h4,
::slotted(*) h5,
::slotted(*) h6 {
text-overflow: inherit;
overflow: inherit;
}