2018-07-19 16:49:20 +02:00
|
|
|
@import 'variables';
|
|
|
|
@import 'mixins';
|
|
|
|
|
|
|
|
.btn,
|
|
|
|
a.btn {
|
|
|
|
text-align: center;
|
2018-09-29 03:47:00 +02:00
|
|
|
display: block;
|
2018-07-19 16:49:20 +02:00
|
|
|
margin-bottom: 0;
|
|
|
|
vertical-align: middle;
|
|
|
|
touch-action: manipulation;
|
|
|
|
cursor: pointer;
|
|
|
|
background-image: none; // Reset unusual Firefox-on-Android default style
|
|
|
|
white-space: nowrap;
|
|
|
|
user-select: none;
|
2018-09-29 02:54:31 +02:00
|
|
|
transition: .2s ease-in-out;
|
2018-07-19 16:49:20 +02:00
|
|
|
|
|
|
|
// Default Button
|
|
|
|
@include button-size(
|
|
|
|
$padding-base-vertical,
|
|
|
|
$padding-base-horizontal,
|
|
|
|
$font-size-small,
|
|
|
|
$line-height,
|
|
|
|
$border-radius
|
|
|
|
);
|
|
|
|
|
|
|
|
background-color: rgba(255, 255, 255, .1);
|
|
|
|
border: 1px solid rgba(94, 131, 162, .3);
|
|
|
|
border-bottom-color: rgba(94, 131, 162, .4);
|
|
|
|
font-family: $font-family-headings;
|
|
|
|
font-weight: $font-weight-headings;
|
|
|
|
color: $brand-grey;
|
|
|
|
text-transform: uppercase;
|
|
|
|
box-shadow: 0 1px 3px rgba($brand-grey-light, .1),
|
|
|
|
inset 0 1px 0 rgba(255, 255, 255, .7);
|
|
|
|
|
|
|
|
@media (min-width: $screen-sm) {
|
|
|
|
max-width: 20rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
background-color: rgba(255, 255, 255, .5);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
color: $brand-grey;
|
|
|
|
border-color: rgba(94, 131, 162, .3);
|
|
|
|
background-color: transparent;
|
|
|
|
box-shadow: 0 1px 0 #fff;
|
|
|
|
transition: none;
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Disabled State
|
|
|
|
&.disabled,
|
|
|
|
&[disabled],
|
|
|
|
fieldset[disabled] & {
|
|
|
|
cursor: not-allowed;
|
|
|
|
pointer-events: none;
|
|
|
|
opacity: .6;
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
// grid buttons
|
|
|
|
&.col2,
|
|
|
|
&.col3 {
|
|
|
|
margin-bottom: $spacer / 2;
|
|
|
|
|
|
|
|
@media (min-width: $screen-sm) {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
font-size: .9rem;
|
|
|
|
color: rgba(19, 56, 50, .6);
|
|
|
|
margin-left: .3em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-10-01 19:33:57 +02:00
|
|
|
button.link {
|
|
|
|
color: $link-color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
outline: 0;
|
|
|
|
color: lighten($link-color, 10%);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
transition: none;
|
|
|
|
color: darken($link-color, 10%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-19 16:49:20 +02:00
|
|
|
// Primary Button
|
|
|
|
.btn-primary,
|
|
|
|
a.btn-primary {
|
|
|
|
@extend .btn;
|
|
|
|
|
|
|
|
color: darken($link-color, 50%);
|
|
|
|
text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
|
|
|
|
background: lighten($link-color, 15%);
|
|
|
|
border-color: $link-color;
|
|
|
|
box-shadow: 0 1px 3px rgba($brand-grey-light, .4),
|
|
|
|
inset 0 1px 0 rgba(255, 255, 255, .4);
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: darken($link-color, 50%);
|
|
|
|
background-color: lighten($link-color, 25%);
|
|
|
|
text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
color: darken($link-color, 50%);
|
|
|
|
border-color: darken($link-color, 10%);
|
|
|
|
background-color: lighten($link-color, 15%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-block {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Close button
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
|
|
|
.close {
|
|
|
|
text-align: center;
|
|
|
|
display: block;
|
|
|
|
color: lighten($brand-grey-light, 50%);
|
|
|
|
line-height: 1;
|
|
|
|
font-size: $font-size-large;
|
|
|
|
padding: 3px;
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
&button {
|
|
|
|
cursor: pointer;
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
-webkit-appearance: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: lighten($brand-grey-light, 20%);
|
|
|
|
cursor: pointer;
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background: none;
|
|
|
|
color: $brand-grey-light;
|
|
|
|
transition: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// some helper classes for old content
|
|
|
|
/////////////////////////////////////
|
|
|
|
|
|
|
|
.content-download {
|
|
|
|
text-align: center;
|
|
|
|
display: block;
|
2018-07-20 15:23:57 +02:00
|
|
|
margin-top: $spacer;
|
|
|
|
margin-bottom: $spacer;
|
2018-07-19 16:49:20 +02:00
|
|
|
|
|
|
|
@media (min-width: $screen-xs) {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
@extend .btn;
|
|
|
|
|
2018-09-29 03:47:00 +02:00
|
|
|
margin-bottom: $spacer / 2;
|
|
|
|
|
|
|
|
@media (min-width: $screen-xs) {
|
|
|
|
flex: 1;
|
|
|
|
margin-left: $spacer / 2;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
2018-07-19 16:49:20 +02:00
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:only-child {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
span {
|
|
|
|
font-size: $font-size-mini;
|
|
|
|
color: $text-color-light;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-download,
|
|
|
|
.icon-heart,
|
|
|
|
.icon-wordpress,
|
|
|
|
.icon-github,
|
|
|
|
.icon-eye {
|
|
|
|
&::before {
|
|
|
|
content: '';
|
|
|
|
width: 18px;
|
|
|
|
height: 18px;
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: 5px;
|
|
|
|
margin-bottom: -3px;
|
|
|
|
opacity: .35;
|
|
|
|
background: url('../images/arrow-with-circle-down.svg') no-repeat
|
|
|
|
left center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-heart::before {
|
|
|
|
background-image: url('../images/heart.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-github::before {
|
|
|
|
background-image: url('../images/github.svg');
|
|
|
|
}
|
|
|
|
|
|
|
|
.icon-eye::before {
|
|
|
|
background-image: url('../images/eye.svg');
|
|
|
|
}
|
|
|
|
}
|