| 1 | ///\r |
| 2 | /// Forty by HTML5 UP\r |
| 3 | /// html5up.net | @ajlkn\r |
| 4 | /// Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)\r |
| 5 | ///\r |
| 6 | \r |
| 7 | /* Button */\r |
| 8 | \r |
| 9 | input[type="submit"],\r |
| 10 | input[type="reset"],\r |
| 11 | input[type="button"],\r |
| 12 | button,\r |
| 13 | .button {\r |
| 14 | @include vendor('appearance', 'none');\r |
| 15 | @include vendor('transition', (\r |
| 16 | 'background-color #{_duration(transition)} ease-in-out',\r |
| 17 | 'box-shadow #{_duration(transition)} ease-in-out',\r |
| 18 | 'color #{_duration(transition)} ease-in-out'\r |
| 19 | ));\r |
| 20 | background-color: transparent;\r |
| 21 | border: 0;\r |
| 22 | border-radius: 0;\r |
| 23 | box-shadow: inset 0 0 0 2px _palette(fg-bold);\r |
| 24 | color: _palette(fg-bold);\r |
| 25 | cursor: pointer;\r |
| 26 | display: inline-block;\r |
| 27 | font-size: 0.8em;\r |
| 28 | font-weight: _font(weight-bold);\r |
| 29 | height: 3.5em;\r |
| 30 | letter-spacing: _font(letter-spacing-alt);\r |
| 31 | line-height: 3.5em;\r |
| 32 | padding: 0 1.75em;\r |
| 33 | text-align: center;\r |
| 34 | text-decoration: none;\r |
| 35 | text-transform: uppercase;\r |
| 36 | white-space: nowrap;\r |
| 37 | \r |
| 38 | &:hover, &:active {\r |
| 39 | box-shadow: inset 0 0 0 2px _palette(highlight);\r |
| 40 | color: _palette(highlight);\r |
| 41 | }\r |
| 42 | \r |
| 43 | &:active {\r |
| 44 | background-color: transparentize(_palette(highlight), 0.9);\r |
| 45 | box-shadow: inset 0 0 0 2px desaturate(darken(_palette(highlight), 15), 5);\r |
| 46 | color: desaturate(darken(_palette(highlight), 15), 5);\r |
| 47 | }\r |
| 48 | \r |
| 49 | &.icon {\r |
| 50 | &:before {\r |
| 51 | margin-right: 0.5em;\r |
| 52 | }\r |
| 53 | }\r |
| 54 | \r |
| 55 | &.fit {\r |
| 56 | width: 100%;\r |
| 57 | }\r |
| 58 | \r |
| 59 | &.small {\r |
| 60 | font-size: 0.6em;\r |
| 61 | }\r |
| 62 | \r |
| 63 | &.large {\r |
| 64 | font-size: 1.25em;\r |
| 65 | height: 3em;\r |
| 66 | line-height: 3em;\r |
| 67 | }\r |
| 68 | \r |
| 69 | &.next {\r |
| 70 | padding-right: 4.5em;\r |
| 71 | position: relative;\r |
| 72 | \r |
| 73 | &:before, &:after {\r |
| 74 | @include vendor('transition', 'opacity #{_duration(transition)} ease-in-out');\r |
| 75 | background-position: center right;\r |
| 76 | background-repeat: no-repeat;\r |
| 77 | background-size: 36px 24px;\r |
| 78 | content: '';\r |
| 79 | display: block;\r |
| 80 | height: 100%;\r |
| 81 | position: absolute;\r |
| 82 | right: 1.5em;\r |
| 83 | top: 0;\r |
| 84 | vertical-align: middle;\r |
| 85 | width: 36px;\r |
| 86 | }\r |
| 87 | \r |
| 88 | &:before {\r |
| 89 | background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="36px" height="24px" viewBox="0 0 36 24" zoomAndPan="disable"><style>line { stroke: #{_palette(fg-bold)}; stroke-width: 2px; }</style><line x1="0" y1="12" x2="34" y2="12" /><line x1="25" y1="4" x2="34" y2="12.5" /><line x1="25" y1="20" x2="34" y2="11.5" /></svg>');\r |
| 90 | }\r |
| 91 | \r |
| 92 | &:after {\r |
| 93 | background-image: svg-url('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="36px" height="24px" viewBox="0 0 36 24" zoomAndPan="disable"><style>line { stroke: #{_palette(highlight)}; stroke-width: 2px; }</style><line x1="0" y1="12" x2="34" y2="12" /><line x1="25" y1="4" x2="34" y2="12.5" /><line x1="25" y1="20" x2="34" y2="11.5" /></svg>');\r |
| 94 | opacity: 0;\r |
| 95 | z-index: 1;\r |
| 96 | }\r |
| 97 | \r |
| 98 | &:hover, &:active {\r |
| 99 | &:after {\r |
| 100 | opacity: 1;\r |
| 101 | }\r |
| 102 | }\r |
| 103 | \r |
| 104 | @include breakpoint('<=large') {\r |
| 105 | padding-right: 5em;\r |
| 106 | }\r |
| 107 | }\r |
| 108 | \r |
| 109 | &.primary {\r |
| 110 | background-color: _palette(fg-bold);\r |
| 111 | box-shadow: none;\r |
| 112 | color: _palette(bg);\r |
| 113 | \r |
| 114 | &:hover, &:active {\r |
| 115 | background-color: _palette(highlight);\r |
| 116 | color: _palette(bg) !important;\r |
| 117 | }\r |
| 118 | \r |
| 119 | &:active {\r |
| 120 | background-color: desaturate(darken(_palette(highlight), 15), 5);\r |
| 121 | }\r |
| 122 | }\r |
| 123 | \r |
| 124 | &.disabled,\r |
| 125 | &:disabled {\r |
| 126 | @include vendor('pointer-events', 'none');\r |
| 127 | cursor: default;\r |
| 128 | opacity: 0.25;\r |
| 129 | }\r |
| 130 | } |