Sites-Camelia/branches/magzine/v4/assets/sass/components/_button.scss

72 lines
1.4 KiB
SCSS
Raw Permalink Normal View History

@import '../libs/vars';
@import '../libs/functions';
@import '../libs/mixins';
///
/// Lens 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'
));
background-color: transparent;
border-radius: _size(border-radius);
border: solid 1px _palette(border);
color: _palette(fg-bold);
cursor: pointer;
display: inline-block;
line-height: 1;
padding: 0.75em 1.5em;
text-align: center;
text-decoration: none;
white-space: nowrap;
&:hover {
border-color: _palette(accent);
color: _palette(accent);
&:active {
background-color: transparentize(_palette(accent), 0.85);
}
}
&.icon {
padding-left: 1.35em;
&:before {
margin-right: 0.5em;
}
}
&.fit {
display: block;
margin: 0 0 (_size(element-margin) * 0.5) 0;
width: 100%;
}
&.small {
font-size: 0.8em;
}
&.big {
font-size: 1.35em;
}
&.disabled,
&:disabled {
@include vendor('pointer-events', 'none');
opacity: 0.25;
}
}