hexo-theme-keep/source/css/layout/page.styl

61 lines
989 B
Stylus
Raw Normal View History

2020-04-01 12:09:06 +08:00
@require "common/variables.styl"
.page-template {
2020-04-01 12:09:06 +08:00
padding-top: $header-height;
position: relative;
.page-top {
position: fixed;
top: 0;
width: 100%;
2020-04-01 12:09:06 +08:00
height: $header-height;
2020-04-01 23:03:38 +08:00
z-index: $z-index-5;
transition: all 0.5s ease;
}
.page-middle {
width: 100%;
2020-04-01 12:09:06 +08:00
display: flex;
align-items: center;
justify-content: center;
.main-content {
width: $main-content-width;
2020-04-01 12:09:06 +08:00
height: 100%;
position: relative;
padding: 40px 0;
2020-04-01 12:09:06 +08:00
}
.sidebar-tools {
position: fixed;
top: $header-height + 50px;
right: 5%;
transition: all 0.5s ease;
}
}
.page-bottom {
width: 100%;
}
}
.page-top-shrink {
2020-04-01 12:09:06 +08:00
padding-top: $header-shrink-height;
.page-top {
2020-04-01 12:09:06 +08:00
height: $header-shrink-height;
}
.sidebar-tools {
2020-04-03 18:18:42 +08:00
top: $header-shrink-height + 50px !important;
}
}
@media screen and (max-width: $media-max-width) {
.main-content {
width: $main-content-width * 1.2 !important;
}
}