Skip to content

Commit 07a5520

Browse files
claudejsshin2022
authored andcommitted
Tighten chapter title spacing, shorten mobile breadcrumb, add back-to-top link
1 parent bd1a5d6 commit 07a5520

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

‎book/_quarto.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ format:
110110
html-math-method: mathjax
111111
df-print: default
112112
link-external-newwindow: true
113+
back-to-top-navigation: true
113114
include-after-body: sidebar-resize.html
114115
include-in-header:
115116
- text: |

‎book/styles.scss‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,3 +682,36 @@ mjx-container[display="true"] {
682682
overflow-y: hidden;
683683
max-width: 100%;
684684
}
685+
686+
// 장 제목: 번호 배지와 제목 사이 간격을 줄이고 배지를 제목 크기에 맞춤
687+
h1.title {
688+
display: flex;
689+
align-items: center;
690+
flex-wrap: wrap;
691+
column-gap: 0.15em;
692+
}
693+
694+
h1.title .chapter-number {
695+
margin-right: 0.2em;
696+
font-size: 0.8em;
697+
}
698+
699+
// 모바일 상단 경로: 부 이름은 숨기고 장 제목만 한 줄로
700+
@media (max-width: 991.98px) {
701+
.quarto-secondary-nav .breadcrumb {
702+
flex-wrap: nowrap;
703+
overflow: hidden;
704+
}
705+
.quarto-secondary-nav .breadcrumb-item:not(:last-child) {
706+
display: none;
707+
}
708+
.quarto-secondary-nav .breadcrumb-item:last-child {
709+
padding-left: 0;
710+
white-space: nowrap;
711+
overflow: hidden;
712+
text-overflow: ellipsis;
713+
}
714+
.quarto-secondary-nav .breadcrumb-item:last-child::before {
715+
display: none;
716+
}
717+
}

0 commit comments

Comments
 (0)