mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
* fix: channel button color on dark mode * fix: disabled primary button in dark mode * fix: show pending publishes immediately * update lbry-redux * remove duplicate import * use lbry colors for 'new' badge * fix: don't filter transactions in recent transactions * fix: remove unread subscriptions on un-subscribe * handle edits and new files the same for pending publishes * don't loop over transactions if we don't have to * bump lbry-redux
213 lines
3.5 KiB
SCSS
213 lines
3.5 KiB
SCSS
.btn {
|
|
min-width: var(--btn-height);
|
|
height: var(--btn-height);
|
|
|
|
align-items: center;
|
|
background-color: $lbry-teal-5;
|
|
border: none;
|
|
border-radius: var(--btn-radius);
|
|
color: $lbry-white;
|
|
cursor: pointer;
|
|
display: flex;
|
|
fill: currentColor; // for proper icon color
|
|
font-size: 12px;
|
|
justify-content: center;
|
|
padding: 10px;
|
|
position: relative;
|
|
text-decoration: none;
|
|
transition: all var(--animation-duration) var(--animation-style);
|
|
|
|
&:not(:disabled) {
|
|
}
|
|
|
|
&:hover {
|
|
background-color: $lbry-teal-4;
|
|
}
|
|
|
|
&:not(.btn--no-padding):not(.btn--link):not(.btn--no-style) {
|
|
.btn__content {
|
|
align-items: center;
|
|
display: flex;
|
|
padding: 0 8px;
|
|
}
|
|
}
|
|
|
|
&.btn--alt {
|
|
&:not(:disabled) {
|
|
background-color: $lbry-white;
|
|
color: $lbry-black;
|
|
}
|
|
|
|
&:disabled {
|
|
background-color: transparent;
|
|
color: $lbry-gray-5;
|
|
}
|
|
}
|
|
|
|
&.btn--arrow {
|
|
color: $lbry-black;
|
|
width: var(--btn-arrow-width);
|
|
|
|
&:disabled {
|
|
opacity: 0.3;
|
|
}
|
|
}
|
|
|
|
&.btn--danger {
|
|
background-color: $lbry-red-3;
|
|
}
|
|
|
|
&.btn--link {
|
|
padding: 0;
|
|
margin: 0;
|
|
background-color: inherit;
|
|
color: $lbry-teal-4;
|
|
font-size: 1em;
|
|
border-radius: 0;
|
|
display: inline;
|
|
min-width: 0;
|
|
box-shadow: none;
|
|
text-align: left;
|
|
|
|
&:disabled {
|
|
color: $lbry-gray-5;
|
|
}
|
|
}
|
|
|
|
&:disabled {
|
|
cursor: default;
|
|
|
|
&.btn--primary {
|
|
background-color: rgba($lbry-black, 0.5);
|
|
}
|
|
|
|
&:hover {
|
|
box-shadow: none;
|
|
}
|
|
}
|
|
|
|
&.btn--external-link {
|
|
color: $lbry-blue-1;
|
|
}
|
|
|
|
&.btn--file-actions {
|
|
width: var(--btn-height);
|
|
height: var(--btn-height);
|
|
|
|
background-color: $lbry-black;
|
|
border-radius: var(--btn-radius);
|
|
color: $lbry-white;
|
|
opacity: 0.8;
|
|
padding: 10px;
|
|
}
|
|
|
|
&.btn--header-balance {
|
|
color: $lbry-teal-5;
|
|
font-size: 14px;
|
|
|
|
@media only screen and (min-width: $large-breakpoint) {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.btn__label--balance {
|
|
color: $lbry-gray-5;
|
|
}
|
|
|
|
&:hover {
|
|
background-color: transparent;
|
|
|
|
.btn__label--balance {
|
|
color: $lbry-teal-5;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.btn--header-publish {
|
|
background-color: $lbry-teal-5;
|
|
}
|
|
|
|
&.btn--home-nav {
|
|
background-color: $lbry-white;
|
|
box-shadow: none;
|
|
|
|
.btn__content {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
&.btn--inverse {
|
|
background-color: transparent;
|
|
box-shadow: none;
|
|
color: $lbry-teal-5;
|
|
}
|
|
|
|
&.btn--link {
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
background-color: inherit;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
color: $lbry-teal-5;
|
|
display: inline;
|
|
font-size: 1em;
|
|
min-width: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
&.btn--no-style {
|
|
margin: 0;
|
|
padding: 0;
|
|
|
|
background-color: inherit;
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
color: inherit;
|
|
font-size: inherit;
|
|
font-weight: inherit;
|
|
min-width: 0;
|
|
}
|
|
|
|
&.btn--secondary {
|
|
background-color: $lbry-teal-5;
|
|
}
|
|
|
|
&.btn--tourniquet {
|
|
max-width: 20vw;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
&.btn--uppercase {
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.icon + .btn__label {
|
|
padding-left: 5px;
|
|
}
|
|
}
|
|
|
|
.btn--link,
|
|
.btn--no-style {
|
|
height: auto;
|
|
|
|
.btn__label,
|
|
.btn__content {
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
.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-4;
|
|
}
|
|
}
|