2018-12-19 06:44:53 +01:00
. main {
margin : auto ;
overflow : hidden ;
position : relative ;
z-index : 1 ;
2019-01-08 00:29:40 +01:00
& . main--contained {
max-width : 1000 px ;
}
2018-12-19 06:44:53 +01:00
& : not ( . main--no-padding ) {
padding : var ( -- spacing-vertical-large ) ;
}
}
2019-01-09 19:39:05 +01:00
. main--file-page {
2019-01-11 17:34:36 +01:00
max-width : 1787 px ;
2019-01-09 19:39:05 +01:00
display : grid ;
grid-template-areas :
2019-01-11 17:34:36 +01:00
' content related '
2019-01-09 19:39:05 +01:00
' info related ' ;
2019-01-11 17:34:36 +01:00
grid-gap : var ( -- spacing-vertical-large ) ;
grid-template-rows : auto 1 fr ;
grid-template-columns : 1 fr auto ;
2019-01-09 19:39:05 +01:00
2019-01-11 17:34:36 +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 ;
2019-01-11 17:34:36 +01:00
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 ;
}
}