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

130 lines
1.9 KiB
SCSS
Raw Normal View History

2019-02-13 17:27:20 +01:00
@import '~@lbry/components/sass/button/_index.scss';
.button {
border-radius: 0;
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
top: 1px;
color: $lbry-gray-5;
// Buttons that don't have a label
&:only-child {
2019-02-20 06:20:29 +01:00
color: inherit;
stroke-opacity: 1;
width: 1.4rem;
height: 1.4rem;
top: 0;
}
2019-01-09 03:21:36 +01:00
}
2019-02-13 17:27:20 +01:00
svg + .button__label {
2019-01-09 03:21:36 +01:00
margin-left: var(--spacing-vertical-small);
}
2018-03-26 23:32:43 +02:00
2019-02-13 17:27:20 +01:00
&.button--icon {
border-radius: 50%;
2018-10-17 19:14:24 +02:00
}
}
2018-03-26 23:32:43 +02:00
2019-02-13 17:27:20 +01:00
.button--primary,
.button--alt,
.button--no-style {
2019-01-09 03:21:36 +01:00
svg {
2019-02-13 17:27:20 +01:00
width: 1.2rem;
height: 1.2rem;
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 {
height: var(--spacing-l);
svg {
color: white;
}
svg + .button__label {
position: relative;
top: -0.05em;
}
}
2019-02-13 17:27:20 +01:00
.button--inverse {
font-size: 1rem;
transition: background-color 0.2s;
2018-03-26 23:32:43 +02:00
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
border-color: rgba($lbry-white, 0.1);
2019-02-13 17:27:20 +01:00
background-color: rgba($lbry-black, 0.3);
}
2017-08-19 03:46:45 +02:00
&:not(:hover) {
2019-02-13 17:27:20 +01:00
background-color: $lbry-white;
}
2018-03-26 23:32:43 +02:00
&:hover {
background-color: $lbry-gray-1;
2019-01-09 03:21:36 +01:00
color: $lbry-black;
2017-04-09 17:06:23 +02:00
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
background-color: rgba($lbry-white, 0.1);
2019-02-07 03:04:19 +01:00
color: $lbry-white;
2018-10-17 19:14:24 +02:00
}
2018-03-26 23:32:43 +02:00
}
2017-04-09 17:06:23 +02:00
2019-02-13 17:27:20 +01:00
.button__content {
2019-01-09 03:21:36 +01:00
svg {
color: $lbry-gray-4;
}
2018-10-17 19:14:24 +02:00
}
}
2019-02-20 06:20:29 +01:00
.button--link:not(:disabled) {
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
2019-02-20 06:20:29 +01:00
&:not(:hover) {
color: $lbry-teal-4;
}
&:hover {
color: $lbry-teal-3;
}
2019-02-13 17:27:20 +01:00
}
}
2018-03-26 23:32:43 +02:00
2019-02-13 17:27:20 +01:00
.button--load-screen {
border-bottom: 1px solid $lbry-white;
display: inline-block;
2018-03-26 23:32:43 +02:00
&:hover {
border-bottom: 1px solid $lbry-blue-1;
color: $lbry-blue-1;
2018-10-17 19:14:24 +02:00
}
}
2018-04-17 04:21:19 +02:00
2019-02-13 17:27:20 +01:00
.button--selected {
font-weight: 800;
color: $lbry-teal-5;
&:disabled {
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-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;
}
}