UNPKG

@guardian/threads

Version:
290 lines (246 loc) 4.72 kB
.inlineDate { position: relative; display: inline-block; } .inlineDate[data-invalid] input { text-decoration: underline; text-decoration-color: red; text-decoration-style: dashed; } .root { display: flex; flex-wrap: wrap; align-items: center; border-radius: var(--radius-default); padding: var(--sp-tiny) var(--sp-small); background: var(--non-semantic-color-neutral-100); flex-grow: 1; border: 1px solid var(--color-border); } .root input, .root select { display: inline-block; background-color: transparent; border: none; } .root input:focus, .root input:hover { box-shadow: none; } .closer { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; } .holder { position: absolute; height: 0; width: 0; } .holder[data-origin='left'] .popover { float: left; } .popover { background: var(--color-secondary); color: var(--color-secondary-text); z-index: 99; box-shadow: var(--sh-card); font-weight: 500; border-radius: var(--radius-default); float: right; transform-origin: top right; animation: appear 0.1s ease-in-out; contain: content; } @keyframes appear { 0% { transform: scale(0.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } } /* Menu */ .root { list-style: none; padding: 0; margin: 0; width: 100%; } .pop { composes: root; padding: calc(var(--sp-vertical) / 2) 0; } .pop .padding { padding: var(--sp-vertical) calc(var(--sp-base) * 2.5) var(--sp-vertical) calc(var(--sp-base) * 1.5); } .pop .sublabel { margin-right: calc(-1 * var(--sp-base)); } .pop .separator { margin: calc(var(--sp-vertical) / 2) 0; } .root[data-enable-hover] .item:hover { background: var(--color-selected); color: var(--color-selected-text); } /* MenuItem */ .item { display: flex; flex-direction: row; justify-content: space-between; align-items: center; appearance: none; font-size: 1rem; background: none; border: 0; color: currentColor; text-decoration: none; white-space: nowrap; width: 100%; text-align: left; cursor: pointer; box-sizing: border-box; padding: 0; padding-right: calc(var(--sp-vertical) / 1.25); } .item[data-emulate-hover] { background: var(--color-selected); color: var(--color-selected-text); } .item:hover .check { color: currentColor; } .item:focus { outline: none; box-shadow: 0 0 0 2px var(--color-primary-light); } .item[disabled] { pointer-events: none; opacity: 0.5; } .item[data-checked='true'][data-is-default='false'] .label { position: relative; font-weight: 600; } .titleLabel { font-size: var(--fs-large); font-weight: 500; margin: var(--sp-base) 0; } .separator { border: 0; margin: 0; padding: 0; height: 1px; background: var(--color-border); } .flex { display: flex; align-items: center; justify-content: space-between; position: relative; } /* Padding is a seperate element to allow the label's `for` attribute to bleed right to the edge of the item. */ .padding { display: block; width: 100%; cursor: inherit; padding: var(--sp-base); padding-left: calc(var(--sp-vertical) / 1.25); } .check { position: absolute; margin: auto; top: 0; bottom: 0; left: -1.6em; width: 1em; color: var(--non-semantic-color-coral-100); } .icon { width: 1.6em; display: inline-flex; } .sublabel { font-size: var(--fs-small); opacity: 0.8; margin-left: calc(var(--sp-base) * 2); } .nested { list-style: none; padding: 0; margin: 0; } .nested .padding { padding-left: 3em; } .chipWrapper { display: flex; flex-direction: row; width: fit-content; margin-right: var(--sp-base) / 2; height: 100%; } .chipWrapper > button { display: inline-flex; width: 20px; border: none; padding: 0px; flex-direction: row; justify-content: center; vertical-align: top; font-size: inherit; } .chipWrapper[data-staged-for-deletion] { background: red; box-shadow: 0px 0px 5px 2px red; } .chipWrapperButton { background: var(--color-primary); color: var(--color-primary-text); } .chipNegateButton { composes: chipWrapperButton; border-radius: var(--radius-default) 0 0 var(--radius-default); } .chipDeleteButton { composes: chipWrapperButton; border-radius: 0 var(--radius-default) var(--radius-default) 0; } .chipBody { margin-left: 2px; margin-right: 2px; padding: 0 5px 0 5px; background: var(--color-primary); color: var(--color-primary-text); display: flex; flex-direction: row; align-items: center; } .chipBody input, .chipBody select { color: currentColor; } .chipName { font-weight: bold; } .chipName:after { content: ':'; } .inputWrapper { position: relative; display: inline-block; height: 100%; } .inputWrapper:last-child { flex-grow: 1; cursor: text; margin: 0; } /*# sourceMappingURL=/sandbox.f69400ca.css.map */