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
ad5acec6
Commit
ad5acec6
authored
Feb 03, 2016
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make nav-controls responsive and hide on extra small screens
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
4beae990
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
16 deletions
+42
-16
nav.scss
app/assets/stylesheets/framework/nav.scss
+40
-14
index.html.haml
app/views/projects/forks/index.html.haml
+2
-2
No files found.
app/assets/stylesheets/framework/nav.scss
View file @
ad5acec6
...
...
@@ -39,6 +39,8 @@
}
.top-area
{
@include
clearfix
;
border-bottom
:
1px
solid
#EEE
;
.nav-text
{
...
...
@@ -47,6 +49,11 @@
display
:
inline-block
;
width
:
50%
;
line-height
:
28px
;
/* Small devices (phones, tablets, 768px and lower) */
@media
(
max-width
:
$screen-sm-min
)
{
width
:
100%
;
}
}
.nav-links
{
...
...
@@ -54,6 +61,11 @@
width
:
50%
;
margin-bottom
:
0px
;
border-bottom
:
none
;
/* Small devices (phones, tablets, 768px and lower) */
@media
(
max-width
:
$screen-sm-min
)
{
width
:
100%
;
}
}
.nav-controls
{
...
...
@@ -65,37 +77,51 @@
margin-bottom
:
0px
;
>
.dropdown
{
margin-left
:
10px
;
display
:
inline-block
;
}
input
{
>
.btn
{
display
:
inline-block
;
width
:
calc
(
100%
-
151px
);
margin-left
:
10px
;
margin-top
:
-3px
;
}
/* Small devices (tablets, 768px and up) */
@media
(
min-width
:
$screen-sm-min
)
{
width
:
150px
;
}
input
{
display
:
inline-block
;
/* Medium devices (desktops, 992px and up) */
@media
(
min-width
:
$screen-md-min
)
{
width
:
200px
;
}
/* Large devices (large desktops, 1200px and up) */
@media
(
min-width
:
$screen-lg-min
)
{
width
:
300px
;
}
}
@media
(
min-width
:
$screen-lg-min
)
{
width
:
250px
;
}
.btn-new
{
width
:
135px
;
margin-left
:
10px
;
float
:
right
;
&
.input-short
{
/* Medium devices (desktops, 992px and up) */
@media
(
min-width
:
$screen-md-min
)
{
width
:
170px
;
}
/* Large devices (large desktops, 1200px and up) */
@media
(
min-width
:
$screen-lg-min
)
{
width
:
210px
;
}
}
}
.dropdown-toggle.btn
{
margin-top
:
-3px
;
}
}
@media
(
max-width
:
$screen-xs-max
)
{
.nav-controls
{
padding-top
:
15px
;
/* Hide on extra small devices (phones) */
@media
(
max-width
:
$screen-xs-max
)
{
display
:
none
;
}
/* Small devices (tablets, 768px and lower) */
@media
(
max-width
:
$screen-sm-max
)
{
width
:
100%
;
text-align
:
left
;
input
{
width
:
300px
;
}
}
}
}
app/views/projects/forks/index.html.haml
View file @
ad5acec6
...
...
@@ -6,10 +6,10 @@
==
#{
pluralize
(
@all_forks
.
size
,
'fork'
)
}
:
#{
full_count_title
}
.nav-controls
=
search_field_tag
:filter_projects
,
nil
,
placeholder:
'Search forks'
,
class:
'projects-list-filter form-control'
,
=
search_field_tag
:filter_projects
,
nil
,
placeholder:
'Search forks'
,
class:
'projects-list-filter form-control
input-short
'
,
spellcheck:
false
,
data:
{
'filter-selector'
=>
'span.namespace-name'
}
.dropdown
.prepend-left-10
.dropdown
%button
.dropdown-toggle.btn.sort-forks
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%span
.light
sort:
-
if
@sort
.
present?
...
...
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