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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
SWD
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
Pipeline
#19233
passed with stages
in 5 minutes and 38 seconds
Changes
9
Pipelines
1
Show 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
{
.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
{
...
...
src/css/doc.css
View file @
b0e35dee
...
@@ -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
,
...
...
src/css/toc.css
View file @
b0e35dee
...
@@ -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
:
4
px
solid
var
(
--toc-border-color
);
border-left
:
3
px
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
{
...
...
src/css/toolbar.css
View file @
b0e35dee
.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
{
...
...
src/css/vars.css
View file @
b0e35dee
...
@@ -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
);
...
...
src/partials/article.hbs
View file @
b0e35dee
<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
}}
...
...
src/partials/main.hbs
View file @
b0e35dee
<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
}}
...
...
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
}}}
"
>
<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>
src/partials/toolbar.hbs
View file @
b0e35dee
<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
}}
...
...
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