rf-web/_sass/layout.scss

64 lines
1.2 KiB
SCSS
Raw Normal View History

body {
2020-02-26 07:55:02 +00:00
background-color: $bg;
background-image: url('../img/bg/bg-2.png'), url('../img/bg/bg-el-light.png');
2020-07-29 13:02:51 +00:00
transition: background-color 0.5s ease-in-out;
background-position: $size-base $size-8, $size-8 $size-12;
background-repeat-x: no-repeat;
background-repeat-y: repeat;
background-attachment: fixed;
2020-02-21 11:44:13 +00:00
display: flex;
flex-direction: column;
2020-07-29 13:02:51 +00:00
background-size: 100%;
2020-02-21 11:44:13 +00:00
@include touch {
background-attachment: scroll;
background-size: 200%;
2020-02-21 11:44:13 +00:00
}
2020-07-29 13:02:51 +00:00
@include darkMode {
background-color: $black;
// &::after {
// content: '';
// background-image: ;
// opacity: 1;
// background-position: 0 0;
// background-repeat-x: no-repeat;
// background-repeat-y: repeat;
// background-size: 100%;
// background-attachment: fixed;
// height: 100vh;
// width: 100vw;
// position: fixed;
// pointer-events: none;
// }
2020-07-29 13:02:51 +00:00
}
}
.page-content {
max-width: 920px;
margin: 0 auto;
}
html,
body {
height: 100%;
}
.content {
flex: 1 0 auto;
2020-04-25 08:56:48 +00:00
max-width: $size-512 + $size-128;
}
footer.page-footer {
flex-shrink: 0;
}
2020-04-25 08:56:48 +00:00
.textbox {
@include textbox;
}
.textbox-sm {
@include textbox;
padding: $size-8 $size-16;
}