Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
b11bcb8a
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
13 deletions
+1
-13
app/assets/stylesheets/generic/header.scss
app/assets/stylesheets/generic/header.scss
+0
-12
app/views/layouts/_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