2016-07-07 18:54:16 -07:00
|
|
|
// Copyright (c) 2015 Documize Inc.
|
|
|
|
|
|
|
|
@mixin button-hover-state($bg) {
|
|
|
|
&:hover {
|
|
|
|
background-color: lighten($bg, 3%);
|
|
|
|
@extend .z-depth-tiny;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.square-button-mono {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
line-height: 31px;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 2px;
|
|
|
|
transition: .3s;
|
|
|
|
cursor: pointer;
|
|
|
|
vertical-align: middle;
|
|
|
|
border: 1px solid $color-gray;
|
|
|
|
text-align: center;
|
|
|
|
@extend .no-select;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@extend .z-depth-tiny;
|
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
|
|
|
color: $color-gray;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.round-button-mono {
|
2017-03-22 10:24:30 +00:00
|
|
|
@extend .no-select;
|
|
|
|
@include ease-in();
|
2016-07-07 18:54:16 -07:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 35px;
|
|
|
|
height: 35px;
|
|
|
|
line-height: 34px;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 50%;
|
|
|
|
transition: .3s;
|
|
|
|
cursor: pointer;
|
|
|
|
vertical-align: middle;
|
2016-10-06 14:13:02 -07:00
|
|
|
border: 1px solid $color-stroke;
|
2016-07-07 18:54:16 -07:00
|
|
|
text-align: center;
|
|
|
|
font-size: 1.2rem;
|
2017-03-22 10:24:30 +00:00
|
|
|
background-color: transparent;
|
2016-07-07 18:54:16 -07:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@extend .z-depth-tiny;
|
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
2016-10-06 14:13:02 -07:00
|
|
|
color: $color-stroke;
|
2016-07-07 18:54:16 -07:00
|
|
|
text-align: center;
|
2016-10-07 10:27:04 -07:00
|
|
|
width: 100%;
|
2016-07-07 18:54:16 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.square-button-white {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
line-height: 31px;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 2px;
|
|
|
|
transition: .3s;
|
|
|
|
cursor: pointer;
|
|
|
|
vertical-align: middle;
|
|
|
|
background-color: $color-white;
|
|
|
|
border: 1px solid $color-stroke;
|
|
|
|
text-align: center;
|
|
|
|
@extend .no-select;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@extend .z-depth-tiny;
|
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
|
|
|
color: $color-gray;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-red-text {
|
|
|
|
&:hover {
|
|
|
|
> .material-icons {
|
|
|
|
@include ease-in();
|
|
|
|
color: $color-red !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.round-button {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 35px;
|
|
|
|
height: 35px;
|
|
|
|
line-height: 36px;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 50%;
|
|
|
|
transition: .3s;
|
|
|
|
cursor: pointer;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
|
|
|
@extend .no-select;
|
|
|
|
@include ease-in();
|
|
|
|
font-size: 1.2rem;
|
|
|
|
|
|
|
|
> i {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-01 18:46:25 +00:00
|
|
|
.round-button-small {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
line-height: 20px;
|
|
|
|
font-size: 0.9rem;
|
2017-04-12 13:59:53 +01:00
|
|
|
|
|
|
|
> .material-icons {
|
|
|
|
font-size: 0.9rem;
|
|
|
|
}
|
2017-03-01 18:46:25 +00:00
|
|
|
}
|
|
|
|
|
2016-07-07 18:54:16 -07:00
|
|
|
.square-button {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
line-height: 34px;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 2px;
|
|
|
|
transition: .3s;
|
|
|
|
cursor: pointer;
|
|
|
|
vertical-align: middle;
|
|
|
|
text-align: center;
|
|
|
|
@extend .no-select;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
> i {
|
|
|
|
color: $color-white;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.regular-button {
|
|
|
|
text-decoration: none;
|
|
|
|
padding: 0 1rem;
|
|
|
|
text-align: center;
|
|
|
|
letter-spacing: .5px;
|
|
|
|
transition: .2s ease-out;
|
|
|
|
border-radius: 2px;
|
|
|
|
display: inline-block;
|
|
|
|
height: 32px;
|
|
|
|
line-height: 34px;
|
|
|
|
font-size: 0.9em;
|
|
|
|
outline: 0;
|
|
|
|
text-transform: uppercase;
|
|
|
|
vertical-align: middle;
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
color: $color-white;
|
|
|
|
cursor: pointer;
|
|
|
|
border: none;
|
|
|
|
@extend .no-select;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
> .name {
|
|
|
|
vertical-align: top;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-red {
|
|
|
|
background-color: $color-red;
|
|
|
|
@include button-hover-state($color-red);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-blue {
|
|
|
|
background-color: $color-blue;
|
|
|
|
@include button-hover-state($color-blue);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-green {
|
|
|
|
background-color: $color-green;
|
|
|
|
@include button-hover-state($color-green);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-gray {
|
|
|
|
background-color: $color-gray;
|
|
|
|
@include button-hover-state($color-gray);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-white {
|
|
|
|
border: 1px solid $color-stroke;
|
|
|
|
background-color: $color-white;
|
|
|
|
color: $color-blue;
|
|
|
|
@include button-hover-state($color-white);
|
|
|
|
}
|
|
|
|
|
2017-02-27 17:07:49 +00:00
|
|
|
.button-black {
|
2017-03-09 17:18:50 +00:00
|
|
|
border: none;
|
2017-02-27 17:07:49 +00:00
|
|
|
background-color: $color-off-black;
|
|
|
|
color: $color-white;
|
|
|
|
@include button-hover-state($color-black);
|
|
|
|
}
|
|
|
|
|
2016-07-07 18:54:16 -07:00
|
|
|
.button-transparent {
|
|
|
|
background-color: transparent;
|
|
|
|
color: $color-gray;
|
|
|
|
border: 1px solid $color-gray;
|
|
|
|
}
|
|
|
|
|
2017-09-25 14:37:11 +01:00
|
|
|
.button-nav {
|
|
|
|
background-color: $color-nav-button;
|
|
|
|
color: $color-nav-button-text;
|
2017-10-02 13:48:37 -04:00
|
|
|
border: 1px solid $color-sidebar-border;
|
2017-09-22 17:23:14 +01:00
|
|
|
}
|
|
|
|
|
2016-07-07 18:54:16 -07:00
|
|
|
.flat-button {
|
|
|
|
box-shadow: none;
|
|
|
|
background-color: transparent;
|
|
|
|
color: $color-off-black;
|
|
|
|
cursor: pointer;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
text-decoration: none;
|
|
|
|
padding: 0 0.7rem;
|
|
|
|
text-align: center;
|
|
|
|
letter-spacing: .5px;
|
|
|
|
transition: .2s ease-out;
|
|
|
|
border-radius: 2px;
|
|
|
|
display: inline-block;
|
|
|
|
height: 33px;
|
|
|
|
line-height: 34px;
|
|
|
|
font-size: 0.9em;
|
|
|
|
outline: 0;
|
|
|
|
text-transform: uppercase;
|
|
|
|
vertical-align: middle;
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
@extend .no-select;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
box-shadow: none;
|
|
|
|
border: 1px solid #e2e2e2;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
background-color: $color-off-white;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.flat-red {
|
|
|
|
color: $color-red;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border: 1px solid $color-red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.flat-blue {
|
|
|
|
color: $color-blue;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border: 1px solid $color-blue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.flat-green {
|
|
|
|
color: $color-green;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border: 1px solid $color-green;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.flat-gray {
|
|
|
|
color: $color-gray;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border: 1px solid $color-gray;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-21 14:47:49 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// Bootstrap 4 compatible
|
|
|
|
//
|
|
|
|
|
2016-07-07 18:54:16 -07:00
|
|
|
.button-gap {
|
|
|
|
width: 5px;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
display: inline-block;
|
|
|
|
@extend .no-select;
|
|
|
|
}
|
2017-11-17 11:31:54 +00:00
|
|
|
|
|
|
|
.button-icon-white {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: default;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
> i {
|
|
|
|
color: $color-white;
|
|
|
|
font-size: 2rem;
|
|
|
|
@include ease-in();
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
> i {
|
|
|
|
color: darken($color-white, 15%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-22 11:02:35 +00:00
|
|
|
.button-icon-gray {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: default;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
> i {
|
|
|
|
color: $color-gray-light;
|
|
|
|
font-size: 2rem;
|
|
|
|
@include ease-in();
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
> i {
|
|
|
|
color: darken($color-gray-light, 15%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-icon-gold {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: default;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
> i {
|
|
|
|
color: $color-goldy;
|
|
|
|
font-size: 2rem;
|
|
|
|
@include ease-in();
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
> i {
|
|
|
|
color: darken($color-goldy, 5%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-icon-danger {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: default;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
> i {
|
|
|
|
color: $color-gray-light;
|
|
|
|
font-size: 2rem;
|
|
|
|
@include ease-in();
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
> i {
|
|
|
|
color: $color-red;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-22 13:39:46 +00:00
|
|
|
.button-icon-blue {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: default;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
> i {
|
|
|
|
color: $color-blue;
|
|
|
|
font-size: 2rem;
|
|
|
|
@include ease-in();
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
> i {
|
|
|
|
color: darken($color-blue, 5%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-icon-red {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: default;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
> i {
|
|
|
|
color: $color-red;
|
|
|
|
font-size: 2rem;
|
|
|
|
@include ease-in();
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
> i {
|
|
|
|
color: darken($color-red, 5%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-icon-small {
|
|
|
|
> i {
|
|
|
|
font-size: 1.3rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-11-17 11:31:54 +00:00
|
|
|
.button-icon-gap {
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-gravatar-white {
|
|
|
|
display: inline-block;
|
|
|
|
cursor: default;
|
|
|
|
position: relative;
|
|
|
|
overflow: hidden;
|
|
|
|
width: 35px;
|
|
|
|
height: 35px;
|
|
|
|
line-height: 34px;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 50%;
|
|
|
|
text-align: center;
|
|
|
|
color: $color-primary;
|
|
|
|
background-color: $color-white;
|
|
|
|
@include ease-in();
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: darken($color-white, 15%);
|
|
|
|
}
|
|
|
|
}
|