2020-07-24 19:17:43 +02:00
|
|
|
.button {
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-decoration: none;
|
|
|
|
cursor: pointer;
|
2020-05-11 17:54:39 +02:00
|
|
|
}
|
2020-04-30 17:42:40 +02:00
|
|
|
|
2020-05-11 17:54:39 +02:00
|
|
|
.button--primary,
|
|
|
|
.button--secondary,
|
|
|
|
.button--alt,
|
|
|
|
.button--link {
|
2020-07-24 19:17:43 +02:00
|
|
|
border-radius: var(--border-radius);
|
|
|
|
|
2020-05-11 17:54:39 +02:00
|
|
|
&:focus {
|
|
|
|
@include focus;
|
|
|
|
z-index: 2; // Ensure focus box-shadow is always visible on every button side
|
2020-04-30 17:42:40 +02:00
|
|
|
}
|
2020-04-01 21:36:59 +02:00
|
|
|
}
|
|
|
|
|
2020-07-24 19:17:43 +02:00
|
|
|
.button--primary,
|
|
|
|
.button--secondary,
|
|
|
|
.button--alt {
|
|
|
|
height: var(--height-button);
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
padding: var(--spacing-s) var(--spacing-m);
|
|
|
|
line-height: 1.2;
|
|
|
|
font-weight: var(--font-weight-bold);
|
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
font-size: var(--font-small);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button--primary {
|
|
|
|
background-color: var(--color-button-primary-bg);
|
|
|
|
color: var(--color-button-primary-text);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: var(--color-button-primary-hover-text);
|
|
|
|
background-color: var(--color-button-primary-bg-hover);
|
|
|
|
}
|
2020-09-15 21:46:36 +02:00
|
|
|
|
|
|
|
.credit-amount {
|
|
|
|
color: var(--color-button-primary-text);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
margin-left: 3px;
|
|
|
|
margin-right: 2px;
|
|
|
|
}
|
|
|
|
}
|
2020-07-24 19:17:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.button--secondary {
|
|
|
|
background-color: var(--color-button-secondary-bg);
|
2020-08-26 19:19:03 +02:00
|
|
|
border: 1px solid var(--color-button-secondary-border);
|
2020-07-24 19:17:43 +02:00
|
|
|
color: var(--color-button-secondary-text);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--color-button-secondary-bg-hover);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button--alt {
|
|
|
|
background-color: var(--color-button-alt-bg);
|
|
|
|
color: var(--color-button-alt-text);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--color-button-alt-bg-hover);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button--icon {
|
|
|
|
width: 5rem;
|
|
|
|
height: 5rem;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 50%;
|
|
|
|
border-radius: 50%;
|
|
|
|
transition: background-color 0.2s;
|
|
|
|
background-color: var(--color-primary);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--color-button-primary-bg-hover);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.button--play {
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3Cg stroke='white' stroke-width='2' fill='white' fill-rule='evenodd' stroke-linejoin='round'%3E %3Cpolygon points='5 21 5 3 21 12'/%3E %3C/g%3E %3C/svg%3E");
|
|
|
|
background-position: calc(50% + 0.1rem) center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.button--view {
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E %3Cg stroke='white' stroke-width='2' fill='none' fill-rule='evenodd'%3E %3Cpath d='M2, 12 C2, 12 5, 5 12, 5 C19, 5 22, 12 22, 12 C22, 12 19, 19 12, 19 C5, 19 2, 12 2, 12 Z' stroke-linejoin='round'/%3E %3Ccircle cx='12' cy='12' r='3'/%3E %3Cpath d='M12, 5 L12, 3' stroke-linecap='round'/%3E %3Cpath d='M18, 6.5 L19, 5' stroke-linecap='round'/%3E %3Cpath d='M21, 10 L22.5, 9' stroke-linecap='round'/%3E %3Cpath d='M1.5, 10 L3, 9' stroke-linecap='round' transform='translate(2.250000, 9.500000) scale(1, -1) translate(-2.250000, -9.500000)'/%3E %3Cpath d='M5, 6.5 L6, 5' stroke-linecap='round' transform='translate(5.500000, 5.750000) scale(-1, 1) translate(-5.500000, -5.750000)'/%3E %3C/g%3E %3C/svg%3E");
|
|
|
|
background-position: center calc(50% + 0.1rem);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-08 16:21:27 +01:00
|
|
|
.vjs-fullscreen-control {
|
|
|
|
order: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-button--theater-mode.vjs-button {
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
@media (min-width: $breakpoint-medium) {
|
|
|
|
display: block;
|
|
|
|
order: 1;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 -2 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-monitor'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus:not(:focus-visible) {
|
2021-02-18 05:15:38 +01:00
|
|
|
// Need to repeat these styles because of video.js weirdness
|
2021-03-05 04:01:16 +01:00
|
|
|
// see: https://github.com/lbryio/lbry-desktop/pull/5549#discussion_r580406932
|
2021-02-18 05:15:38 +01:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 -2 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-monitor'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='8' y1='21' x2='16' y2='21'%3E%3C/line%3E%3Cline x1='12' y1='17' x2='12' y2='21'%3E%3C/line%3E%3C/svg%3E");
|
2021-01-08 16:21:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-24 19:17:43 +02:00
|
|
|
.button--link {
|
|
|
|
color: var(--color-link);
|
|
|
|
transition: color 0.2s;
|
|
|
|
word-break: break-all;
|
|
|
|
font-weight: var(--font-weight-bold);
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
color: var(--color-link-hover);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button--danger {
|
|
|
|
@extend .button--link;
|
|
|
|
color: var(--color-error);
|
|
|
|
}
|
|
|
|
|
2019-02-15 02:52:10 +01:00
|
|
|
.button--uri-indicator {
|
2019-11-22 22:13:00 +01:00
|
|
|
@extend .button--link;
|
2020-01-20 17:47:03 +01:00
|
|
|
color: var(--color-text-subtitle);
|
2019-02-20 06:20:29 +01:00
|
|
|
max-width: 100%;
|
2019-02-18 18:24:56 +01:00
|
|
|
text-align: left;
|
2019-02-15 02:52:10 +01:00
|
|
|
transition: color 0.2s;
|
|
|
|
|
2020-11-06 18:52:17 +01:00
|
|
|
.channel-name {
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2019-10-15 01:38:15 +02:00
|
|
|
.markdown-preview & {
|
2019-10-15 01:08:29 +02:00
|
|
|
height: initial;
|
|
|
|
vertical-align: initial;
|
|
|
|
}
|
2019-06-11 20:10:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.button--close {
|
2019-11-22 22:13:00 +01:00
|
|
|
z-index: 1;
|
2019-06-11 20:10:58 +02:00
|
|
|
position: absolute;
|
2020-06-01 19:03:19 +02:00
|
|
|
top: var(--spacing-xxs);
|
|
|
|
right: var(--spacing-xxs);
|
2019-06-11 20:10:58 +02:00
|
|
|
padding: 0.3rem;
|
|
|
|
transition: all var(--transition-duration) var(--transition-style);
|
2019-08-13 07:35:13 +02:00
|
|
|
border-radius: var(--card-radius);
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-text);
|
2020-01-14 16:49:22 +01:00
|
|
|
font-size: var(--font-body);
|
|
|
|
|
|
|
|
svg {
|
|
|
|
height: 1rem;
|
|
|
|
width: 1rem;
|
|
|
|
}
|
2019-06-11 20:10:58 +02:00
|
|
|
|
|
|
|
&:hover {
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-button-primary-text);
|
|
|
|
background-color: var(--color-button-primary-bg);
|
2019-02-15 02:52:10 +01:00
|
|
|
}
|
2019-12-18 06:27:08 +01:00
|
|
|
|
2020-05-11 17:54:39 +02:00
|
|
|
&:focus {
|
|
|
|
@include focus;
|
|
|
|
}
|
|
|
|
|
2019-12-18 06:27:08 +01:00
|
|
|
@media (max-width: $breakpoint-small) {
|
2020-12-11 19:33:27 +01:00
|
|
|
padding: 0.8rem 0.8rem;
|
2019-12-18 06:27:08 +01:00
|
|
|
}
|
2019-02-15 02:52:10 +01:00
|
|
|
}
|
2019-06-11 20:10:58 +02:00
|
|
|
|
2020-04-13 21:16:07 +02:00
|
|
|
.button--header-close {
|
|
|
|
background-color: var(--color-primary-alt);
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: var(--spacing-s);
|
2020-04-13 21:16:07 +02:00
|
|
|
}
|
|
|
|
|
2019-08-14 20:09:45 +02:00
|
|
|
.button--download-link {
|
|
|
|
.button__label {
|
|
|
|
white-space: normal;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-30 22:46:20 +02:00
|
|
|
.button--file-action {
|
|
|
|
@extend .button--alt;
|
|
|
|
background-color: transparent;
|
|
|
|
margin-right: var(--spacing-m);
|
|
|
|
padding: 0 var(--spacing-xxs);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
stroke: #777;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button__label {
|
|
|
|
min-width: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--color-button-alt-bg);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:focus {
|
|
|
|
box-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-24 19:17:43 +02:00
|
|
|
.button--disabled {
|
|
|
|
opacity: 0.5;
|
|
|
|
}
|
|
|
|
|
2020-11-10 06:21:04 +01:00
|
|
|
.button--highlighted {
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
}
|
|
|
|
|
2021-03-10 19:34:21 +01:00
|
|
|
.button--emoji {
|
|
|
|
font-size: 1.25rem;
|
|
|
|
border-radius: 3rem;
|
|
|
|
}
|
|
|
|
|
2019-06-17 22:32:38 +02:00
|
|
|
.button__content {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
min-width: 0;
|
2019-07-21 23:31:22 +02:00
|
|
|
height: 100%;
|
2019-06-17 22:32:38 +02:00
|
|
|
}
|
|
|
|
|
2019-06-11 20:10:58 +02:00
|
|
|
.button__label {
|
2019-06-17 22:32:38 +02:00
|
|
|
white-space: nowrap;
|
2019-06-11 20:10:58 +02:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Handle icons on the left or right side of the button label
|
2020-09-02 22:08:37 +02:00
|
|
|
svg + .button__label {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-left: var(--spacing-s);
|
2019-06-11 20:10:58 +02:00
|
|
|
}
|
2020-01-02 17:30:27 +01:00
|
|
|
|
2020-09-02 22:08:37 +02:00
|
|
|
.button__label + svg {
|
|
|
|
margin-left: var(--spacing-xs);
|
|
|
|
}
|
|
|
|
|
2020-01-02 17:30:27 +01:00
|
|
|
.button-toggle {
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: 0 var(--spacing-m);
|
2020-01-02 17:30:27 +01:00
|
|
|
height: var(--height-button);
|
|
|
|
font-size: var(--font-base);
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
border-left-width: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
margin: 0;
|
2020-01-02 21:36:03 +01:00
|
|
|
background-color: var(--color-card-background);
|
2021-04-13 03:43:41 +02:00
|
|
|
color: var(--color-text);
|
2020-09-02 22:08:37 +02:00
|
|
|
|
2020-02-10 20:43:24 +01:00
|
|
|
@media (max-width: $breakpoint-small) {
|
2020-06-01 19:03:19 +02:00
|
|
|
padding: var(--spacing-m) var(--spacing-s);
|
2020-02-10 20:43:24 +01:00
|
|
|
}
|
2020-01-02 17:30:27 +01:00
|
|
|
|
|
|
|
&:first-of-type {
|
|
|
|
border-left-width: 1px;
|
|
|
|
border-top-left-radius: var(--border-radius);
|
|
|
|
border-bottom-left-radius: var(--border-radius);
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-of-type {
|
|
|
|
border-top-right-radius: var(--border-radius);
|
|
|
|
border-bottom-right-radius: var(--border-radius);
|
2020-11-10 17:07:00 +01:00
|
|
|
// since we're abusing "button-toggle" let it stand alone properly
|
|
|
|
&:not(:first-of-type) {
|
|
|
|
margin-right: var(--spacing-s);
|
|
|
|
}
|
2020-01-02 17:30:27 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-06-15 16:41:59 +02:00
|
|
|
.button-toggle--expandformobile {
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
border-radius: var(--border-radius);
|
|
|
|
border: 1px solid var(--color-border);
|
|
|
|
|
|
|
|
&:not(:first-of-type) {
|
|
|
|
margin-top: var(--spacing-s);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-02 17:30:27 +01:00
|
|
|
.button-toggle--active {
|
|
|
|
color: var(--color-primary);
|
|
|
|
background-color: var(--color-primary-alt);
|
|
|
|
|
|
|
|
svg {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: default;
|
|
|
|
text-decoration: none;
|
2020-05-11 17:54:39 +02:00
|
|
|
background-color: var(--color-primary-alt);
|
2020-01-02 17:30:27 +01:00
|
|
|
}
|
|
|
|
}
|
2020-02-10 20:43:24 +01:00
|
|
|
|
|
|
|
.button-toggle--custom {
|
|
|
|
color: var(--color-primary);
|
|
|
|
svg {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
2020-06-08 20:42:29 +02:00
|
|
|
|
2020-06-10 00:09:24 +02:00
|
|
|
.button-toggle__label {
|
|
|
|
@extend label;
|
|
|
|
display: inline-block;
|
|
|
|
margin-top: -4px;
|
|
|
|
}
|
|
|
|
|
2020-07-28 01:12:59 +02:00
|
|
|
.button-tab-group {
|
|
|
|
margin-bottom: var(--spacing-l);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-group,
|
|
|
|
.button-tab-group {
|
2020-06-08 20:42:29 +02:00
|
|
|
display: flex;
|
|
|
|
|
2020-06-10 00:09:24 +02:00
|
|
|
.button:first-child:not(:only-child) {
|
2020-06-08 20:42:29 +02:00
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-right: 1px solid var(--color-button-border);
|
|
|
|
}
|
|
|
|
|
|
|
|
.button:nth-child(2) {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
2020-07-08 09:38:16 +02:00
|
|
|
|
|
|
|
.button-toggle-group-action {
|
|
|
|
position: absolute; // Centers the button along toggle buttons
|
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
position: relative;
|
|
|
|
top: var(--spacing-s);
|
|
|
|
}
|
|
|
|
}
|
2021-03-25 12:24:49 +01:00
|
|
|
|
|
|
|
.button--hash-id {
|
|
|
|
@include font-mono;
|
|
|
|
}
|