lbry-desktop/ui/scss/_gui.scss

178 lines
2.6 KiB
SCSS
Raw Normal View History

2017-05-01 18:31:13 -04:00
html
{
height: 100%;
2017-08-17 23:37:35 -06:00
font-size: var(--font-size);
2017-05-01 18:31:13 -04:00
}
body
{
2017-08-19 23:58:03 -06:00
color: var(--text-color);
2017-05-01 18:31:13 -04:00
font-family: 'Source Sans Pro', sans-serif;
2017-08-17 23:37:35 -06:00
line-height: var(--font-line-height);
2017-05-01 18:31:13 -04:00
}
2017-01-21 16:31:41 -05:00
/* Custom text selection */
*::selection {
background: var(--text-selection-bg);
color: var(--text-selection-color);
2017-05-01 18:31:13 -04:00
}
2017-01-21 16:31:41 -05:00
2017-05-01 18:31:13 -04:00
#window
{
min-height: 100vh;
2017-08-17 23:37:35 -06:00
background: var(--window-bg);
2017-05-01 18:31:13 -04:00
}
2016-11-02 12:09:33 -04:00
2017-05-01 18:31:13 -04:00
.credit-amount--indicator
{
font-weight: bold;
2017-08-17 23:37:35 -06:00
color: var(--color-money);
2017-05-01 18:31:13 -04:00
}
#main-content
{
padding: $spacing-vertical;
2017-08-17 23:37:35 -06:00
margin-top: var(--header-height);
2017-05-01 18:31:13 -04:00
display: flex;
flex-direction: column;
main {
margin-left: auto;
margin-right: auto;
max-width: 100%;
2016-11-02 12:09:33 -04:00
}
2017-05-01 18:31:13 -04:00
main.main--single-column
2016-11-02 12:09:33 -04:00
{
2017-05-01 18:31:13 -04:00
width: $width-page-constrained;
2016-11-02 12:09:33 -04:00
}
}
2017-07-15 15:15:17 -04:00
main.main--refreshing {
&:before {
$width: 30px;
position: absolute;
background: url('../img/busy.gif') no-repeat center center;
width: $width;
height: $spacing-vertical;
content: "";
left: 50%;
margin-left: -1 / 2 * $width;
display: inline-block;
}
}
2016-11-02 12:09:33 -04:00
.icon-fixed-width {
/* This borrowed is from a component of Font Awesome we're not using, maybe add it? */
width: (18em / 14);
text-align: center;
}
h2 {
font-size: 1.75em;
}
h3 { font-size: 1.4em; }
h4 {
font-size: 1.2em;
}
h5 { font-size: 1.1em; }
sup, sub {
vertical-align: baseline;
position: relative;
}
sup { top: -0.4em; }
sub { top: 0.4em; }
2016-10-22 04:31:48 -04:00
code {
font: 0.8em Consolas, 'Lucida Console', 'Source Sans', monospace;
2017-08-21 20:23:38 -06:00
background-color: var(--color-bg-alt);
2016-10-22 04:31:48 -04:00
}
2016-04-24 04:59:55 -04:00
p
{
margin-bottom: 0.8em;
2016-08-07 18:45:26 -04:00
&:last-child
{
margin-bottom: 0;
}
2016-04-24 04:59:55 -04:00
}
.hidden {
display: none;
}
.disabled {
pointer-events: none;
2017-08-16 22:53:37 -06:00
opacity: 0.5;
}
.truncated-text {
//display: inline-block;
display: -webkit-box;
overflow: hidden;
-webkit-box-orient: vertical;
}
.busy-indicator
{
background: url('../img/busy.gif') no-repeat center center;
display: inline-block;
margin: -1em 0;
min-width: 16px;
min-height: 8px;
vertical-align: middle;
padding: 0 30px;
&:last-child
{
padding-right: 2px;
}
&:first-child
{
padding-left: 2px;
}
}
.help {
font-size: .85em;
2017-08-17 23:37:35 -06:00
color: var(--color-help);
}
2016-08-08 00:47:48 -04:00
.meta
{
font-size: 0.9em;
2017-08-17 23:37:35 -06:00
color: var(--color-meta-light);
2016-08-08 00:47:48 -04:00
}
.empty
{
2017-08-17 23:37:35 -06:00
color:var(--color-meta-light);
font-style: italic;
}
2017-05-15 12:34:33 -04:00
/*should be redone/moved*/
.file-list__header {
.busy-indicator {
float: left;
margin-top: 12px;
}
}
2016-11-18 05:56:55 -05:00
.sort-section {
display: block;
2017-04-27 09:17:18 -04:00
margin-bottom: $spacing-vertical * 2/3;
2016-11-18 05:56:55 -05:00
text-align: right;
2017-04-27 09:17:18 -04:00
line-height: 1;
2016-11-18 05:56:55 -05:00
font-size: 0.85em;
2017-08-17 23:37:35 -06:00
color: var(--color-help);
2016-11-18 05:56:55 -05:00
}
section.section-spaced {
margin-bottom: $spacing-vertical;
}
2017-06-08 17:15:34 -04:00
.text-center
{
text-align: center;
}