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
fbc2aff7
Commit
fbc2aff7
authored
Jun 27, 2024
by
minseok.park
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update search bar style, add font awesome cdn
parent
cb97f716
Pipeline
#19476
passed with stages
in 3 minutes and 45 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
header.css
src/css/header.css
+21
-3
head.hbs
src/partials/head.hbs
+1
-0
header-content.hbs
src/partials/header-content.hbs
+3
-1
No files found.
src/css/header.css
View file @
fbc2aff7
...
@@ -86,15 +86,28 @@ body {
...
@@ -86,15 +86,28 @@ body {
justify-content
:
flex-end
;
justify-content
:
flex-end
;
}
}
#search-field
{
position
:
relative
;
}
#search-field
>
i
{
position
:
absolute
;
top
:
15px
;
right
:
20px
;
color
:
#dbdbdb
;
}
#search-input
{
#search-input
{
box-sizing
:
border-box
;
color
:
#333
;
color
:
#333
;
font-family
:
inherit
;
font-family
:
inherit
;
font-size
:
0.95rem
;
font-size
:
0.95rem
;
width
:
150px
;
width
:
150px
;
height
:
45px
;
border
:
1px
solid
#dbdbdb
;
border
:
1px
solid
#dbdbdb
;
border-radius
:
0.1em
;
border-radius
:
28px
;
line-height
:
1.5
;
line-height
:
1.5
;
padding
:
0
0.25
em
;
padding
:
0
1r
em
;
}
}
#search-input
:disabled
{
#search-input
:disabled
{
...
@@ -110,6 +123,11 @@ body {
...
@@ -110,6 +123,11 @@ body {
#search-input
:focus
{
#search-input
:focus
{
outline
:
none
;
outline
:
none
;
border
:
2px
solid
var
(
--color-bwg-main
);
}
#search-input
:focus
+
i
{
color
:
var
(
--color-bwg-main
);
}
}
.navbar-burger
{
.navbar-burger
{
...
@@ -246,7 +264,7 @@ body {
...
@@ -246,7 +264,7 @@ body {
@media
screen
and
(
min-width
:
769px
)
{
@media
screen
and
(
min-width
:
769px
)
{
#search-input
{
#search-input
{
width
:
2
0
0px
;
width
:
2
5
0px
;
}
}
}
}
...
...
src/partials/head.hbs
View file @
fbc2aff7
<link
rel=
"stylesheet"
href=
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css"
/>
{{>
head-prelude
}}
{{>
head-prelude
}}
{{>
head-title
}}
{{>
head-title
}}
{{>
head-info
}}
{{>
head-info
}}
...
...
src/partials/header-content.hbs
View file @
fbc2aff7
...
@@ -11,7 +11,9 @@
...
@@ -11,7 +11,9 @@
{{#if
env
.
SITE_SEARCH_PROVIDER
}}
{{#if
env
.
SITE_SEARCH_PROVIDER
}}
<div
class=
"navbar-item search hide-for-print"
>
<div
class=
"navbar-item search hide-for-print"
>
<div
id=
"search-field"
class=
"field"
>
<div
id=
"search-field"
class=
"field"
>
<input
id=
"search-input"
type=
"text"
placeholder=
"Search the docs"
{{#if
page
.
home
}}
autofocus
{{/if}}
>
{{!-- <input id="search-input" type="text" placeholder="Search the docs"{{#if page.home}} autofocus{{/if}}> --}}
<input
id=
"search-input"
type=
"text"
>
<i
class=
"fas fa-search"
></i>
</div>
</div>
</div>
</div>
{{/if}}
{{/if}}
...
...
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