2016-06-22 01:45:49 +00:00
|
|
|
@import '../../stylesheets/variables.scss';
|
|
|
|
|
|
|
|
|
|
$button-width: 88px;
|
|
|
|
|
$button-height: 36px;
|
2016-06-22 04:58:04 +00:00
|
|
|
$button-radius: 2px;
|
|
|
|
|
|
|
|
|
|
$button-dense-height: 32px;
|
2016-06-22 01:45:49 +00:00
|
|
|
|
|
|
|
|
$button-icon-size: 40px;
|
|
|
|
|
|
2016-06-21 06:54:17 +00:00
|
|
|
.md-button {
|
2016-06-22 01:45:49 +00:00
|
|
|
min-width: $button-width;
|
|
|
|
|
min-height: $button-height;
|
|
|
|
|
margin: 6px 8px;
|
2016-06-22 04:58:04 +00:00
|
|
|
padding: 0 16px;
|
2016-06-22 01:45:49 +00:00
|
|
|
display: inline-block;
|
|
|
|
|
position: relative;
|
|
|
|
|
align-items: center;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
user-select: none;
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
outline: none;
|
|
|
|
|
background: none;
|
|
|
|
|
border: 0;
|
2016-06-22 04:58:04 +00:00
|
|
|
border-radius: $button-radius;
|
|
|
|
|
transition: $swift-ease-out;
|
2016-06-22 01:45:49 +00:00
|
|
|
color: currentColor;
|
|
|
|
|
font-family: inherit;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-style: inherit;
|
|
|
|
|
font-variant: inherit;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
line-height: $button-height;
|
|
|
|
|
text-align: center;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
vertical-align: top;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
2016-06-22 04:58:04 +00:00
|
|
|
&:hover {
|
|
|
|
|
&:not([disabled]) {
|
|
|
|
|
&:not(.md-raised) {
|
|
|
|
|
background-color: rgba(#999, .2);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.md-raised {
|
|
|
|
|
background-color: rgba(#000, .12);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:active:not([disabled]) {
|
|
|
|
|
background-color: rgba(#999, .4);
|
2016-06-22 01:45:49 +00:00
|
|
|
}
|
|
|
|
|
|
2016-06-22 04:58:04 +00:00
|
|
|
&[disabled] {
|
|
|
|
|
color: rgba(#000, .26);
|
|
|
|
|
cursor: default;
|
|
|
|
|
|
|
|
|
|
&.md-raised {
|
|
|
|
|
background-color: rgba(#000, .12);
|
|
|
|
|
}
|
2016-06-22 01:45:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.md-raised:not([disabled]) {
|
2016-06-22 04:58:04 +00:00
|
|
|
box-shadow: $material-shadow-2dp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.md-dense {
|
|
|
|
|
min-height: $button-dense-height;
|
|
|
|
|
line-height: $button-dense-height;
|
|
|
|
|
font-size: 13px;
|
2016-06-22 01:45:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.md-icon-button {
|
|
|
|
|
width: $button-icon-size;
|
|
|
|
|
min-width: 0;
|
|
|
|
|
height: $button-icon-size;
|
|
|
|
|
margin: 0 6px;
|
|
|
|
|
padding: 8px;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
|
2016-06-22 04:58:04 +00:00
|
|
|
.md-ink-ripple {
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
}
|
2016-06-22 01:45:49 +00:00
|
|
|
|
2016-06-22 04:58:04 +00:00
|
|
|
.md-ripple.md-active {
|
|
|
|
|
animation-duration: .9s;
|
|
|
|
|
}
|
2016-06-22 01:45:49 +00:00
|
|
|
}
|
|
|
|
|
|
2016-06-22 04:58:04 +00:00
|
|
|
/*
|
2016-06-22 01:45:49 +00:00
|
|
|
&.md-fab {
|
|
|
|
|
|
|
|
|
|
// Include the top/left/bottom/right fab positions
|
|
|
|
|
@include fab-all-positions();
|
|
|
|
|
|
|
|
|
|
z-index: $z-index-fab;
|
|
|
|
|
|
|
|
|
|
line-height: $button-fab-line-height;
|
|
|
|
|
|
|
|
|
|
min-width: 0;
|
|
|
|
|
width: $button-fab-width;
|
|
|
|
|
height: $button-fab-height;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
|
|
|
|
|
@include md-shadow-bottom-z-1();
|
|
|
|
|
border-radius: $button-fab-border-radius;
|
|
|
|
|
background-clip: padding-box;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
transition: $swift-ease-in;
|
|
|
|
|
transition-property: background-color, box-shadow, transform;
|
|
|
|
|
.md-ripple-container {
|
|
|
|
|
border-radius: $button-fab-border-radius;
|
|
|
|
|
background-clip: padding-box;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
// The following hack causes Safari/Chrome to respect overflow hidden for ripples
|
|
|
|
|
-webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.md-mini {
|
|
|
|
|
line-height: $button-fab-mini-line-height;
|
|
|
|
|
width: $button-fab-mini-width;
|
|
|
|
|
height: $button-fab-mini-height;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-06-22 04:58:04 +00:00
|
|
|
*/
|
2016-06-22 01:45:49 +00:00
|
|
|
|
2016-06-22 01:47:45 +00:00
|
|
|
.md-ink-ripple {
|
2016-06-22 04:58:04 +00:00
|
|
|
border-radius: $button-radius;
|
2016-06-22 01:45:49 +00:00
|
|
|
background-clip: padding-box;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
-webkit-mask-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAA5JREFUeNpiYGBgAAgwAAAEAAGbA+oJAAAAAElFTkSuQmCC');
|
|
|
|
|
}
|
2016-06-21 06:54:17 +00:00
|
|
|
}
|
2016-06-22 04:58:04 +00:00
|
|
|
|
|
|
|
|
.md-button-group {
|
|
|
|
|
width: auto;
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
|
|
> .md-button {
|
|
|
|
|
margin: 0;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
border-width: 1px 0 1px 1px;
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
text-align: center;
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
border-radius: 2px 0 0 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
border-right-width: 1px;
|
|
|
|
|
border-radius: 0 2px 2px 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.md-ink-ripple {
|
|
|
|
|
border-radius: $button-radius;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.md-button.md-icon-button,
|
|
|
|
|
.md-button.md-fab {
|
|
|
|
|
md-icon {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
}
|