76 lines
1.4 KiB
SCSS
76 lines
1.4 KiB
SCSS
// コンテナ
|
|
#container {
|
|
box-sizing: border-box;
|
|
|
|
@include media-desktop {
|
|
border-left: $border-default;
|
|
border-right: $border-default;
|
|
box-shadow: $container-box-shadow;
|
|
box-sizing: border-box;
|
|
display: grid;
|
|
grid-template-columns: auto 1fr;
|
|
grid-template-rows: auto 1fr auto;
|
|
// IE11 ~
|
|
display: -ms-grid;
|
|
-ms-grid-columns: auto 1fr;
|
|
-ms-grid-rows: auto 1fr auto;
|
|
// ~ IE11
|
|
margin: 0 auto;
|
|
min-height: 100vh;
|
|
width: $container-width;
|
|
|
|
header {
|
|
border-bottom: $border-default;
|
|
grid-column: 1 / 3;
|
|
grid-row: 1 / 2;
|
|
// IE11 ~
|
|
-ms-grid-column: 1;
|
|
-ms-grid-column-span: 2;
|
|
-ms-grid-row: 1;
|
|
// ~ IE11
|
|
}
|
|
|
|
#menu {
|
|
border-right: $border-default;
|
|
grid-column: 1 / 2;
|
|
grid-row: 2 / 3;
|
|
// IE11 ~
|
|
-ms-grid-column: 1;
|
|
-ms-grid-row: 2;
|
|
// ~ IE11
|
|
}
|
|
|
|
#content {
|
|
grid-column: 2 / 3;
|
|
grid-row: 2 / 3;
|
|
// IE11 ~
|
|
-ms-grid-column: 2;
|
|
-ms-grid-row: 2;
|
|
// ~ IE11
|
|
}
|
|
|
|
footer {
|
|
grid-column: 1 / 3;
|
|
grid-row: 3 / 4;
|
|
// IE11 ~
|
|
-ms-grid-column: 1;
|
|
-ms-grid-column-span: 2;
|
|
-ms-grid-row: 3;
|
|
// ~ IE11
|
|
}
|
|
}
|
|
|
|
@include media-mobile {
|
|
margin: 0;
|
|
width: 100vw;
|
|
|
|
#menu {
|
|
display: none;
|
|
}
|
|
|
|
#content {
|
|
padding-top: calc(#{$header-height} - #{$font-size-mobile} + #{$container-padding-top-mobile});
|
|
}
|
|
}
|
|
}
|