/// /// Forty by HTML5 UP /// html5up.net | @ajlkn /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license) /// /* Button */ input[type="submit"], input[type="reset"], input[type="button"], button, .button { @include vendor('appearance', 'none'); @include vendor('transition', ( 'background-color #{_duration(transition)} ease-in-out', 'box-shadow #{_duration(transition)} ease-in-out', 'color #{_duration(transition)} ease-in-out' )); background-color: transparent; border: 0; border-radius: 0; box-shadow: inset 0 0 0 2px _palette_light(fg-bold); color: _palette_light(fg-bold); @media screen and (prefers-color-scheme: dark) { box-shadow: inset 0 0 0 2px _palette_dark(fg-bold); color: _palette_dark(fg-bold); } cursor: pointer; display: inline-block; font-size: 0.8em; font-weight: _font(weight-bold); height: 3.5em; letter-spacing: _font(letter-spacing-alt); line-height: 3.5em; padding: 0 1.75em; text-align: center; text-decoration: none; text-transform: uppercase; white-space: nowrap; &:hover, &:active { box-shadow: inset 0 0 0 2px _palette_light(highlight); color: _palette_light(highlight); @media screen and (prefers-color-scheme: dark) { box-shadow: inset 0 0 0 2px _palette_dark(highlight); color: _palette_dark(highlight); } } &:active { background-color: transparentize(_palette_light(highlight), 0.9); box-shadow: inset 0 0 0 2px desaturate(darken(_palette_light(highlight), 15), 5); color: desaturate(darken(_palette_light(highlight), 15), 5); @media screen and (prefers-color-scheme: dark) { background-color: transparentize(_palette_dark(highlight), 0.9); box-shadow: inset 0 0 0 2px desaturate(darken(_palette_dark(highlight), 15), 5); color: desaturate(darken(_palette_dark(highlight), 15), 5); } } &.icon { &:before { margin-right: 0.5em; } } &.fit { width: 100%; } &.small { font-size: 0.6em; } &.large { font-size: 1.25em; height: 3em; line-height: 3em; } &.next { padding-right: 4.5em; position: relative; &:before, &:after { @include vendor('transition', 'opacity #{_duration(transition)} ease-in-out'); background-position: center right; background-repeat: no-repeat; background-size: 36px 24px; content: ''; display: block; height: 100%; position: absolute; right: 1.5em; top: 0; vertical-align: middle; width: 36px; } &:before { background-image: svg-url(''); @media screen and (prefers-color-scheme: dark) { background-image: svg-url(''); } } &:after { background-image: svg-url(''); @media screen and (prefers-color-scheme: dark) { background-image: svg-url(''); } opacity: 0; z-index: 1; } &:hover, &:active { &:after { opacity: 1; } } @include breakpoint('<=large') { padding-right: 5em; } } &.primary { background-color: _palette_light(fg-bold); box-shadow: none; color: _palette_light(bg); @media screen and (prefers-color-scheme: dark) { background-color: _palette_dark(fg-bold); color: _palette_dark(bg); } &:hover, &:active { background-color: _palette_light(highlight); color: _palette_light(bg) !important; @media screen and (prefers-color-scheme: dark) { background-color: _palette_dark(highlight); color: _palette_dark(bg) !important; } } &:active { background-color: desaturate(darken(_palette_light(highlight), 15), 5); @media screen and (prefers-color-scheme: dark) { background-color: desaturate(darken(_palette_dark(highlight), 15), 5); } } } &.disabled, &:disabled { @include vendor('pointer-events', 'none'); cursor: default; opacity: 0.25; } }