barebones/assets/styles/components/_buttons.scss

60 lines
1.3 KiB
SCSS
Raw Permalink Normal View History

2014-05-09 13:19:28 +02:00
.btn {
2023-08-03 13:57:13 +02:00
background-color: map-get($colors, 'brand');
color: map-get($colors, 'background');
2019-01-08 11:52:31 +01:00
border: 1px solid transparent;
display: inline-block;
2023-08-03 13:57:13 +02:00
padding: #{$base-spacing-unit * 0.25} $base-spacing-unit;
2019-01-08 11:52:31 +01:00
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;
2023-08-03 13:57:13 +02:00
background-color: map-get($colors, 'background');
color: map-get($colors, 'brand');
border-color: map-get($colors, 'brand');
2019-01-08 11:52:31 +01:00
}
&.is-disabled,
&:disabled {
pointer-events: none;
opacity: .65;
}
}
.btn--inverse {
2023-08-03 13:57:13 +02:00
background-color: map-get($colors, 'background');
color: map-get($colors, 'brand');
border: 1px solid map-get($colors, 'brand');
2019-01-08 11:52:31 +01:00
&:hover {
2023-08-03 13:57:13 +02:00
background-color: map-get($colors, 'brand');
color: map-get($colors, 'background');
2019-01-08 11:52:31 +01:00
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 {
2023-08-03 13:57:13 +02:00
margin-top: $base-spacing-unit * 0.25;
2019-01-08 11:52:31 +01:00
}
2015-04-01 18:32:10 +02:00
}
.btn--link {
2019-01-08 11:52:31 +01:00
background-color: transparent;
2023-08-03 13:57:13 +02:00
color: map-get($colors, 'brand');
}