Skip to content

Commit

Permalink
responsive chosen selects. Hide milestone dropdown for sm displays
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
  • Loading branch information
dzaporozhets committed Jan 4, 2014
1 parent 35287f1 commit e680228
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 8 deletions.
28 changes: 27 additions & 1 deletion app/assets/stylesheets/generic/selects.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,36 @@

select {
&.chosen {
min-width: 200px;
min-width: 100px;
}

&.chosen-sm {
min-width: 100px;
}
}

@media (min-width: $screen-sm-min) {
select {
&.chosen {
min-width: 150px;
}
}
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: $screen-md-min) {
select {
&.chosen {
min-width: 170px;
}
}
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: $screen-lg-min) {
select {
&.chosen {
min-width: 200px;
}
}
}
5 changes: 0 additions & 5 deletions app/assets/stylesheets/sections/issues.scss
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ input.check_all_issues {
}
}

.edit-issue.inline-update select {
width: 100%;
max-width: 200px;
}

.issue-show-labels .label {
padding: 6px 10px;
}
Expand Down
3 changes: 1 addition & 2 deletions app/views/projects/issues/_issue_context.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
= form_for [@project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f|
.pull-right
Created by #{link_to_member(@project, issue.author)}&nbsp;
- if issue.assignee
\ and currently assigned to
Expand All @@ -12,7 +11,7 @@
= link_to_member(@project, @issue.assignee)


.pull-right
.pull-right.hidden-sm
- if issue.milestone
- milestone = issue.milestone
%cite.cgray Attached to milestone
Expand Down

0 comments on commit e680228

Please sign in to comment.