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

215 lines
3.5 KiB
SCSS
Raw Normal View History

// Generic html styles used accross the App
// component specific styling should go in the component scss file
*,
*::before,
*::after {
-webkit-user-select: text;
}
html {
@include font-sans;
background-color: $lbry-white;
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-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
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-basis: 0;
flex-grow: 1;
&:not(:last-of-type) {
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 {
@include truncate;
}
.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-02-13 17:27:20 +01:00
font-size: 0.9em;
background-color: rgba($lbry-blue-1, 0.1);
color: $lbry-gray-5;
display: block;
padding: 1rem;
margin-top: var(--spacing-vertical-large);
margin-bottom: var(--spacing-vertical-large);
2019-02-13 17:27:20 +01:00
html[data-mode='dark'] & {
color: inherit;
}
}
2019-02-13 17:27:20 +01:00
.help--warning {
background-color: $lbry-yellow-3;
color: $lbry-black;
.button--link {
// 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-4;
color: $lbry-black;
}
}
.meta {
color: $lbry-gray-1;
font-size: 0.8rem;
}
.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;
}
.thumbnail-preview {
width: var(--thumbnail-preview-width);
height: var(--thumbnail-preview-height);
background-position: 50% 50%;
background-repeat: no-repeat;
background-size: cover;
}