Skip to content

Commit

Permalink
화면이 넓을 경우 toc를 오른쪽에 보여줘라
Browse files Browse the repository at this point in the history
  • Loading branch information
johngrib committed Nov 1, 2019
1 parent c454aa1 commit 4f58609
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 8 deletions.
7 changes: 0 additions & 7 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,6 @@ ul.tag-list {
display: inline-block;
}

#markdown-toc {
border: 1px solid;
padding: 10px;
padding-left: 30px;
background-color: #FFFFFF;
}

div.search {
background-color: #f6f5ea;
width: 100%;
Expand Down
19 changes: 19 additions & 0 deletions _sass/_toc.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@media (min-width: 1700px) {
ul#markdown-toc {
position: fixed;
top: 0;
left: calc(50vw + 410px);
width: 380px;
background-color: white;
z-index: 9999;
font-size: 0.8em;
}
}

#markdown-toc {
border: 1px solid;
padding: 10px;
padding-left: 30px;
background-color: #FFFFFF;
}

3 changes: 2 additions & 1 deletion css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ $theme-color: #47146C;
@import
"base",
"layout",
"syntax"
"syntax",
"toc"
;

0 comments on commit 4f58609

Please sign in to comment.