/// /// 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(fg-bold); color: _palette(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(highlight); color: _palette(highlight); } &:active { background-color: transparentize(_palette(highlight), 0.9); box-shadow: inset 0 0 0 2px desaturate(darken(_palette(highlight), 15), 5); color: desaturate(darken(_palette(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(''); } &:after { background-image: svg-url(''); opacity: 0; z-index: 1; } &:hover, &:active { &:after { opacity: 1; } } @include breakpoint('<=large') { padding-right: 5em; } } &.primary { background-color: _palette(fg-bold); box-shadow: none; color: _palette(bg); &:hover, &:active { background-color: _palette(highlight); color: _palette(bg) !important; } &:active { background-color: desaturate(darken(_palette(highlight), 15), 5); } } &.disabled, &:disabled { @include vendor('pointer-events', 'none'); cursor: default; opacity: 0.25; } }