lbry-desktop/src/ui/scss/init/_gui.scss

215 lines
3.6 KiB
SCSS
Raw Normal View History

// Generic html styles used accross the App
// component specific styling should go in the component scss file
html {
@include font-sans;
2019-06-28 09:33:07 +02:00
font-size: 12px;
height: 100%;
overflow-x: hidden;
}
body {
color: $lbry-black;
cursor: default;
font-size: 1rem;
font-weight: 400;
height: 100%;
line-height: 1.5;
overflow: hidden;
2019-06-28 09:33:07 +02:00
background-color: mix($lbry-white, $lbry-gray-1, 70%);
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
2019-06-11 20:10:58 +02:00
background-color: $lbry-black;
color: mix($lbry-white, $lbry-gray-3, 50%);
}
}
*::selection {
background-color: $lbry-teal-3;
color: $lbry-white;
}
blockquote {
margin-bottom: 1rem;
padding: 0.8rem;
background-color: rgba($lbry-cyan-1, 0.1);
border-left: 0.5rem solid $lbry-cyan-5;
}
code {
@include font-mono;
background-color: $lbry-gray-1;
font-size: 1.5rem;
}
.columns {
display: flex;
justify-content: space-between;
> * {
flex-grow: 1;
2019-06-17 22:32:38 +02:00
flex-basis: 0;
2019-06-17 22:32:38 +02:00
&:first-child {
margin-right: 1.5rem;
}
}
}
.divider__horizontal {
border-top: $lbry-gray-2;
margin: 16px 0;
}
.hidden {
display: none;
}
.disabled {
opacity: 0.3;
pointer-events: none;
}
.column {
display: flex;
.column__item:not(:first-child) {
padding-left: $spacing-width * 2/3;
2019-02-13 17:27:20 +01:00
flex: 1;
}
}
.truncated-text {
2019-02-18 18:24:56 +01:00
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
word-break: break-word;
}
.busy-indicator__loader {
min-width: 16px;
min-height: 8px;
margin: -1rem 0;
padding: 0 30px;
background: url('../../../static/img/busy.gif') no-repeat center center;
display: inline-block;
vertical-align: middle;
&:first-child {
padding-left: 2px;
}
&:last-child {
padding-right: 2px;
}
}
.alert-text {
color: $lbry-red-3;
font-weight: 600;
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
color: $lbry-red-1;
}
}
.card {
2019-02-13 17:27:20 +01:00
.help:last-child {
margin-bottom: 0;
}
}
.help {
2019-03-29 15:23:32 +01:00
font-size: 1rem;
background-color: rgba($lbry-blue-1, 0.1);
2019-06-17 22:32:38 +02:00
color: darken($lbry-gray-5, 15%);
display: block;
padding: 1rem;
2019-06-11 20:10:58 +02:00
margin-top: var(--spacing-medium);
margin-bottom: var(--spacing-medium);
2019-05-07 04:35:04 +02:00
border-radius: 5px;
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
color: inherit;
}
}
2019-02-13 17:27:20 +01:00
.help--warning {
@extend .help;
2019-02-13 17:27:20 +01:00
background-color: $lbry-yellow-3;
color: $lbry-black;
2019-02-20 06:20:29 +01:00
.button--link:not(:disabled) {
2019-02-13 17:27:20 +01:00
// The normal colors we use for .button--link are too light for the warning background
// This just darkens them a bit and adds an border-bottom so they are easier to see.
$altered-color: mix($lbry-teal-5, $lbry-black, 80%);
$altered-hover-color: mix($lbry-teal-5, $lbry-black, 60%);
&:not(.button--disabled) {
color: $altered-color;
border-bottom: 1px solid $altered-color;
&:hover {
color: $altered-hover-color;
}
html[data-mode='dark'] & {
color: $altered-color;
border-bottom: 1px solid $altered-color;
&:hover {
color: $altered-hover-color;
}
}
}
}
html[data-mode='dark'] & {
background-color: $lbry-yellow-3;
2019-02-13 17:27:20 +01:00
color: $lbry-black;
}
}
.empty {
color: $lbry-gray-5;
font-style: italic;
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
color: inherit;
}
}
.qr-code {
width: 134px;
height: 134px;
border: 3px solid $lbry-white;
&.qr-code--right-padding {
margin-right: $spacing-vertical * 2/3;
}
&.qr-code--top-padding {
margin-top: $spacing-vertical * 2/3;
}
}
.error-text {
color: $lbry-red-5;
2019-02-20 06:20:29 +01:00
[data-mode='dark'] & {
color: $lbry-red-3;
}
}
.thumbnail-preview {
width: var(--thumbnail-preview-width);
height: var(--thumbnail-preview-height);
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;
}