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

225 lines
3.7 KiB
SCSS
Raw Normal View History

2018-03-26 23:32:43 +02:00
.btn {
min-width: var(--btn-height);
2018-10-17 19:14:24 +02:00
height: var(--btn-height);
align-items: center;
2018-10-19 22:16:39 +02:00
background-color: $lbry-teal-5;
2018-10-17 19:14:24 +02:00
border: none;
border-radius: var(--btn-radius);
color: $lbry-white;
2018-10-17 19:14:24 +02:00
cursor: pointer;
2018-03-26 23:32:43 +02:00
display: flex;
fill: currentColor; // for proper icon color
font-size: 12px;
2018-10-17 19:14:24 +02:00
justify-content: center;
padding: 10px;
position: relative;
text-decoration: none;
2018-03-26 23:32:43 +02:00
transition: all var(--animation-duration) var(--animation-style);
2018-01-04 06:05:20 +01:00
2018-03-26 23:32:43 +02:00
&:not(:disabled) {
2017-04-09 17:06:23 +02:00
}
2018-01-04 06:05:20 +01:00
2018-03-26 23:32:43 +02:00
&:hover {
2018-10-19 22:16:39 +02:00
background-color: $lbry-teal-4;
2017-04-09 17:06:23 +02:00
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&:not(.btn--no-padding):not(.btn--link):not(.btn--no-style) {
.btn__content {
align-items: center;
display: flex;
padding: 0 8px;
}
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--alt {
&:not(:disabled) {
background-color: $lbry-white;
color: $lbry-black;
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&:disabled {
background-color: transparent;
color: $lbry-gray-5;
}
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--arrow {
color: $lbry-black;
width: var(--btn-arrow-width);
2017-04-09 17:06:23 +02:00
2018-10-17 19:14:24 +02:00
&:disabled {
opacity: 0.3;
}
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--danger {
background-color: $lbry-red-3;
}
2018-03-26 23:32:43 +02:00
2018-10-19 22:38:07 +02:00
&.btn--link {
padding: 0;
margin: 0;
background-color: inherit;
color: $lbry-teal-4;
font-size: 1em;
border-radius: 0;
display: inline;
min-width: 0;
box-shadow: none;
text-align: left;
&:disabled {
color: $lbry-gray-5;
}
}
&:disabled {
2018-10-17 19:14:24 +02:00
cursor: default;
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--primary {
background-color: rgba($lbry-black, 0.5);
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&:hover {
box-shadow: none;
}
}
2018-07-03 00:22:59 +02:00
2018-10-17 19:14:24 +02:00
&.btn--external-link {
color: $lbry-blue-1;
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--file-actions {
width: var(--btn-height);
height: var(--btn-height);
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
background-color: $lbry-black;
border-radius: var(--btn-radius);
color: $lbry-white;
opacity: 0.8;
padding: 10px;
2017-10-03 04:25:44 +02:00
}
2017-04-09 17:06:23 +02:00
2018-10-17 19:14:24 +02:00
&.btn--header-balance {
2018-10-19 22:16:39 +02:00
color: $lbry-teal-5;
2018-10-17 19:14:24 +02:00
font-size: 14px;
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
@media only screen and (min-width: $large-breakpoint) {
font-size: 18px;
}
2017-08-19 03:46:45 +02:00
2018-10-17 19:14:24 +02:00
.btn__label--balance {
color: $lbry-gray-5;
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&:hover {
background-color: transparent;
2017-04-09 17:06:23 +02:00
2018-10-17 19:14:24 +02:00
.btn__label--balance {
2018-10-19 22:16:39 +02:00
color: $lbry-teal-5;
2018-10-17 19:14:24 +02:00
}
}
2018-03-26 23:32:43 +02:00
}
2017-04-09 17:06:23 +02:00
2018-10-17 19:14:24 +02:00
&.btn--header-publish {
2018-10-19 22:16:39 +02:00
background-color: $lbry-teal-5;
2018-10-17 19:14:24 +02:00
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--home-nav {
background-color: $lbry-white;
box-shadow: none;
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
.btn__content {
padding: 0;
}
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--inverse {
background-color: transparent;
box-shadow: none;
2018-10-19 22:16:39 +02:00
color: $lbry-teal-5;
2017-04-09 17:06:23 +02:00
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--link {
margin: 0;
padding: 0;
2018-04-17 04:21:19 +02:00
2018-10-17 19:14:24 +02:00
background-color: inherit;
border-radius: 0;
box-shadow: none;
2018-10-19 22:16:39 +02:00
color: $lbry-teal-5;
2018-10-17 19:14:24 +02:00
display: inline;
font-size: 1em;
min-width: 0;
text-align: left;
transition: none;
2018-03-26 23:32:43 +02:00
}
2018-10-17 19:14:24 +02:00
&.btn--no-style {
margin: 0;
padding: 0;
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
background-color: inherit;
border-radius: 0;
box-shadow: none;
color: inherit;
font-size: inherit;
font-weight: inherit;
min-width: 0;
2018-03-26 23:32:43 +02:00
}
2018-10-17 19:14:24 +02:00
&.btn--secondary {
2018-10-19 22:16:39 +02:00
background-color: $lbry-teal-5;
2018-10-17 19:14:24 +02:00
}
2018-04-17 04:21:19 +02:00
2018-10-17 19:14:24 +02:00
&.btn--tourniquet {
max-width: 20vw;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
&.btn--uppercase {
text-transform: uppercase;
2018-03-26 23:32:43 +02:00
}
2018-11-08 20:48:38 +01:00
&.btn--load-screen {
display: inline-block;
border-bottom: 1px solid $lbry-white;
&:hover {
color: $lbry-blue-1;
border-bottom: 1px solid $lbry-blue-1;
}
}
2018-10-17 19:14:24 +02:00
.icon + .btn__label {
padding-left: 5px;
2018-03-26 23:32:43 +02:00
}
2018-10-17 19:14:24 +02:00
}
2018-03-26 23:32:43 +02:00
2018-10-17 19:14:24 +02:00
.btn--link,
.btn--no-style {
height: auto;
2018-06-18 07:58:32 +02:00
2018-10-17 19:14:24 +02:00
.btn__label,
.btn__content {
padding: 0;
2018-03-26 23:32:43 +02:00
}
}
2018-01-04 06:05:20 +01:00
2018-10-17 19:14:24 +02:00
.icon + .btn__label,
.btn__label + .icon {
margin-left: 5px;
}
.btn--uri-indicator {
display: inline-block;
transition: color var(--animation-duration) var(--animation-style);
&:hover {
2018-10-19 22:16:39 +02:00
color: $lbry-teal-4;
2018-10-17 19:14:24 +02:00
}
2017-04-09 17:06:23 +02:00
}