2019-04-18 12:51:15 -04:00
|
|
|
.main-wrapper {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: var(--header-height);
|
|
|
|
|
min-height: calc(100% - var(--header-height));
|
2019-05-06 22:35:04 -04:00
|
|
|
width: 100%;
|
2019-04-18 12:51:15 -04:00
|
|
|
background-color: mix($lbry-white, $lbry-gray-1, 70%);
|
|
|
|
|
|
|
|
|
|
html[data-mode='dark'] & {
|
|
|
|
|
background-color: $lbry-black;
|
|
|
|
|
}
|
2019-05-06 22:35:04 -04:00
|
|
|
|
|
|
|
|
@media (min-width: 600px) {
|
|
|
|
|
left: var(--side-nav-width);
|
|
|
|
|
width: calc(100% - var(--side-nav-width));
|
|
|
|
|
}
|
2019-04-18 12:51:15 -04:00
|
|
|
}
|
|
|
|
|
|
2018-12-19 00:44:53 -05:00
|
|
|
.main {
|
2019-04-18 12:51:15 -04:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2018-12-19 00:44:53 -05:00
|
|
|
margin: auto;
|
2019-04-18 12:51:15 -04:00
|
|
|
}
|
2018-12-19 00:44:53 -05:00
|
|
|
|
2019-04-18 12:51:15 -04:00
|
|
|
.main--contained {
|
|
|
|
|
max-width: 900px;
|
2019-05-06 22:35:04 -04:00
|
|
|
padding: var(--spacing-main-padding);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main--not-contained {
|
|
|
|
|
padding: var(--spacing-main-padding);
|
2019-04-18 12:51:15 -04:00
|
|
|
}
|
2019-01-07 18:29:40 -05:00
|
|
|
|
2019-05-06 22:35:04 -04:00
|
|
|
.main--no-padding {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.main--no-padding-top {
|
|
|
|
|
padding-top: 0;
|
2018-12-19 00:44:53 -05:00
|
|
|
}
|
2019-01-09 13:39:05 -05:00
|
|
|
|
|
|
|
|
.main--file-page {
|
2019-05-06 22:35:04 -04:00
|
|
|
padding: var(--spacing-main-padding);
|
2019-01-24 13:09:27 -05:00
|
|
|
max-width: var(--file-page-max-width);
|
2019-01-09 13:39:05 -05:00
|
|
|
display: grid;
|
2019-01-11 11:34:36 -05:00
|
|
|
grid-gap: var(--spacing-vertical-large);
|
|
|
|
|
grid-template-rows: auto 1fr;
|
|
|
|
|
grid-template-columns: 1fr auto;
|
2019-01-24 13:09:27 -05:00
|
|
|
grid-template-areas:
|
|
|
|
|
'content content'
|
|
|
|
|
'info related';
|
2019-01-09 13:39:05 -05:00
|
|
|
|
2019-05-06 22:35:04 -04:00
|
|
|
@media (min-width: 1300px) {
|
2019-01-24 13:09:27 -05:00
|
|
|
grid-template-areas:
|
|
|
|
|
'content related'
|
|
|
|
|
'info related';
|
|
|
|
|
}
|
2019-01-09 13:39:05 -05:00
|
|
|
|
|
|
|
|
.grid-area--content {
|
|
|
|
|
grid-area: content;
|
|
|
|
|
}
|
|
|
|
|
.grid-area--info {
|
|
|
|
|
grid-area: info;
|
|
|
|
|
}
|
|
|
|
|
.grid-area--related {
|
|
|
|
|
grid-area: related;
|
|
|
|
|
}
|
|
|
|
|
}
|
2019-04-18 12:51:15 -04:00
|
|
|
|
|
|
|
|
.main--empty {
|
|
|
|
|
align-items: center;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
margin-top: 100px;
|
|
|
|
|
margin-bottom: 100px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
2019-05-06 22:35:04 -04:00
|
|
|
|
|
|
|
|
// On pages that are not contained, they still might want to have items inside the page
|
|
|
|
|
// that extend the full width ex: cover photo
|
|
|
|
|
// But the components inside of those pages should be still have "page" padding
|
|
|
|
|
.main__item--extend-outside {
|
|
|
|
|
$main-width: calc(100vw - var(--side-nav-width));
|
|
|
|
|
width: $main-width;
|
|
|
|
|
position: relative;
|
|
|
|
|
left: 50%;
|
|
|
|
|
right: 50%;
|
|
|
|
|
margin-left: calc(-50vw + (var(--side-nav-width) * 0.5));
|
|
|
|
|
margin-right: calc(-50vw + (var(--side-nav-width) * 0.5));
|
|
|
|
|
}
|