lbry-desktop/scss/_gui.scss

251 lines
3.7 KiB
SCSS
Raw Normal View History

@import "global";
html
{
height: 100%;
font-size: $font-size;
}
body
{
font-family: 'Source Sans Pro', sans-serif;
line-height: 1.3333;
min-height: 100%;
position: relative;
}
.page {
margin-left: auto;
margin-right: auto;
width: 800px;
padding-bottom: $spacing-vertical*3;
&.full-screen {
width: 100%;
height: 100%;
}
}
.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;
}
2016-04-10 02:00:56 +02:00
section
{
margin-bottom: $spacing-vertical;
section {
/* Smaller padding around inner sections */
margin-bottom: $spacing-vertical / 4;
}
2016-04-10 02:00:56 +02:00
&:last-child
{
margin-bottom: 0;
}
}
.section-block {
background-color: rgba(0,0,0,.05);
padding: $spacing-vertical;
border-radius: 2px;
margin-bottom: $spacing-vertical;
}
h1 {
font-size: 2.0em;
margin-bottom: $spacing-vertical;
margin-top: $spacing-vertical*2;
font-family: 'Raleway', sans-serif;
}
h2 {
font-size: 1.75em;
}
h3 { font-size: 1.4em; }
h4 {
font-weight: 600;
font-size: 1.2em;
margin: 0;
margin-bottom: $spacing-vertical/2;
}
h5 { font-size: 1.1em; }
sup, sub {
vertical-align: baseline;
position: relative;
}
sup { top: -0.4em; }
sub { top: 0.4em; }
label {
cursor: default;
display: block;
}
2016-04-10 02:00:56 +02:00
header
{
line-height: $spacing-vertical;
}
2016-04-24 10:59:55 +02:00
p
{
margin-bottom: 0.8em;
}
textarea {
height: 190px;
}
2016-04-24 10:59:55 +02:00
.hidden {
display: none;
}
.disabled {
pointer-events: none;
opacity: 0.7;
}
input[type="search"]
{
border: 0 none;
border: 2px solid rgba(160,160,160,.5);
padding-left: 5px;
padding-right: 5px;
line-height: $spacing-vertical * 1.5;
margin-bottom: $spacing-vertical/2;
}
input[type="text"], textarea
{
@include placeholder {
color: lighten($color-text-dark, 60%);
}
border: 0 none;
border: 2px solid rgba(160,160,160,.5);
padding-left: 5px;
padding-right: 5px;
line-height: $spacing-vertical;
margin-bottom: $spacing-vertical/2;
}
select {
margin-bottom: $spacing-vertical/2;
}
.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;
}
}
.button-block
{
cursor: pointer;
display: inline-block;
height: $spacing-vertical * 1.5;
line-height: $spacing-vertical * 1.5;
padding: 0 30px;
text-decoration: none;
border: 0 none;
text-align: center;
border-radius: 2px;
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
text-transform: uppercase;
+ .button-block
{
margin-left: 20px;
}
2016-04-25 12:57:47 +02:00
.icon
{
top: 0em;
}
.icon:first-child
{
padding-right: 5px;
}
.icon:last-child
{
padding-left: 5px;
}
}
.button-primary
{
color: white;
background-color: $color-primary;
}
.button-alt
{
background-color: rgba(0,0,0,.15);
}
.button-text
{
color: $color-primary;
.icon
{
&:first-child {
padding-right: 5px;
}
&:last-child:not(:only-child) {
padding-left: 5px;
}
}
&:not(.no-underline) {
text-decoration: underline;
.icon {
text-decoration: none;
}
}
2016-04-10 02:00:56 +02:00
&:hover
{
opacity: 0.70;
transition: opacity .225s ease;
text-decoration: underline;
.icon {
text-decoration: none;
}
2016-04-10 02:00:56 +02:00
}
}
.footer-buttons {
display: flex;
justify-content: center;
}
.icon:only-child {
2016-04-25 12:57:47 +02:00
position: relative;
top: 0.16em;
}
2016-04-10 02:00:56 +02:00
.fade-in-link {
&:hover {
opacity: 1;
}
}
.help {
font-size: .85em;
2016-04-10 02:00:56 +02:00
color: $color-help;
}
.spacer-bottom--sm {
margin-bottom: $spacing-vertical/2;
}