lbry-desktop/src/ui/scss/init/_gui.scss
2019-10-01 01:48:43 -04:00

299 lines
4.2 KiB
SCSS

// Generic html styles used accross the App
// component specific styling should go in the component scss file
*::selection {
background-color: $lbry-teal-3;
color: $lbry-white;
}
html {
@include font-sans;
font-size: 14px;
height: 100%;
min-height: 100%;
overflow-x: hidden;
&[data-mode='dark'] {
background-color: var(--dm-color-08);
}
}
body {
color: $lbry-black;
cursor: default;
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
background-color: var(--color-background);
[data-mode='dark'] & {
background-color: var(--dm-color-08);
color: var(--dm-color-01);
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 1rem;
}
p {
font-size: var(--font-body);
}
ul,
ol {
list-style: initial;
margin-bottom: var(--spacing-large);
li {
list-style-position: outside;
margin: var(--spacing-medium) 0;
}
}
.ul--no-style {
list-style: none;
margin-bottom: 0;
li {
margin: 0;
}
}
dl {
display: flex;
flex-direction: row;
flex-wrap: wrap;
margin-top: var(--spacing-medium);
}
dt {
flex-basis: 40%;
text-align: left;
font-weight: bold;
}
dd {
flex-basis: 55%;
flex-grow: 1;
margin: 0;
text-align: right;
}
dt,
dd {
padding: var(--spacing-medium) var(--spacing-small);
border-top: 1px solid $lbry-gray-1;
&:last-of-type {
border-bottom: 1px solid $lbry-gray-1;
}
}
input,
label {
user-select: none;
}
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;
}
hr {
width: 100%;
height: 1px;
background-color: $lbry-gray-1;
[data-mode='dark'] & {
background-color: var(--dm-color-04);
}
}
img,
a {
-webkit-user-drag: none;
}
.columns {
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
> * {
flex-grow: 1;
flex-basis: 0;
min-width: 15rem;
margin-bottom: var(--spacing-large);
&: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;
flex: 1;
}
}
.truncated-text {
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;
[data-mode='dark'] & {
color: $lbry-red-1;
}
}
.card {
.help:last-child {
margin-bottom: 0;
}
}
.help {
display: block;
font-size: var(--font-label);
color: lighten($lbry-gray-5, 10%);
margin-top: var(--spacing-small);
[data-mode='dark'] & {
color: $lbry-gray-5;
}
}
.help--warning {
background-color: $lbry-yellow-1;
[data-mode='dark'] & {
color: $lbry-black;
}
}
.empty {
color: $lbry-gray-5;
font-style: italic;
[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;
[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;
}
fieldset,
.fieldset {
[data-mode='dark'] & {
border-top-color: var(--dm-color-04);
}
}
legend {
[data-mode='dark'] & {
border-color: transparent;
}
}
checkbox-toggle,
.checkbox-toggle,
radio-toggle,
.radio-toggle {
[data-mode='dark'] & {
border-color: var(--dm-color-04);
}
}
.rc-progress-line-path {
stroke: $lbry-teal-3;
}