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

102 lines
1.7 KiB
SCSS
Raw Normal View History

@import "../mixin/link.scss";
2017-04-09 17:06:23 +02:00
$button-focus-shift: 12%;
.button-set-item {
position: relative;
display: inline-block;
+ .button-set-item
{
2017-09-07 00:03:09 +02:00
margin-left: var(--button-intra-margin);
2017-04-09 17:06:23 +02:00
}
}
.button-block, .faux-button-block
{
display: inline-block;
2017-08-18 07:37:35 +02:00
height: var(--button-height);
line-height: var(--button-height);
2017-04-09 17:06:23 +02:00
text-decoration: none;
border: 0 none;
text-align: center;
border-radius: var(--button-radius);
2017-04-09 17:06:23 +02:00
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;
2017-10-03 06:08:25 +02:00
font-weight: 500;
font-size: 14px;
2017-10-12 05:37:36 +02:00
user-select: none;
2017-10-03 03:35:52 +02:00
transition: background var(--animation-duration) var(--animation-style);
2017-04-09 17:06:23 +02:00
}
.button__content {
2017-08-18 07:37:35 +02:00
margin: 0 var(--button-padding);
2017-09-26 07:50:05 +02:00
display: flex;
2017-10-03 04:25:44 +02:00
.link-label {
text-decoration: none !important;
}
2017-04-09 17:06:23 +02:00
}
.button-primary
{
2017-08-18 07:37:35 +02:00
color: var(--button-primary-color);
2017-08-18 07:37:35 +02:00
background-color: var(--button-primary-bg);
box-shadow: var(--box-shadow-layer);
2017-08-19 03:46:45 +02:00
2017-04-09 17:06:23 +02:00
&:focus {
2017-08-19 03:46:45 +02:00
//color: var(--button-primary-active-color);
//background-color:color: var(--button-primary-active-bg);
//box-shadow: $box-shadow-focus;
2017-04-09 17:06:23 +02:00
}
}
.button-alt
{
background-color: var(--button-bg);
2017-08-18 07:37:35 +02:00
box-shadow: var(--box-shadow-layer);
2017-04-09 17:06:23 +02:00
}
.button-text
{
@include text-link();
display: inline-block;
.button__content {
2017-08-18 07:37:35 +02:00
margin: 0 var(--text-link-padding);
2017-04-09 17:06:23 +02:00
}
}
.button-text-help
{
@include text-link(var(--text-help-color));
2017-04-09 17:06:23 +02:00
font-size: 0.8em;
}
.button--flat
{
box-shadow: none !important;
2017-08-18 07:37:35 +02:00
}
.button--submit {
font-family: inherit;
line-height: 0;
}