barebones/assets/styles/components/_buttons.scss

60 lines
1.2 KiB
SCSS
Raw Normal View History

2014-05-09 13:19:28 +02:00
.btn {
2019-01-08 11:52:31 +01:00
background-color: $brand-colour;
color: $base-background-colour;
border: 1px solid transparent;
display: inline-block;
padding: #{$base-spacing-unit / 4} $base-spacing-unit;
text-align: center;
white-space: nowrap;
vertical-align: middle;
touch-action: manipulation;
cursor: pointer;
user-select: none;
width: auto;
transition: all .5s;
&::-moz-focus-inner {
border: 0;
padding: 0;
}
&:hover {
text-decoration: none;
background-color: $base-background-colour;
color: $brand-colour;
border-color: $brand-colour;
}
&.is-disabled,
&:disabled {
pointer-events: none;
opacity: .65;
}
}
.btn--inverse {
2019-01-08 11:52:31 +01:00
background-color: $base-background-colour;
color: $brand-colour;
border: 1px solid $brand-colour;
2019-01-08 11:52:31 +01:00
&:hover {
background-color: $brand-colour;
color: $base-background-colour;
border-color: transparent;
}
2014-09-23 12:40:57 +02:00
}
2015-04-01 18:32:10 +02:00
.btn--block {
2019-01-08 11:52:31 +01:00
display: block;
width: 100%;
2019-01-08 11:52:31 +01:00
+ .btn--block {
margin-top: $base-spacing-unit / 4;
}
2015-04-01 18:32:10 +02:00
}
.btn--link {
2019-01-08 11:52:31 +01:00
background-color: transparent;
color: $brand-colour;
}