You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
4.2 KiB
Plaintext

@preview-page-list-height: 70vh;
.isekai-preview-page-list-card {
height: @preview-page-list-height;
}
.isekai-preview-page-list-card > .card-header {
height: 2.2rem;
}
.isekai-preview-page-list-container {
height: 100%;
margin: 0;
.fallback-page-list {
padding: 12px 20px;
height: @preview-page-list-height;
overflow-y: auto;
}
.loading {
width: 100%;
height: 99.5%;
height: calc(100% - 2px); // fix: overflow because of border
margin-top: 1px;
display: flex;
.spinner {
margin: auto;
padding: 2rem;
width: 100%;
display: flex;
justify-content: center;
.oo-ui-progressBarWidget {
width: 100%;
}
}
}
.isekai-booklet-layout {
display: flex;
height: @preview-page-list-height;
}
// 页面列表
.isekai-booklet-menu {
flex: 0 0;
width: 280px;
flex-basis: 280px;
padding-bottom: 0 !important;
height: @preview-page-list-height;
overflow-y: auto;
border-right: 1px solid rgba(0,0,0,.12);
}
.isekai-preview-page-list {
width: 100%;
.isekai-list-item {
&.active {
box-shadow: none;
background-color: #36c;
color: #fff !important;
}
}
}
// 页面预览
.isekai-booklet-content {
flex: 1 1;
width: 0;
height: @preview-page-list-height;
display: flex;
flex-direction: column;
.card-header {
flex: 0 0;
border-top-left-radius: 0;
}
.back-button-container {
display: none;
}
.isekai-preview-container {
box-sizing: border-box;
width: 100%;
flex: 1 1;
overflow-y: auto;
padding: 12px 20px;
}
// 提示选择页面
.isekai-preview-page-list-placeholder {
width: 100%;
height: @preview-page-list-height;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.2rem;
}
}
@media (max-width: 576px) {
.isekai-booklet-layout {
position: relative;
&.animating {
.isekai-booklet-menu,
.isekai-booklet-content {
transition: transform 150ms ease-in-out, opacity 150ms ease-in-out;
position: absolute;
top: 0;
left: 0;
width: 100%;
}
.isekai-booklet-menu {
display: block;
z-index: 3;
background: white;
}
.isekai-booklet-content {
display: flex;
z-index: 2;
}
&.focus-menu-transition {
.isekai-booklet-menu {
transform: scale(100%);
opacity: 1;
}
.isekai-booklet-content {
transform: scale(80%);
opacity: 0;
}
}
&.focus-content-transition {
.isekai-booklet-menu {
transform: scale(120%);
opacity: 0;
}
.isekai-booklet-content {
transform: scale(100%);
opacity: 1;
}
}
}
.isekai-booklet-menu {
width: 100%;
flex-basis: 100%;
border-right: none;
}
.isekai-booklet-content {
display: none;
}
&.focus-content {
.isekai-booklet-menu {
display: none;
}
.isekai-booklet-content {
display: flex;
}
}
.back-button-container {
display: flex;
}
}
}
}