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

62 lines
1.1 KiB
SCSS
Raw Normal View History

2019-02-13 12:27:20 -04:00
.button {
2019-05-01 01:16:12 -04:00
display: inline-block;
2019-11-07 14:39:22 -05:00
font-weight: var(--font-weight-base);
2019-07-21 17:31:22 -04:00
}
2019-02-14 21:52:10 -04:00
.button--uri-indicator {
2019-11-22 16:13:00 -05:00
@extend .button--link;
2019-02-20 00:20:29 -05:00
max-width: 100%;
2019-05-01 01:16:12 -04:00
height: 1.2em;
2019-05-06 00:49:16 -04:00
vertical-align: text-top;
2019-02-18 12:24:56 -05:00
text-align: left;
text-overflow: ellipsis;
2019-02-14 21:52:10 -04:00
transition: color 0.2s;
2019-10-14 17:38:15 -06:00
.markdown-preview & {
2019-10-14 17:08:29 -06:00
height: initial;
vertical-align: initial;
}
2019-06-11 14:10:58 -04:00
}
.button--close {
2019-11-22 16:13:00 -05:00
z-index: 1;
2019-06-11 14:10:58 -04:00
position: absolute;
top: var(--spacing-miniscule);
right: var(--spacing-miniscule);
padding: 0.3rem;
transition: all var(--transition-duration) var(--transition-style);
2019-08-13 01:35:13 -04:00
border-radius: var(--card-radius);
2019-11-22 16:13:00 -05:00
color: var(--color-text);
2019-06-11 14:10:58 -04:00
&:hover {
2019-11-22 16:13:00 -05:00
color: var(--color-button-primary-text);
background-color: var(--color-button-primary-bg);
2019-02-14 21:52:10 -04:00
}
}
2019-06-11 14:10:58 -04:00
2019-08-14 14:09:45 -04:00
.button--download-link {
.button__label {
white-space: normal;
text-align: left;
}
}
2019-06-17 16:32:38 -04:00
.button__content {
display: flex;
align-items: center;
min-width: 0;
2019-07-21 17:31:22 -04:00
height: 100%;
2019-06-17 16:32:38 -04:00
}
2019-06-11 14:10:58 -04:00
.button__label {
2019-06-17 16:32:38 -04:00
white-space: nowrap;
2019-06-11 14:10:58 -04:00
overflow: hidden;
text-overflow: ellipsis;
}
// Handle icons on the left or right side of the button label
svg + .button__label,
.button__label + svg {
2019-07-21 17:31:22 -04:00
margin-left: var(--spacing-small);
2019-06-11 14:10:58 -04:00
}