datat.fi/_sass/basically-basic/_buttons.scss

39 lines
756 B
SCSS
Raw Normal View History

/* ==========================================================================
Buttons
========================================================================== */
2017-03-07 23:12:17 +02:00
.btn {
display: inline-block;
padding: 0.5em 1em;
color: #fff;
font-weight: bold;
text-align: center;
text-decoration: none;
background-color: $accent-color;
border: 0;
border-radius: $border-radius;
cursor: pointer;
&:hover {
color: #fff;
background-color: tint($accent-color, 20%);
}
&:focus {
background-color: shade($accent-color, 20%);
}
.icon {
margin-right: 0.5em;
}
/* block button fills width of parent container */
2017-03-07 23:12:17 +02:00
&--block {
display: block;
width: 100%;
+ .btn--block {
margin-top: 1rem;
}
}
}