lbry-desktop/scss/_canvas.scss

116 lines
1.6 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;
}
#window
{
position: relative;
}
#drawer
{
width: 240px;
position: absolute;
min-height: 100vh;
left: 0;
top: 0;
2016-08-07 23:05:04 +02:00
.drawer-item
{
display: block;
2016-08-07 23:05:04 +02:00
padding: $spacing-vertical / 2;
font-size: 1.2em;
.icon
{
margin-right: 6px;
}
}
.drawer-item-selected
{
background: $color-canvas;
}
}
2016-08-07 23:05:04 +02:00
#drawer-handle
{
padding: $spacing-vertical / 2;
max-height: $header-height;
text-align: center;
2016-08-07 23:05:04 +02:00
}
#window.drawer-closed
{
#drawer { display: none }
}
#window.drawer-open
{
#main-content { margin-left: 240px; }
.open-drawer-link { display: none; }
}
2016-08-07 23:05:04 +02:00
#header
{
background: $color-primary;
color: white;
height: $header-height;
padding: $spacing-vertical / 2;
h1 { font-size: 1.8em; line-height: $header-height; }
}
#main-content
{
background: $color-canvas;
2016-08-08 00:25:29 +02:00
min-height: 100vh;
2016-08-08 00:45:26 +02:00
main
{
padding: $spacing-vertical;
}
2016-08-07 23:05:04 +02:00
}
2016-08-08 00:25:29 +02:00
$header-icon-size: 1.5em;
2016-08-07 23:05:04 +02:00
.open-drawer-link, .close-drawer-link
{
display: inline-block;
2016-08-08 00:25:29 +02:00
font-size: $header-icon-size;
2016-08-07 23:05:04 +02:00
padding: 0 18px 0 6px;
float: left;
2016-08-07 23:05:04 +02:00
}
2016-08-08 00:25:29 +02:00
.close-lbry-link
{
font-size: $header-icon-size;
float: right;
padding: 0 6px 0 18px;
}
2016-08-07 23:05:04 +02:00
2016-08-08 00:45:26 +02:00
.card {
margin-left: auto;
margin-right: auto;
max-width: 800px;
padding: $spacing-vertical;
background: $color-bg;
2016-08-08 00:45:26 +02:00
h3, h4
{
margin-bottom: $spacing-vertical / 2;
margin-top: $spacing-vertical;
&:first-child
{
margin-top: 0;
}
}
}
2016-08-08 00:45:26 +02:00
.full-screen
{
width: 100%;
height: 100%;
}