lbry-desktop/src/renderer/scss/component/_button.scss

198 lines
3.2 KiB
SCSS
Raw Normal View History

2018-03-26 23:32:43 +02:00
.btn {
min-width: var(--btn-height);
2018-10-17 19:14:24 +02:00
height: var(--btn-height);
align-items: center;
background-color: $lbry-teal-3;
2018-10-17 19:14:24 +02:00
border: none;
border-radius: var(--btn-radius);
color: $lbry-white;
2018-10-17 19:14:24 +02:00
cursor: pointer;
2018-03-26 23:32:43 +02:00
display: flex;
fill: currentColor; // for proper icon color
font-size: 12px;
2018-10-17 19:14:24 +02:00
justify-content: center;
padding: 10px;
position: relative;
text-decoration: none;
2018-03-26 23:32:43 +02:00
transition: all var(--animation-duration) var(--animation-style);
2018-01-04 06:05:20 +01:00
2018-03-26 23:32:43 +02:00
&:not(:disabled) {
2017-04-09 17:06:23 +02:00
}
2018-01-04 06:05:20 +01:00
2018-03-26 23:32:43 +02:00
&:hover {
background-color: $lbry-teal-1;
2017-04-09 17:06:23 +02:00
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&:not(.btn--no-padding):not(.btn--link):not(.btn--no-style) {
.btn__content {
align-items: center;
display: flex;
padding: 0 8px;
}
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--alt {
&:not(:disabled) {
background-color: $lbry-white;
color: $lbry-black;
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&:disabled {
background-color: transparent;
color: $lbry-gray-5;
}
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--arrow {
color: $lbry-black;
width: var(--btn-arrow-width);
2017-04-09 17:06:23 +02:00
2018-10-17 19:14:24 +02:00
&:disabled {
opacity: 0.3;
}
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--danger {
background-color: $lbry-red-3;
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--disabled:disabled {
// wtf?
cursor: default;
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--primary {
background-color: rgba($lbry-black, 0.5);
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&:hover {
box-shadow: none;
}
}
2018-07-03 00:22:59 +02:00
2018-10-17 19:14:24 +02:00
&.btn--external-link {
color: $lbry-blue-1;
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--file-actions {
width: var(--btn-height);
height: var(--btn-height);
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
background-color: $lbry-black;
border-radius: var(--btn-radius);
color: $lbry-white;
opacity: 0.8;
padding: 10px;
2017-10-03 04:25:44 +02:00
}
2017-04-09 17:06:23 +02:00
2018-10-17 19:14:24 +02:00
&.btn--header-balance {
color: $lbry-teal-3;
font-size: 14px;
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
@media only screen and (min-width: $large-breakpoint) {
font-size: 18px;
}
2017-08-19 03:46:45 +02:00
2018-10-17 19:14:24 +02:00
.btn__label--balance {
color: $lbry-gray-5;
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&:hover {
background-color: transparent;
2017-04-09 17:06:23 +02:00
2018-10-17 19:14:24 +02:00
.btn__label--balance {
color: $lbry-teal-3;
}
}
2018-03-26 23:32:43 +02:00
}
2017-04-09 17:06:23 +02:00
2018-10-17 19:14:24 +02:00
&.btn--header-publish {
background-color: $lbry-teal-3;
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--home-nav {
background-color: $lbry-white;
box-shadow: none;
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
.btn__content {
padding: 0;
}
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--inverse {
background-color: transparent;
box-shadow: none;
color: $lbry-teal-3;
2017-04-09 17:06:23 +02:00
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--link {
margin: 0;
padding: 0;
2018-04-17 04:21:19 +02:00
2018-10-17 19:14:24 +02:00
background-color: inherit;
border-radius: 0;
box-shadow: none;
color: $lbry-teal-3;
display: inline;
font-size: 1em;
min-width: 0;
text-align: left;
2018-03-26 23:32:43 +02:00
}
2018-10-17 19:14:24 +02:00
&.btn--no-style {
margin: 0;
padding: 0;
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
background-color: inherit;
border-radius: 0;
box-shadow: none;
color: inherit;
font-size: inherit;
font-weight: inherit;
min-width: 0;
2018-03-26 23:32:43 +02:00
}
2018-10-17 19:14:24 +02:00
&.btn--secondary {
background-color: $lbry-teal-3;
}
2018-04-17 04:21:19 +02:00
2018-10-17 19:14:24 +02:00
&.btn--tourniquet {
max-width: 20vw;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--uppercase {
text-transform: uppercase;
2018-03-26 23:32:43 +02:00
}
2018-10-17 19:14:24 +02:00
.icon + .btn__label {
padding-left: 5px;
2018-03-26 23:32:43 +02:00
}
2018-10-17 19:14:24 +02:00
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
.btn--link,
.btn--no-style {
height: auto;
2018-06-18 07:58:32 +02:00
2018-10-17 19:14:24 +02:00
.btn__label,
.btn__content {
padding: 0;
2018-03-26 23:32:43 +02:00
}
}
2018-01-04 06:05:20 +01:00
2018-10-17 19:14:24 +02:00
.icon + .btn__label,
.btn__label + .icon {
margin-left: 5px;
}
.btn--uri-indicator {
display: inline-block;
transition: color var(--animation-duration) var(--animation-style);
&:hover {
color: $lbry-teal-3;
}
2017-04-09 17:06:23 +02:00
}