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

84 lines
1.6 KiB
SCSS
Raw Normal View History

2019-02-13 17:27:20 +01:00
@import '~@lbry/components/sass/button/_index.scss';
.button {
2019-05-01 07:16:12 +02:00
display: inline-block;
.button__content {
display: flex;
align-items: center;
height: 100%;
}
2019-01-09 03:21:36 +01:00
svg {
stroke-width: 1.9;
2019-01-09 18:53:05 +01:00
width: 1.2rem;
height: 1.2rem;
2019-01-09 03:21:36 +01:00
position: relative;
2019-02-20 06:20:29 +01:00
color: $lbry-gray-5;
// Buttons that don't have a label
&:only-child {
2019-02-20 06:20:29 +01:00
color: inherit;
width: 1.4rem;
height: 1.4rem;
}
2019-01-09 03:21:36 +01:00
}
2019-05-01 07:16:12 +02:00
// Handle icons on the left or right side of the button label
svg + .button__label,
.button__label + svg {
2019-05-01 07:16:12 +02:00
margin-left: var(--spacing-vertical-miniscule);
2019-01-09 03:21:36 +01:00
}
}
2017-04-09 17:06:23 +02:00
2019-02-20 06:20:29 +01:00
.button--primary {
svg {
color: white;
}
}
2019-05-01 07:16:12 +02:00
// Play/View button that is overlayed ontop of the video player
.button--icon {
height: 5rem;
width: 5rem;
border-radius: 2.5rem;
}
2017-04-09 17:06:23 +02:00
2019-05-01 07:16:12 +02:00
.button--primary,
.button--alt,
.button--inverse {
height: var(--button-height);
line-height: var(--button-height);
border-radius: var(--button-radius);
font-size: 1.1rem;
padding-top: 0;
padding-bottom: 0;
box-sizing: border-box;
}
2019-05-01 07:16:12 +02:00
// We need the :disabled to override the default disabled button styles
// This is a little different because we still want to keep the button styled
// since it acts as an "active" state
.button--subscription-view-selected:disabled {
color: $lbry-teal-5;
2019-05-01 07:16:12 +02:00
border-bottom: 1px solid $lbry-teal-5;
opacity: 1;
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
color: $lbry-teal-3;
}
}
2019-02-15 02:52:10 +01:00
.button--uri-indicator {
2019-02-20 06:20:29 +01:00
max-width: 100%;
2019-05-01 07:16:12 +02:00
height: 1.2em;
2019-02-18 18:24:56 +01:00
overflow: hidden;
text-align: left;
text-overflow: ellipsis;
2019-02-15 02:52:10 +01:00
transition: color 0.2s;
&:hover {
color: $lbry-teal-3;
}
}