Files
outdoor-tour-pwa/src/css/ChargedButton.module.css
T

63 lines
1.3 KiB
CSS

.charged-button {
position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 0px;
min-width: 220px;
height: 3.5rem;
border: none;
overflow: hidden;
outline: none;
isolation: isolate;
cursor: pointer;
background: transparent;
color: #FFF;
transition: box-shadow 120ms ease, transform 120ms ease, 150ms ease-out filter, 150ms ease-out color;
-webkit-tap-highlight-color: transparent;
user-select: none;
-webkit-user-select: none;
--shadow: drop-shadow(0px 0px 4px #000a);
filter: var(--shadow);
}
.charged-button.button-disabled {
filter: grayscale(0.75) var(--shadow);
cursor: not-allowed;
color: black;
}
.charged-button:active:not(.button-disabled) {
transform: scale(0.97);
}
.charged-button-frame,
.charged-button-fill {
pointer-events: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
.charged-button-frame {
z-index: 0;
}
.charged-button-fill {
z-index: 1;
filter: brightness(2);
will-change: clip-path;
}
.charged-button-label {
position: relative;
z-index: 2;
pointer-events: none;
font-size: 1.1rem;
/*text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.7);*/
}