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
f5faea12
Commit
f5faea12
authored
Jun 05, 2024
by
minseok.park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update header style
parent
68a4ad76
Pipeline
#19208
failed with stages
in 1 minute and 16 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
57 additions
and
9 deletions
+57
-9
header.css
src/css/header.css
+53
-8
header-content.hbs
src/partials/header-content.hbs
+4
-1
No files found.
src/css/header.css
View file @
f5faea12
...
...
@@ -9,20 +9,32 @@ body {
}
.navbar
{
background
:
var
(
--
navbar-background
);
color
:
var
(
--
navbar-font-color
);
background
:
var
(
--
color-white
);
color
:
var
(
--
color-bwg-main
);
font-size
:
calc
(
16
/
var
(
--rem-base
)
*
1rem
);
height
:
var
(
--navbar-height
);
position
:
fixed
;
top
:
0
;
width
:
100%
;
z-index
:
var
(
--z-index-navbar
);
padding
:
.5rem
3rem
;
max-height
:
5rem
;
}
.navbar
a
{
text-decoration
:
none
;
}
.navbar-logo
{
display
:
inline-block
;
width
:
40px
;
height
:
40px
;
background-image
:
url('../img/logo_color.png')
;
background-size
:
contain
;
background-repeat
:
no-repeat
;
background-position
:
center
;
margin-right
:
10px
;
}
.navbar-brand
{
display
:
flex
;
flex
:
auto
;
...
...
@@ -36,10 +48,10 @@ body {
.navbar-brand
.navbar-item
:first-child
{
align-self
:
center
;
padding
:
0
;
font-size
:
calc
(
22
/
var
(
--rem-base
)
*
1rem
);
font-size
:
calc
(
22
/
var
(
--rem-base
)
*
1
.25
rem
);
flex-wrap
:
wrap
;
line-height
:
1
;
font-weight
:
6
00
;
font-weight
:
7
00
;
}
.navbar-brand
.navbar-item
:first-child
a
{
...
...
@@ -134,6 +146,7 @@ body {
display
:
block
;
line-height
:
var
(
--doc-line-height
);
padding
:
0.5rem
1rem
;
margin
:
0
0.5rem
;
}
.navbar-item.has-dropdown
{
...
...
@@ -229,7 +242,7 @@ body {
.navbar-menu
a
.navbar-item
:hover
,
.navbar-menu
.navbar-link
:hover
{
background
:
var
(
--navbar-menu_hover-background
);
/* background: var(--navbar-menu_hover-background); */
}
}
...
...
@@ -260,6 +273,22 @@ body {
display
:
block
;
}
.navbar-link
::before
{
content
:
""
;
display
:
block
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
width
:
0
;
height
:
2px
;
background
:
var
(
--navbar-font-color
);
transition
:
width
0.3s
ease-in-out
;
}
.navbar-link
:hover::before
{
width
:
100%
;
}
.navbar-link
::after
{
border-width
:
0
0
1px
1px
;
border-style
:
solid
;
...
...
@@ -277,14 +306,30 @@ body {
.navbar-end
>
.navbar-item
,
.navbar-end
.navbar-link
{
color
:
var
(
--
navbar-font-color
);
color
:
var
(
--
color-jet-80
);
}
.navbar-end
>
a
.navbar-item
:hover
,
.navbar-end
.navbar-link
:hover
,
.navbar-end
.navbar-item.has-dropdown
:hover
.navbar-link
{
background
:
var
(
--navbar_hover-background
);
color
:
var
(
--navbar-font-color
);
font-weight
:
600
;
}
.navbar-end
>
a
.navbar-item
::after
{
content
:
""
;
display
:
block
;
position
:
absolute
;
bottom
:
0
;
left
:
0
;
width
:
0
;
height
:
2px
;
background
:
var
(
--navbar-font-color
);
transition
:
width
0.3s
ease-in-out
;
}
.navbar-end
>
a
.navbar-item
:hover::after
{
width
:
100%
;
}
.navbar-end
.navbar-link
::after
{
...
...
src/partials/header-content.hbs
View file @
f5faea12
<header
class=
"header"
>
<nav
class=
"navbar"
>
<div
class=
"navbar-brand"
>
<a
class=
"navbar-item"
href=
"
{{{
or
site
.
url
siteRootPath
}}}
"
>
{{
site
.
title
}}
</a>
<a
class=
"navbar-item"
href=
"
{{{
or
site
.
url
siteRootPath
}}}
"
>
<i
class=
"navbar-logo"
></i>
{{
site
.
title
}}
</a>
{{#if
env
.
SITE_SEARCH_PROVIDER
}}
<div
class=
"navbar-item search hide-for-print"
>
<div
id=
"search-field"
class=
"field"
>
...
...
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