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

update toolbar, toc style

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