1
0
mirror of https://github.com/suk-ws/ph-Bookshelf.git synced 2025-01-19 07:22:26 +08:00
ph-Bookshelf/assets/gitbook-fix.css
Eyre_S 6e5f71b96b
使切换页面支持了(半个)pjax动态加载
- 现在在支持 javascript 的浏览器环境中,Book 和 Page 的链接将会采用异步局部更新的方式进行更新
  - 在进行更新时,内容区域的透明度会降为 20%
- 使 index 支持了请求部分页面内容
  - 在 raw=true 时,将会只输出内容容器内的内容
  - 在 nav=true 时,内容输出的前面会添加一行请求书籍的目录
- 给 page 和 book 链接添加了 'type/id' 格式的 id 和 'type-id' 的自定义属性
2021-05-31 16:05:45 +08:00

113 lines
2.2 KiB
CSS

:root {
--color-graystyle-background: rgba(0, 0, 0, 0.07);
--color-icon-in-background: white;
--color-graystyle: rgba(0, 0, 0, 0.2);
--color-nav-background-base: null;
}
.color-theme-1 {
--color-graystyle-background: rgba(255, 255, 255, 0.48);
--color-icon-in-background: black;
--color-graystyle: rgba(135, 127, 106, 0.5);
--color-nav-background-base: #1111111;
}
.color-theme-2 {
--color-graystyle-background: rgba(29, 34, 63, 0.6);
--color-icon-in-background: white;
--color-graystyle: rgba(193, 198, 215, 0.2);
--color-nav-background-base: #252737;
}
.fold > ul {
max-height: 0;
overflow: hidden;
transition-duration: 0.5s;
}
.fold.on > ul {
max-height: unset;
}
.book .book-summary ul.summary li a, .book .book-summary ul.summary li span {
padding-left: 30px;
cursor: pointer;
}
.book .book-summary .exc-trigger {
position: absolute;
left: 12px;
top: 12px;
}
.book .book-summary .on > a .exc-trigger:before {
content: "\f078";
}
.book .book-summary .exc-trigger:before {
content: "\f054";
}
.book-summary ul.summary div.summary-container {
padding: 0;
max-height: 0;
overflow: hidden;
}
.book-summary ul.summary div.summary-container.on {
padding: 7px 0;
max-height: unset;
}
.book-summary ul.summary li.divider.block-end {
margin-top: 0;
position: relative;
overflow: unset;
}
.book-summary ul.summary li.divider.block-start {
margin-bottom: 0;
}
.book-summary ul.summary li.divider.block-end .summary-container-icon {
position: absolute;
top: 1px;
right: 20px;
padding: 0 5px 2px;
background: var(--color-graystyle-background);
color: var(--color-icon-in-background);
border-bottom: 0;
border-radius: 0 0 5px 5px;
z-index: 1000;
}
.book-summary ul.summary li.divider.block-end .summary-container-icon .fa:before {
content: "\f078";
}
.book-summary ul.summary div.summary-container.on + li.divider.block-end {
transform: rotateX(180deg);
}
.book .book-summary ul.summary li span.annotation {
padding: 0;
font-size: 0.2em;
color: var(--color-graystyle);
}
.book .book-summary ul.summary li span.annotation:hover {
text-decoration: none !important;
}
#book-search-input {
background-color: var(--color-nav-background-base);
}
#page-container {
transition-duration: 400ms;
}
#page-container.loading {
opacity: 0.2;
}