BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b11bcb8a
Unverified
Commit
b11bcb8a
authored
May 26, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use default control for search field in header
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f815094e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
header.scss
app/assets/stylesheets/generic/header.scss
+0
-12
_search.html.haml
app/views/layouts/_search.html.haml
+1
-1
No files found.
app/assets/stylesheets/generic/header.scss
View file @
b11bcb8a
...
...
@@ -184,29 +184,17 @@ header {
padding
:
4px
6px
;
padding-left
:
25px
;
font-size
:
13px
;
@include
border-radius
(
3px
);
border
:
1px
solid
#DDD
;
box-shadow
:
none
;
@include
transition
(
all
0
.15s
ease-in
0s
);
background-color
:
#f9f9f9
;
}
}
}
.search
.search-input
{
width
:
300px
;
&
:focus
{
width
:
330px
;
background-color
:
#FFF
;
}
}
@media
(
max-width
:
1200px
)
{
.search
.search-input
{
width
:
200px
;
&
:focus
{
width
:
230px
;
}
}
}
...
...
app/views/layouts/_search.html.haml
View file @
b11bcb8a
.search
=
form_tag
search_path
,
method: :get
,
class:
'navbar-form pull-left'
do
|
f
|
=
search_field_tag
"search"
,
nil
,
placeholder:
search_placeholder
,
class:
"search-input"
=
search_field_tag
"search"
,
nil
,
placeholder:
search_placeholder
,
class:
"search-input
form-control
"
=
hidden_field_tag
:group_id
,
@group
.
try
(
:id
)
-
if
@project
&&
@project
.
persisted?
=
hidden_field_tag
:project_id
,
@project
.
id
...
...
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