Commit d28ee0df124d79e9d0968c3325ae010b55d4a7b6
1 parent
7a84c5c8
Exists in
spb-stable
and in
3 other branches
Better css for chosen selects
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
2 changed files
with
14 additions
and
8 deletions
Show diff stats
app/assets/stylesheets/generic/selects.scss
... | ... | @@ -59,18 +59,21 @@ |
59 | 59 | |
60 | 60 | select { |
61 | 61 | &.chosen { |
62 | - min-width: 100px; | |
62 | + width: 100px; | |
63 | 63 | } |
64 | 64 | |
65 | 65 | &.chosen-sm { |
66 | - min-width: 100px; | |
66 | + width: 100px; | |
67 | 67 | } |
68 | 68 | } |
69 | 69 | |
70 | 70 | @media (min-width: $screen-sm-min) { |
71 | 71 | select { |
72 | 72 | &.chosen { |
73 | - min-width: 150px; | |
73 | + width: 150px; | |
74 | + } | |
75 | + &.chosen-sm { | |
76 | + width: 120px; | |
74 | 77 | } |
75 | 78 | } |
76 | 79 | } |
... | ... | @@ -79,7 +82,10 @@ select { |
79 | 82 | @media (min-width: $screen-md-min) { |
80 | 83 | select { |
81 | 84 | &.chosen { |
82 | - min-width: 170px; | |
85 | + width: 170px; | |
86 | + } | |
87 | + &.chosen-sm { | |
88 | + width: 140px; | |
83 | 89 | } |
84 | 90 | } |
85 | 91 | } |
... | ... | @@ -88,7 +94,10 @@ select { |
88 | 94 | @media (min-width: $screen-lg-min) { |
89 | 95 | select { |
90 | 96 | &.chosen { |
91 | - min-width: 200px; | |
97 | + width: 200px; | |
98 | + } | |
99 | + &.chosen-sm { | |
100 | + width: 150px; | |
92 | 101 | } |
93 | 102 | } |
94 | 103 | } | ... | ... |
app/assets/stylesheets/sections/projects.scss