Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SWLab UI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hyeryung
SWLab UI
Commits
b0e35dee
Commit
b0e35dee
authored
Jun 09, 2024
by
박민석
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update toolbar, toc style
parent
922ea42a
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
37 additions
and
20 deletions
+37
-20
breadcrumbs.css
src/css/breadcrumbs.css
+2
-2
doc.css
src/css/doc.css
+2
-2
toc.css
src/css/toc.css
+24
-7
toolbar.css
src/css/toolbar.css
+2
-4
vars.css
src/css/vars.css
+1
-1
article.hbs
src/partials/article.hbs
+1
-0
main.hbs
src/partials/main.hbs
+0
-1
toc.hbs
src/partials/toc.hbs
+3
-1
toolbar.hbs
src/partials/toolbar.hbs
+2
-2
No files found.
src/css/breadcrumbs.css
View file @
b0e35dee
.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
{
...
...
src/css/doc.css
View file @
b0e35dee
...
...
@@ -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
,
...
...
src/css/toc.css
View file @
b0e35dee
...
...
@@ -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
:
4
px
solid
var
(
--toc-border-color
);
border-left
:
3
px
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
{
...
...
src/css/toolbar.css
View file @
b0e35dee
.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
{
...
...
src/css/vars.css
View file @
b0e35dee
...
...
@@ -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
);
...
...
src/partials/article.hbs
View file @
b0e35dee
<article
class=
"doc"
>
{{>
toolbar
}}
{{#
with
page
.
title
}}
<h1
class=
"page"
>
{{{
this
}}}
</h1>
{{/
with
}}
...
...
src/partials/main.hbs
View file @
b0e35dee
<main
class=
"article"
>
{{>
toolbar
}}
<div
class=
"content"
>
{{#if
(
eq
page
.
layout
'404'
)
}}
{{>
article-404
}}
...
...
src/partials/toc.hbs
View file @
b0e35dee
<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>
src/partials/toolbar.hbs
View file @
b0e35dee
<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
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment