lbry-desktop/ui/scss/component/_button.scss

87 lines
1.3 KiB
SCSS
Raw Normal View History

2017-04-09 17:06:23 +02:00
@import "../global";
$button-focus-shift: 12%;
.button-set-item {
position: relative;
display: inline-block;
+ .button-set-item
{
2017-08-26 05:21:26 +02:00
margin-left: $spacing-vertical;
2017-04-09 17:06:23 +02:00
}
}
.button-block, .faux-button-block
{
display: inline-block;
height: $height-button;
line-height: $height-button;
text-decoration: none;
border: 0 none;
text-align: center;
border-radius: 2px;
text-transform: uppercase;
.icon
{
top: 0em;
}
.icon:first-child
{
padding-right: 5px;
}
.icon:last-child
{
padding-left: 5px;
}
.icon:only-child
{
padding-left: 0;
padding-right: 0;
}
2017-04-09 17:06:23 +02:00
}
.button-block
{
cursor: pointer;
}
.button__content {
margin: 0 $padding-button;
}
.button-primary
{
$color-button-text: white;
color: darken($color-button-text, $button-focus-shift * 0.5);
background-color: $color-primary;
box-shadow: $box-shadow-layer;
2017-04-09 17:06:23 +02:00
&:focus {
color: $color-button-text;
//box-shadow: $box-shadow-focus;
2017-04-09 17:06:23 +02:00
background-color: mix(black, $color-primary, $button-focus-shift)
}
}
.button-alt
{
background-color: $color-bg-alt;
box-shadow: $box-shadow-layer;
2017-04-09 17:06:23 +02:00
}
.button-text
{
@include text-link();
display: inline-block;
.button__content {
margin: 0 $padding-text-link;
}
}
.button-text-help
{
@include text-link(#aaa);
font-size: 0.8em;
}
.button--flat
{
box-shadow: none !important;
}