diff options
| author | aouvrard <antoine.ouvrard@nereide.fr> | 2018-02-04 19:13:13 +0100 |
|---|---|---|
| committer | aouvrard <antoine.ouvrard@nereide.fr> | 2018-02-04 19:13:13 +0100 |
| commit | 9eee010f8fa93b1738be7b74e30174b170078e08 (patch) | |
| tree | b2e726953945a30632c0a654ae5e2e394ae80cfe /assets/sass/components/_button.scss | |
ajout su site en construction
Diffstat (limited to 'assets/sass/components/_button.scss')
| -rw-r--r-- | assets/sass/components/_button.scss | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/assets/sass/components/_button.scss b/assets/sass/components/_button.scss new file mode 100644 index 0000000..c7499c9 --- /dev/null +++ b/assets/sass/components/_button.scss @@ -0,0 +1,69 @@ +@import '../libs/vars'; +@import '../libs/functions'; +@import '../libs/mixins'; + +/// +/// Identity 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', + 'border-color #{_duration(transition)} ease-in-out', + 'color #{_duration(transition)} ease-in-out' + )); + display: inline-block; + height: _size(element-height); + line-height: _size(element-height); + padding: 0 1.5em; + background-color: transparent; + border-radius: _size(border-radius); + border: solid 1px _palette(border); + color: _palette(fg) !important; + cursor: pointer; + text-align: center; + text-decoration: none; + white-space: nowrap; + + &:hover { + border-color: _palette(highlight); + color: _palette(highlight) !important; + } + + &.icon { + padding-left: 1.35em; + + &:before { + margin-right: 0.5em; + } + } + + &.fit { + display: block; + width: 100%; + margin: 0 0 (_size(element-margin) * 0.5) 0; + } + + &.small { + font-size: 0.8em; + } + + &.big { + font-size: 1.35em; + } + + &.disabled, + &:disabled { + @include vendor('pointer-events', 'none'); + opacity: 0.5; + } + }
\ No newline at end of file |
