Commit b0e35dee authored by 박민석's avatar 박민석

update toolbar, toc style

parent 922ea42a
Pipeline #19233 passed with stages
in 5 minutes and 38 seconds
.breadcrumbs {
display: none;
flex: 1 1;
padding: 0 0.5rem 0 0.75rem;
padding: 0;
line-height: var(--nav-line-height);
}
......@@ -12,7 +12,7 @@
}
a + .breadcrumbs {
padding-left: 0.05rem;
padding-left: 0;
}
.breadcrumbs ul {
......
......@@ -4,7 +4,7 @@
hyphens: auto;
line-height: var(--doc-line-height);
margin: var(--doc-margin);
padding: 0 1rem 4rem;
padding: 0 0 4rem;
}
@media screen and (min-width: 1024px) {
......@@ -594,7 +594,7 @@
.doc ol,
.doc ul {
margin: 0;
padding: 0 0 0 2rem;
padding: 0;
}
.doc ul.checklist,
......
......@@ -21,7 +21,7 @@
.toc.sidebar .toc-menu h3 {
display: flex;
flex-direction: column;
height: 2.5rem;
/* height: 2.5rem; */
justify-content: flex-end;
}
......@@ -61,9 +61,25 @@
}
.toc .toc-menu li {
position: relative;
margin: 0;
}
.toc .toc-menu li::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 1px;
background-color: transparent;
transition: background-color 0.3s;
}
.toc .toc-menu li:hover::after {
background-color: var(--color-bwg-main);
}
.toc .toc-menu li[data-level="2"] a {
padding-left: 1.25rem;
}
......@@ -74,7 +90,7 @@
.toc .toc-menu a {
color: inherit;
border-left: 4px solid var(--toc-border-color);
border-left: 3px solid var(--toc-border-color);
display: inline-block;
padding: 0.25rem 0 0.25rem 0.5rem;
text-decoration: none;
......@@ -85,13 +101,14 @@
outline: none;
}
.toc .toc-menu a:hover {
color: var(--link-font-color);
}
/* .toc .toc-menu a:hover {
color: var(--color-bwg-main);
} */
.toc .toc-menu a.is-active {
border-left-color: var(--link-font-color);
color: var(--doc-font-color);
border-left-color: var(--color-bwg-main);
color: var(--color-bwg-main);
font-weight: 600;
}
.sidebar.toc .toc-menu a:focus {
......
.toolbar {
color: var(--toolbar-font-color);
align-items: center;
background-color: var(--toolbar-background);
box-shadow: 0 1px 0 var(--toolbar-border-color);
background-color: var(--color-white);
display: flex;
font-size: calc(15 / var(--rem-base) * 1rem);
height: var(--toolbar-height);
justify-content: flex-start;
position: sticky;
top: var(--navbar-height);
z-index: var(--z-index-toolbar);
margin: 0.5rem 0;
}
.toolbar a {
......
......@@ -147,7 +147,7 @@
--nav-panel-menu-height: calc(100% - var(--drawer-height));
--nav-panel-explore-height: calc(50% + var(--drawer-height));
--nav-width: calc(270 / var(--rem-base) * 1rem);
--toc-top: calc(var(--body-top) + var(--toolbar-height));
--toc-top: calc(var(--body-top) + (var(--toolbar-height) * 2));
--toc-height: calc(100vh - var(--toc-top) - 2.5rem);
--toc-width: calc(162 / var(--rem-base) * 1rem);
--toc-width--widescreen: calc(216 / var(--rem-base) * 1rem);
......
<article class="doc">
{{> toolbar}}
{{#with page.title}}
<h1 class="page">{{{this}}}</h1>
{{/with}}
......
<main class="article">
{{> toolbar}}
<div class="content">
{{#if (eq page.layout '404')}}
{{> article-404}}
......
<aside class="toc sidebar" data-title="{{{or page.attributes.toctitle 'Contents'}}}" data-levels="{{{or page.attributes.toclevels 2}}}">
<div class="toc-menu"></div>
<div class="toc-menu">
<h3>Contents</h3>
</div>
</aside>
<div class="toolbar" role="navigation">
{{> nav-toggle}}
{{#with site.homeUrl}}
{{!-- {{#with site.homeUrl}}
<a href="{{{relativize this}}}" class="home-link{{#if @root.page.home}} is-current{{/if}}"></a>
{{/with}}
{{/with}} --}}
{{> breadcrumbs}}
{{> page-versions}}
{{> edit-this-page}}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment