UNPKG

chayns-components

Version:

A set of beautiful React components for developing chayns® applications.

94 lines 2 kB
.button--filter { padding: 3px 14px; position: relative; margin: 5px 10px 5px 0; user-select: none; box-shadow: none; cursor: pointer; white-space: nowrap; } .button--filter .label { position: relative; z-index: 5; } .button--filter .label b:not(:first-child) { margin-left: 0.25em; } .button--filter--small { padding: 2px 10px 1px 10px; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; } .button--filter::after { content: ""; border-radius: 100px; position: absolute; top: 0; right: 0; left: 0; bottom: 0; opacity: 0; z-index: 1; background-color: currentColor; border: 1px solid currentColor; transition: opacity 0.08s; } .button--filter::before { content: ""; border-radius: 100px; position: absolute; top: 0; right: 0; left: 0; bottom: 0; opacity: 0.4; z-index: 10; border: 1px solid currentColor; transition: opacity 0.08s; } .button--filter--rectangular::before, .button--filter--rectangular::after { border-radius: 3px; } .button--filter--disabled { opacity: 0.5; cursor: default; pointer-events: none; } .button--filter:hover::after { opacity: 0.2; } .button--filter:hover::before { opacity: 0.45; } .button--filter.button--filter--active::after { opacity: 0.4; } .button--filter.button--filter--active::before { opacity: 0; } .button--filter__icon:not(:last-child) { margin-right: 10px; } .button--filter__input { display: none; } .chayns-color-mode--1 .button--filter:not(.chayns__color--headline).button--filter--active::after { opacity: 1; } .chayns-color-mode--1 .button--filter:not(.chayns__color--headline).button--filter--active::before { opacity: 0; } .chayns--mobile .button--filter:hover::after { opacity: 0; } .chayns--mobile .button--filter:hover::before { opacity: 0.4; } .chayns--mobile .button--filter.button--filter--active:hover::after { opacity: 0.4; } .chayns--mobile .button--filter.button--filter--active:hover::before { opacity: 0; }