lbry-desktop/src/renderer/scss/component/_main.scss

47 lines
953 B
SCSS
Raw Normal View History

.main {
margin: auto;
overflow: hidden;
position: relative;
z-index: 1;
&.main--contained {
max-width: 1000px;
}
&:not(.main--no-padding) {
padding: var(--spacing-vertical-large);
}
}
2019-01-09 19:39:05 +01:00
.main--file-page {
max-width: 1787px;
2019-01-09 19:39:05 +01:00
display: grid;
grid-template-areas:
'content related'
2019-01-09 19:39:05 +01:00
'info related';
grid-gap: var(--spacing-vertical-large);
grid-template-rows: auto 1fr;
grid-template-columns: 1fr auto;
2019-01-09 19:39:05 +01:00
// TODO: Get responsive grid working, to many issues with different thumbnails messing stuff up on small screens with the file taking up the full width
// I will conquer this one day
// grid-template-areas:
// 'content content'
// 'info related';
//
// @media (min-width: 1470px) {
//
// }
2019-01-09 19:39:05 +01:00
.grid-area--content {
grid-area: content;
max-width: var(--file-max-width);
2019-01-09 19:39:05 +01:00
}
.grid-area--info {
grid-area: info;
}
.grid-area--related {
grid-area: related;
}
}