From 9e54cbbd7dbcf5b854d15016a316e557146c3966 Mon Sep 17 00:00:00 2001 From: Antoine Ouvrard Date: Fri, 17 Sep 2021 15:27:59 +0200 Subject: changement de template html5up + retouche du logo --- assets/sass/components/_button.scss | 151 ++++++++++++++++++++---------------- 1 file changed, 83 insertions(+), 68 deletions(-) (limited to 'assets/sass/components/_button.scss') diff --git a/assets/sass/components/_button.scss b/assets/sass/components/_button.scss index c7499c9..61fe069 100644 --- a/assets/sass/components/_button.scss +++ b/assets/sass/components/_button.scss @@ -1,69 +1,84 @@ -@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; - } +/// +/// Dimension 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, color #{_duration(transition)} ease-in-out'); + background-color: transparent; + border-radius: _size(border-radius); + border: 0; + box-shadow: inset 0 0 0 _size(border-width) _palette(border); + color: _palette(fg-bold) !important; + cursor: pointer; + display: inline-block; + font-size: 0.8rem; + font-weight: _font(weight); + height: _size(element-height); + letter-spacing: _font(letter-spacing); + line-height: _size(element-height); + outline: 0; + padding: 0 1.25rem 0 (1.25rem + (_font(letter-spacing) * 0.5)); + text-align: center; + text-decoration: none; + text-transform: uppercase; + white-space: nowrap; + + &:hover { + background-color: _palette(border-bg); + } + + &:active { + background-color: _palette(border-bg-alt); + } + + &.icon { + &:before { + margin-right: 0.5em; + } + } + + &.fit { + width: 100%; + } + + &.small { + font-size: 0.6rem; + height: (_size(element-height) * 0.75); + line-height: (_size(element-height) * 0.75); + } + + &.primary { + background-color: _palette(fg-bold); + color: _palette(bg) !important; + font-weight: _font(weight-bold); + + &:hover { + } + + &:active { + } + } + + &.disabled, + &:disabled { + @include vendor('pointer-events', 'none'); + cursor: default; + opacity: 0.25; + } + } + + input[type="submit"], + input[type="reset"], + input[type="button"], + button { + line-height: calc(#{_size(element-height)} - 2px); } \ No newline at end of file -- cgit v1.2.3