website/sass/main.scss

39 lines
819 B
SCSS
Raw Normal View History

2022-03-20 18:24:55 +00:00
$sidebar_width: 20%;
2022-03-24 19:27:03 +00:00
$sidebar_background: rgba(255, 0, 0, .1);
$body_background: rgba(0, 255, 0, .1);
2022-03-20 18:24:55 +00:00
body {
margin: 0;
nav {
height: 100%;
position: fixed;
width: $sidebar_width;
2022-03-24 19:27:03 +00:00
background: $sidebar_background;
2022-03-20 18:24:55 +00:00
padding-top: 32px;
2022-03-24 19:27:03 +00:00
padding-bottom: 16px;
2022-03-20 18:24:55 +00:00
img {
width: 100%;
}
div {
padding: 0 16px 0 16px;
}
}
main {
height: 100%;
2022-03-24 19:27:03 +00:00
box-sizing: border-box;
2022-03-20 18:24:55 +00:00
margin-left: $sidebar_width;
2022-03-24 19:27:03 +00:00
background: $body_background;
2022-03-20 18:24:55 +00:00
padding-top: 50px;
article {
margin: auto;
border: 1px solid blue;
padding: 16px;
max-width: 1000px;
}
}
}
2022-03-24 19:27:03 +00:00
@media screen and (max-width: 1000px) {
@import "mobile.scss";
}