2019-02-13 17:27:20 +01:00
|
|
|
@import '~@lbry/components/sass/button/_index.scss';
|
|
|
|
|
|
|
|
.button {
|
|
|
|
border-radius: 0;
|
2019-03-28 17:53:13 +01:00
|
|
|
font-size: 1em;
|
2019-01-09 03:21:36 +01:00
|
|
|
|
|
|
|
svg {
|
2019-01-14 19:40:06 +01:00
|
|
|
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;
|
2019-01-14 19:40:06 +01:00
|
|
|
|
|
|
|
// Buttons that don't have a label
|
|
|
|
&:only-child {
|
2019-02-20 06:20:29 +01:00
|
|
|
color: inherit;
|
2019-01-14 19:40:06 +01:00
|
|
|
stroke-opacity: 1;
|
|
|
|
width: 1.4rem;
|
|
|
|
height: 1.4rem;
|
2019-02-21 23:45:17 +01:00
|
|
|
top: 0.1em;
|
2019-01-14 19:40:06 +01:00
|
|
|
}
|
2019-01-09 03:21:36 +01:00
|
|
|
}
|
|
|
|
|
2019-02-21 23:45:17 +01:00
|
|
|
svg + .button__label,
|
|
|
|
.button__label + svg {
|
2019-01-09 03:21:36 +01:00
|
|
|
margin-left: var(--spacing-vertical-small);
|
2019-01-07 13:30:38 +01:00
|
|
|
}
|
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-12-19 06:44:53 +01: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
|
|
|
}
|
2018-12-19 06:44:53 +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-21 23:45:17 +01:00
|
|
|
// This is a hack and the extra styles are just so this is more specific than the @lbry/components styling
|
|
|
|
// Will make a PR there, but just doing it now for the release - Sean
|
|
|
|
[type='button'].button--inverse {
|
2018-12-19 06:44:53 +01:00
|
|
|
font-size: 1rem;
|
|
|
|
transition: background-color 0.2s;
|
2019-02-21 23:45:17 +01:00
|
|
|
border-radius: 0;
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
html[data-mode='dark'] & {
|
2019-02-21 23:45:17 +01:00
|
|
|
&:not(:hover) {
|
|
|
|
border-color: rgba($lbry-white, 0.1);
|
|
|
|
background-color: rgba($lbry-black, 0.3);
|
|
|
|
}
|
2017-08-19 03:46:45 +02:00
|
|
|
|
2019-02-21 23:45:17 +01:00
|
|
|
&:hover {
|
|
|
|
border-color: rgba($lbry-white, 0.1);
|
|
|
|
background-color: rgba($lbry-white, 0.1);
|
|
|
|
color: $lbry-white;
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2018-03-26 23:32:43 +02:00
|
|
|
|
2019-02-21 23:45:17 +01:00
|
|
|
html[data-mode='light'] & {
|
|
|
|
&:not(:hover) {
|
|
|
|
background-color: $lbry-white;
|
|
|
|
color: $lbry-black;
|
|
|
|
}
|
2017-04-09 17:06:23 +02:00
|
|
|
|
2019-02-21 23:45:17 +01:00
|
|
|
&:hover {
|
|
|
|
background-color: $lbry-gray-1;
|
|
|
|
color: $lbry-black;
|
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
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2019-02-21 23:45:17 +01:00
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
.button--selected {
|
2019-01-15 17:16:30 +01:00
|
|
|
font-weight: 800;
|
|
|
|
color: $lbry-teal-5;
|
|
|
|
|
|
|
|
&:disabled {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
html[data-mode='dark'] & {
|
2019-01-15 17:16:30 +01:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|