consul/website/source/assets/stylesheets/_buttons.scss

118 lines
1.9 KiB
SCSS
Raw Normal View History

.button {
background: $consul;
border-radius: 1px;
box-sizing: border-box;
color: $white;
display: inline-block;
font-family: $font-display;
font-size: 0.938rem;
font-weight: $font-weight-medium;
line-height: 1.6em;
margin-bottom: 4px;
padding: 14px 20px;
text-decoration: none;
2014-04-05 09:03:01 +00:00
&:hover,
&:active,
&:focus {
color: $white;
text-decoration: none;
}
2014-04-05 09:03:01 +00:00
&:focus {
border: 3px solid $consul-l1;
outline: none;
padding: 11px 17px;
}
&:hover {
background: linear-gradient(0deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
$consul;
border: none;
padding: 14px 20px;
}
&:active {
background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)),
$consul;
border: none;
}
&.white {
background: $white;
color: $black;
path {
fill: black;
}
&:hover {
background: $consul-l3;
}
&:active {
background: $consul-l2;
}
2015-11-09 21:48:29 +00:00
}
2014-04-05 09:03:01 +00:00
&.secondary {
background: transparent;
border: 1px solid rgba($gray-1, 0.2);
color: $black;
padding: 13px 19px;
&:focus {
border: 3px solid $consul-l1;
padding: 11px 17px;
}
2014-04-05 09:03:01 +00:00
&:hover {
background: rgba($gray-1, 0.1);
border: none;
padding: 14px 20px;
2015-11-09 21:48:29 +00:00
}
&:active {
background: rgba($gray-1, 0.16);
}
&.white {
border: 1px solid rgba($white, 0.24);
color: $white;
&:focus {
border: 3px solid $consul-l1;
padding: 11px 17px;
}
&:hover {
background: rgba($white, 0.14);
border: none;
padding: 14px 20px;
}
&:active {
background: rgba($white, 0.08);
}
}
}
&.download {
svg {
margin: 0 4px -4px 0;
path {
transition: fill 0.25s ease;
}
}
}
&.inline {
padding: 8px 14px;
}
path {
fill: $white;
2015-11-09 21:48:29 +00:00
}
2014-04-05 09:03:01 +00:00
}