@limetech/lime-elements
Version:
842 lines (805 loc) • 25.8 kB
CSS
@charset "UTF-8";
/*
* This file is imported into every component!
*
* Nothing in this file may output any CSS
* without being explicitly called by outside code.
*/
/**
* Note! This file is exported to `dist/scss/` in the published
* node module, for consumer projects to import.
* That means this file cannot import from any file that isn't
* also exported, keeping the same relative path.
*
* Or, just don't import anything, that works too.
*/
/**
* This can be used on a trigger element that opens a dropdown menu or a popover.
*/
/**
* This mixin will mask out the content that is close to
* the edges of a scrollable area.
* - If the scrollable content has `overflow-y`, use `vertically`
* as an argument for `$direction`.
- If the scrollable content has `overflow-x`, use `horizontally`
* as an argument for `$direction`.
*
* For the visual effect to work smoothly, we need to make sure that
* the size of the fade-out edge effect is the same as the
* internal paddings of the scrollable area. Otherwise, content of a
* scrollable area that does not have a padding will fade out before
* any scrolling has been done.
* This is why this mixin already adds paddings, which automatically
* default to the size of the fade-out effect.
* This size defaults to `1rem`, but to override the size use
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
* when `vertically` argument is set, and use
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
* when `horizontally` argument is set.
* Of course you can also programmatically increase and decrease the
* size of these variables for each edge, based on the amount of
* scrolling that has been done by the user. In this case, make sure
* to add a custom padding where the mixin is used, to override
* the paddings that are automatically added by the mixin in the
* compiled CSS code.
*/
/**
* This mixin will add an animated underline to the bottom of an `a` elements.
* Note that you may need to add `all: unset;` –depending on your use case–
* before using this mixin.
*/
/**
* This mixin creates a cross-browser font stack.
* - `sans-serif` can be used for the UI of the components.
* - `monospace` can be used for code.
*
* ⚠️ If we change the font stacks, we need to update
* 1. the consumer documentation in `README.md`, and
* 2. the CSS variables of `--kompendium-example-font-family`
* in the `<style>` tag of `index.html`.
*/
/**
* This mixin is a hack, using old CSS syntax
* to enable you to truncate a piece of text,
* after a certain number of lines.
*/
/**
* This mixin will add a chessboard background pattern,
* typically used to visualize transparency.
*/
/**
* Make a container resizable by the user.
* This is used in the documentations and examples
* of some components, to demonstrate how the component
* behaves in a resizable container.
*/
/**
* The breakpoints below are used to create responsive designs
* in Lime's products. Therefore, they are here to get distributed
* to all components in other private repos, which rely on this `mixins`
* file, to create consistent styles.
*
* :::important
* In very rare cases you should used media queries!
* Nowadays, there are many better ways of achieving responsive design
* without media queries. For example, using CSS Grid, Flexbox, and their features.
* :::
*/
/**
* Media query mixins for responsive design based on screen width.
* Note that these mixins do not detect the device type!
*/
.mdc-touch-target-wrapper {
display: inline;
}
.mdc-deprecated-chip-trailing-action__touch {
position: absolute;
top: 50%;
height: 48px;
/* @noflip */ /*rtl:ignore*/
left: 50%;
width: 48px;
transform: translate(-50%, -50%);
}
.mdc-deprecated-chip-trailing-action {
border: none;
display: inline-flex;
position: relative;
align-items: center;
justify-content: center;
box-sizing: border-box;
padding: 0;
outline: none;
cursor: pointer;
-webkit-appearance: none;
background: none;
}
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__icon {
height: 18px;
width: 18px;
font-size: 18px;
}
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action {
color: #000;
/* @alternate */
color: var(--mdc-theme-on-surface, #000);
}
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__touch {
width: 26px;
}
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__icon {
fill: currentColor;
color: inherit;
}
@keyframes mdc-ripple-fg-radius-in {
from {
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);
}
to {
transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));
}
}
@keyframes mdc-ripple-fg-opacity-in {
from {
animation-timing-function: linear;
opacity: 0;
}
to {
opacity: var(--mdc-ripple-fg-opacity, 0);
}
}
@keyframes mdc-ripple-fg-opacity-out {
from {
animation-timing-function: linear;
opacity: var(--mdc-ripple-fg-opacity, 0);
}
to {
opacity: 0;
}
}
.mdc-deprecated-chip-trailing-action {
--mdc-ripple-fg-size: 0;
--mdc-ripple-left: 0;
--mdc-ripple-top: 0;
--mdc-ripple-fg-scale: 1;
--mdc-ripple-fg-translate-end: 0;
--mdc-ripple-fg-translate-start: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
will-change: transform, opacity;
}
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::before,
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::after {
position: absolute;
border-radius: 50%;
opacity: 0;
pointer-events: none;
content: "";
}
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::before {
transition: opacity 15ms linear, background-color 15ms linear;
z-index: 1;
/* @alternate */
z-index: var(--mdc-ripple-z-index, 1);
}
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::after {
z-index: 0;
/* @alternate */
z-index: var(--mdc-ripple-z-index, 0);
}
.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded .mdc-deprecated-chip-trailing-action__ripple::before {
transform: scale(var(--mdc-ripple-fg-scale, 1));
}
.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded .mdc-deprecated-chip-trailing-action__ripple::after {
top: 0;
/* @noflip */ /*rtl:ignore*/
left: 0;
transform: scale(0);
transform-origin: center center;
}
.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded--unbounded .mdc-deprecated-chip-trailing-action__ripple::after {
top: var(--mdc-ripple-top, 0);
/* @noflip */ /*rtl:ignore*/
left: var(--mdc-ripple-left, 0);
}
.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded--foreground-activation .mdc-deprecated-chip-trailing-action__ripple::after {
animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;
}
.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded--foreground-deactivation .mdc-deprecated-chip-trailing-action__ripple::after {
animation: mdc-ripple-fg-opacity-out 150ms;
transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));
}
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::before,
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::after {
top: calc(50% - 50%);
/* @noflip */ /*rtl:ignore*/
left: calc(50% - 50%);
width: 100%;
height: 100%;
}
.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded .mdc-deprecated-chip-trailing-action__ripple::before,
.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded .mdc-deprecated-chip-trailing-action__ripple::after {
top: var(--mdc-ripple-top, calc(50% - 50%));
/* @noflip */ /*rtl:ignore*/
left: var(--mdc-ripple-left, calc(50% - 50%));
width: var(--mdc-ripple-fg-size, 100%);
height: var(--mdc-ripple-fg-size, 100%);
}
.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded .mdc-deprecated-chip-trailing-action__ripple::after {
width: var(--mdc-ripple-fg-size, 100%);
height: var(--mdc-ripple-fg-size, 100%);
}
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::before, .mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple::after {
background-color: #000;
/* @alternate */
background-color: var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000));
}
.mdc-deprecated-chip-trailing-action:hover .mdc-deprecated-chip-trailing-action__ripple::before, .mdc-deprecated-chip-trailing-action.mdc-ripple-surface--hover .mdc-deprecated-chip-trailing-action__ripple::before {
opacity: 0.04;
/* @alternate */
opacity: var(--mdc-ripple-hover-opacity, 0.04);
}
.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded--background-focused .mdc-deprecated-chip-trailing-action__ripple::before, .mdc-deprecated-chip-trailing-action:not(.mdc-ripple-upgraded):focus .mdc-deprecated-chip-trailing-action__ripple::before {
transition-duration: 75ms;
opacity: 0.12;
/* @alternate */
opacity: var(--mdc-ripple-focus-opacity, 0.12);
}
.mdc-deprecated-chip-trailing-action:not(.mdc-ripple-upgraded) .mdc-deprecated-chip-trailing-action__ripple::after {
transition: opacity 150ms linear;
}
.mdc-deprecated-chip-trailing-action:not(.mdc-ripple-upgraded):active .mdc-deprecated-chip-trailing-action__ripple::after {
transition-duration: 75ms;
opacity: 0.12;
/* @alternate */
opacity: var(--mdc-ripple-press-opacity, 0.12);
}
.mdc-deprecated-chip-trailing-action.mdc-ripple-upgraded {
--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);
}
.mdc-deprecated-chip-trailing-action .mdc-deprecated-chip-trailing-action__ripple {
position: absolute;
box-sizing: content-box;
width: 100%;
height: 100%;
overflow: hidden;
}
.mdc-chip__icon--leading {
color: rgba(0, 0, 0, 0.54);
}
.mdc-deprecated-chip-trailing-action {
color: #000;
}
.mdc-chip__icon--trailing {
color: rgba(0, 0, 0, 0.54);
}
.mdc-chip__icon--trailing:hover {
color: rgba(0, 0, 0, 0.62);
}
.mdc-chip__icon--trailing:focus {
color: rgba(0, 0, 0, 0.87);
}
.mdc-chip__icon.mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden) {
width: 20px;
height: 20px;
font-size: 20px;
}
.mdc-deprecated-chip-trailing-action__icon {
height: 18px;
width: 18px;
font-size: 18px;
}
.mdc-chip__icon.mdc-chip__icon--trailing {
width: 18px;
height: 18px;
font-size: 18px;
}
.mdc-deprecated-chip-trailing-action {
/* @noflip */ /*rtl:ignore*/
margin-left: 4px;
/* @noflip */ /*rtl:ignore*/
margin-right: -4px;
}
[dir=rtl] .mdc-deprecated-chip-trailing-action, .mdc-deprecated-chip-trailing-action[dir=rtl] {
/*rtl:begin:ignore*/
/* @noflip */ /*rtl:ignore*/
margin-left: -4px;
/* @noflip */ /*rtl:ignore*/
margin-right: 4px;
/*rtl:end:ignore*/
}
.mdc-chip__icon--trailing {
/* @noflip */ /*rtl:ignore*/
margin-left: 4px;
/* @noflip */ /*rtl:ignore*/
margin-right: -4px;
}
[dir=rtl] .mdc-chip__icon--trailing, .mdc-chip__icon--trailing[dir=rtl] {
/*rtl:begin:ignore*/
/* @noflip */ /*rtl:ignore*/
margin-left: -4px;
/* @noflip */ /*rtl:ignore*/
margin-right: 4px;
/*rtl:end:ignore*/
}
.mdc-elevation-overlay {
position: absolute;
border-radius: inherit;
pointer-events: none;
opacity: 0;
/* @alternate */
opacity: var(--mdc-elevation-overlay-opacity, 0);
transition: opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);
background-color: #fff;
/* @alternate */
background-color: var(--mdc-elevation-overlay-color, #fff);
}
.mdc-chip {
border-radius: 16px;
background-color: #e0e0e0;
color: rgba(0, 0, 0, 0.87);
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
font-family: Roboto, sans-serif;
/* @alternate */
font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));
font-size: 0.875rem;
/* @alternate */
font-size: var(--mdc-typography-body2-font-size, 0.875rem);
line-height: 1.25rem;
/* @alternate */
line-height: var(--mdc-typography-body2-line-height, 1.25rem);
font-weight: 400;
/* @alternate */
font-weight: var(--mdc-typography-body2-font-weight, 400);
letter-spacing: 0.0178571429em;
/* @alternate */
letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);
text-decoration: inherit;
/* @alternate */
text-decoration: var(--mdc-typography-body2-text-decoration, inherit);
text-transform: inherit;
/* @alternate */
text-transform: var(--mdc-typography-body2-text-transform, inherit);
height: 32px;
/* @alternate */
position: relative;
display: inline-flex;
align-items: center;
box-sizing: border-box;
padding: 0 12px;
border-width: 0;
outline: none;
cursor: pointer;
-webkit-appearance: none;
}
.mdc-chip .mdc-chip__ripple {
border-radius: 16px;
}
.mdc-chip:hover {
color: rgba(0, 0, 0, 0.87);
}
.mdc-chip.mdc-chip--selected .mdc-chip__checkmark,
.mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden) {
/* @noflip */ /*rtl:ignore*/
margin-left: -4px;
/* @noflip */ /*rtl:ignore*/
margin-right: 4px;
}
[dir=rtl] .mdc-chip.mdc-chip--selected .mdc-chip__checkmark, [dir=rtl] .mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden), .mdc-chip.mdc-chip--selected .mdc-chip__checkmark[dir=rtl], .mdc-chip .mdc-chip__icon--leading:not(.mdc-chip__icon--leading-hidden)[dir=rtl] {
/*rtl:begin:ignore*/
/* @noflip */ /*rtl:ignore*/
margin-left: 4px;
/* @noflip */ /*rtl:ignore*/
margin-right: -4px;
/*rtl:end:ignore*/
}
.mdc-chip .mdc-elevation-overlay {
width: 100%;
height: 100%;
top: 0;
/* @noflip */ /*rtl:ignore*/
left: 0;
}
.mdc-chip::-moz-focus-inner {
padding: 0;
border: 0;
}
.mdc-chip:hover {
color: #000;
/* @alternate */
color: var(--mdc-theme-on-surface, #000);
}
.mdc-chip .mdc-chip__touch {
position: absolute;
top: 50%;
height: 48px;
left: 0;
right: 0;
transform: translateY(-50%);
}
.mdc-chip--exit {
transition: opacity 75ms cubic-bezier(0.4, 0, 0.2, 1), width 150ms cubic-bezier(0, 0, 0.2, 1), padding 100ms linear, margin 100ms linear;
opacity: 0;
}
.mdc-chip__overflow {
text-overflow: ellipsis;
overflow: hidden;
}
.mdc-chip__text {
white-space: nowrap;
}
.mdc-chip__icon {
border-radius: 50%;
outline: none;
vertical-align: middle;
}
.mdc-chip__checkmark {
height: 20px;
}
.mdc-chip__checkmark-path {
transition: stroke-dashoffset 150ms 50ms cubic-bezier(0.4, 0, 0.6, 1);
stroke-width: 2px;
stroke-dashoffset: 29.7833385;
stroke-dasharray: 29.7833385;
}
.mdc-chip__primary-action:focus {
outline: none;
}
.mdc-chip--selected .mdc-chip__checkmark-path {
stroke-dashoffset: 0;
}
.mdc-chip__icon--leading,
.mdc-chip__icon--trailing {
position: relative;
}
.mdc-chip-set--choice .mdc-chip.mdc-chip--selected {
color: #6200ee;
/* @alternate */
color: var(--mdc-theme-primary, #6200ee);
}
.mdc-chip-set--choice .mdc-chip.mdc-chip--selected .mdc-chip__icon--leading {
color: rgba(98, 0, 238, 0.54);
}
.mdc-chip-set--choice .mdc-chip.mdc-chip--selected:hover {
color: #6200ee;
/* @alternate */
color: var(--mdc-theme-primary, #6200ee);
}
.mdc-chip-set--choice .mdc-chip .mdc-chip__checkmark-path {
stroke: #6200ee;
/* @alternate */
stroke: var(--mdc-theme-primary, #6200ee);
}
.mdc-chip-set--choice .mdc-chip--selected {
background-color: #fff;
/* @alternate */
background-color: var(--mdc-theme-surface, #fff);
}
.mdc-chip__checkmark-svg {
width: 0;
height: 20px;
transition: width 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mdc-chip--selected .mdc-chip__checkmark-svg {
width: 20px;
}
.mdc-chip-set--filter .mdc-chip__icon--leading {
transition: opacity 75ms linear;
transition-delay: -50ms;
opacity: 1;
}
.mdc-chip-set--filter .mdc-chip__icon--leading + .mdc-chip__checkmark {
transition: opacity 75ms linear;
transition-delay: 80ms;
opacity: 0;
}
.mdc-chip-set--filter .mdc-chip__icon--leading + .mdc-chip__checkmark .mdc-chip__checkmark-svg {
transition: width 0ms;
}
.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading {
opacity: 0;
}
.mdc-chip-set--filter .mdc-chip--selected .mdc-chip__icon--leading + .mdc-chip__checkmark {
width: 0;
opacity: 1;
}
.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading {
width: 0;
opacity: 0;
}
.mdc-chip-set--filter .mdc-chip__icon--leading-hidden.mdc-chip__icon--leading + .mdc-chip__checkmark {
width: 20px;
}
.mdc-chip {
--mdc-ripple-fg-size: 0;
--mdc-ripple-left: 0;
--mdc-ripple-top: 0;
--mdc-ripple-fg-scale: 1;
--mdc-ripple-fg-translate-end: 0;
--mdc-ripple-fg-translate-start: 0;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
will-change: transform, opacity;
}
.mdc-chip .mdc-chip__ripple::before,
.mdc-chip .mdc-chip__ripple::after {
position: absolute;
border-radius: 50%;
opacity: 0;
pointer-events: none;
content: "";
}
.mdc-chip .mdc-chip__ripple::before {
transition: opacity 15ms linear, background-color 15ms linear;
z-index: 1;
/* @alternate */
z-index: var(--mdc-ripple-z-index, 1);
}
.mdc-chip .mdc-chip__ripple::after {
z-index: 0;
/* @alternate */
z-index: var(--mdc-ripple-z-index, 0);
}
.mdc-chip.mdc-ripple-upgraded .mdc-chip__ripple::before {
transform: scale(var(--mdc-ripple-fg-scale, 1));
}
.mdc-chip.mdc-ripple-upgraded .mdc-chip__ripple::after {
top: 0;
/* @noflip */ /*rtl:ignore*/
left: 0;
transform: scale(0);
transform-origin: center center;
}
.mdc-chip.mdc-ripple-upgraded--unbounded .mdc-chip__ripple::after {
top: var(--mdc-ripple-top, 0);
/* @noflip */ /*rtl:ignore*/
left: var(--mdc-ripple-left, 0);
}
.mdc-chip.mdc-ripple-upgraded--foreground-activation .mdc-chip__ripple::after {
animation: mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards;
}
.mdc-chip.mdc-ripple-upgraded--foreground-deactivation .mdc-chip__ripple::after {
animation: mdc-ripple-fg-opacity-out 150ms;
transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));
}
.mdc-chip .mdc-chip__ripple::before,
.mdc-chip .mdc-chip__ripple::after {
top: calc(50% - 100%);
/* @noflip */ /*rtl:ignore*/
left: calc(50% - 100%);
width: 200%;
height: 200%;
}
.mdc-chip.mdc-ripple-upgraded .mdc-chip__ripple::after {
width: var(--mdc-ripple-fg-size, 100%);
height: var(--mdc-ripple-fg-size, 100%);
}
.mdc-chip .mdc-chip__ripple::before, .mdc-chip .mdc-chip__ripple::after {
background-color: rgba(0, 0, 0, 0.87);
/* @alternate */
background-color: var(--mdc-ripple-color, rgba(0, 0, 0, 0.87));
}
.mdc-chip:hover .mdc-chip__ripple::before, .mdc-chip.mdc-ripple-surface--hover .mdc-chip__ripple::before {
opacity: 0.04;
/* @alternate */
opacity: var(--mdc-ripple-hover-opacity, 0.04);
}
.mdc-chip.mdc-ripple-upgraded--background-focused .mdc-chip__ripple::before, .mdc-chip.mdc-ripple-upgraded:focus-within .mdc-chip__ripple::before, .mdc-chip:not(.mdc-ripple-upgraded):focus .mdc-chip__ripple::before, .mdc-chip:not(.mdc-ripple-upgraded):focus-within .mdc-chip__ripple::before {
transition-duration: 75ms;
opacity: 0.12;
/* @alternate */
opacity: var(--mdc-ripple-focus-opacity, 0.12);
}
.mdc-chip:not(.mdc-ripple-upgraded) .mdc-chip__ripple::after {
transition: opacity 150ms linear;
}
.mdc-chip:not(.mdc-ripple-upgraded):active .mdc-chip__ripple::after {
transition-duration: 75ms;
opacity: 0.12;
/* @alternate */
opacity: var(--mdc-ripple-press-opacity, 0.12);
}
.mdc-chip.mdc-ripple-upgraded {
--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);
}
.mdc-chip .mdc-chip__ripple {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow: hidden;
}
.mdc-chip-set--choice .mdc-chip.mdc-chip--selected .mdc-chip__ripple::before {
opacity: 0.08;
/* @alternate */
opacity: var(--mdc-ripple-selected-opacity, 0.08);
}
.mdc-chip-set--choice .mdc-chip.mdc-chip--selected .mdc-chip__ripple::before, .mdc-chip-set--choice .mdc-chip.mdc-chip--selected .mdc-chip__ripple::after {
background-color: #6200ee;
/* @alternate */
background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));
}
.mdc-chip-set--choice .mdc-chip.mdc-chip--selected:hover .mdc-chip__ripple::before, .mdc-chip-set--choice .mdc-chip.mdc-chip--selected.mdc-ripple-surface--hover .mdc-chip__ripple::before {
opacity: 0.12;
/* @alternate */
opacity: var(--mdc-ripple-hover-opacity, 0.12);
}
.mdc-chip-set--choice .mdc-chip.mdc-chip--selected.mdc-ripple-upgraded--background-focused .mdc-chip__ripple::before, .mdc-chip-set--choice .mdc-chip.mdc-chip--selected.mdc-ripple-upgraded:focus-within .mdc-chip__ripple::before, .mdc-chip-set--choice .mdc-chip.mdc-chip--selected:not(.mdc-ripple-upgraded):focus .mdc-chip__ripple::before, .mdc-chip-set--choice .mdc-chip.mdc-chip--selected:not(.mdc-ripple-upgraded):focus-within .mdc-chip__ripple::before {
transition-duration: 75ms;
opacity: 0.2;
/* @alternate */
opacity: var(--mdc-ripple-focus-opacity, 0.2);
}
.mdc-chip-set--choice .mdc-chip.mdc-chip--selected:not(.mdc-ripple-upgraded) .mdc-chip__ripple::after {
transition: opacity 150ms linear;
}
.mdc-chip-set--choice .mdc-chip.mdc-chip--selected:not(.mdc-ripple-upgraded):active .mdc-chip__ripple::after {
transition-duration: 75ms;
opacity: 0.2;
/* @alternate */
opacity: var(--mdc-ripple-press-opacity, 0.2);
}
.mdc-chip-set--choice .mdc-chip.mdc-chip--selected.mdc-ripple-upgraded {
--mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.2);
}
@keyframes mdc-chip-entry {
from {
transform: scale(0.8);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}
}
.mdc-chip-set {
padding: 4px;
display: flex;
flex-wrap: wrap;
box-sizing: border-box;
}
.mdc-chip-set .mdc-chip {
margin: 4px;
}
.mdc-chip-set .mdc-chip--touch {
margin-top: 8px;
margin-bottom: 8px;
}
.mdc-chip-set--input .mdc-chip {
animation: mdc-chip-entry 100ms cubic-bezier(0, 0, 0.2, 1);
}
/**
* @prop --button-group-background-color: Background color of the component. Defaults to `--contrast-400`
*/
.mdc-chip {
font-family: inherit;
}
.mdc-chip {
transition: color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);
cursor: pointer;
color: var(--limel-theme-on-surface-color);
background-color: transparent;
max-width: 100%;
min-width: 2rem;
padding: 0 0.0625rem;
display: inline-grid;
grid-auto-flow: column;
margin: 0.125rem ;
font-size: var(--limel-theme-default-font-size);
}
.mdc-chip:hover, .mdc-chip:focus, .mdc-chip:focus-visible {
will-change: color, background-color, box-shadow, transform;
}
.mdc-chip:hover, .mdc-chip:focus-visible {
transform: translate3d(0, -0.04rem, 0);
color: var(--limel-theme-on-surface-color);
background-color: var(--lime-elevated-surface-background-color);
}
.mdc-chip:hover {
box-shadow: var(--button-shadow-hovered);
}
.mdc-chip:active {
--limel-clickable-transform-timing-function: cubic-bezier(
0.83,
-0.15,
0.49,
1.16
);
transform: translate3d(0, 0.05rem, 0);
background-color: var(--limel-theme-surface-background-color);
box-shadow: var(--button-shadow-inset-pressed);
}
.mdc-chip:hover, .mdc-chip:active {
--limel-clickable-transition-speed: 0.2s;
--limel-clickable-transform-speed: 0.16s;
}
.mdc-chip:not(:last-child):after {
content: "";
display: block;
height: 1rem;
width: 0.125rem;
border-radius: 0.25rem;
background-color: var(--button-group-text-color, rgb(var(--contrast-1200)));
opacity: 0.1;
position: absolute;
right: -0.1875rem;
top: 0;
bottom: 0;
margin: auto;
}
.mdc-chip label {
cursor: pointer;
transition: color 0.2s ease;
display: flex;
align-items: center;
}
.mdc-chip label:has(> limel-badge) .mdc-chip__text {
padding-right: 0.25rem;
}
.mdc-chip input[type=radio] {
width: 0;
position: absolute;
opacity: 0;
}
.mdc-chip input[type=radio]:focus-visible + label:after {
content: "";
display: block;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
border-radius: 3.75rem;
box-shadow: var(--shadow-depth-8-focused);
z-index: 1;
}
.mdc-chip span[role=gridcell] {
min-width: 0;
}
.mdc-chip span[role=gridcell]:focus-within {
outline: none;
color: var(--lime-primary-color, var(--limel-theme-primary-color));
}
.mdc-chip span[role=gridcell]:only-child .mdc-chip__text {
padding-left: 0.75rem;
}
.mdc-chip span[role=gridcell]:first-child .mdc-chip__text {
padding-left: 0.75rem;
}
.mdc-chip.mdc-chip--selected {
background-color: var(--limel-theme-surface-background-color);
box-shadow: var(--button-shadow-inset);
}
.mdc-chip.mdc-chip--selected:active {
box-shadow: var(--button-shadow-inset-pressed);
}
.mdc-chip__text {
font-size: var(--limel-theme-default-small-font-size);
overflow: hidden;
text-overflow: ellipsis;
display: block;
padding: 0 0.75rem 0 0.25rem;
}
.mdc-chip-set {
align-items: center;
border-radius: 3.75rem;
background-color: var(--button-group-background-color, rgb(var(--contrast-400)));
padding: 0;
width: max-content;
max-width: 100%;
flex-wrap: nowrap;
}
.mdc-chip-set.disabled {
cursor: not-allowed;
opacity: 0.4;
pointer-events: none;
}
limel-badge {
margin-right: 0.25rem;
pointer-events: none;
}
.mdc-chip:not(.mdc-chip--selected) {
--badge-background-color: rgb(var(--contrast-200));
}