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,18 +59,21 @@ | ||
59 | 59 | ||
60 | select { | 60 | select { |
61 | &.chosen { | 61 | &.chosen { |
62 | - min-width: 100px; | 62 | + width: 100px; |
63 | } | 63 | } |
64 | 64 | ||
65 | &.chosen-sm { | 65 | &.chosen-sm { |
66 | - min-width: 100px; | 66 | + width: 100px; |
67 | } | 67 | } |
68 | } | 68 | } |
69 | 69 | ||
70 | @media (min-width: $screen-sm-min) { | 70 | @media (min-width: $screen-sm-min) { |
71 | select { | 71 | select { |
72 | &.chosen { | 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,7 +82,10 @@ select { | ||
79 | @media (min-width: $screen-md-min) { | 82 | @media (min-width: $screen-md-min) { |
80 | select { | 83 | select { |
81 | &.chosen { | 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,7 +94,10 @@ select { | ||
88 | @media (min-width: $screen-lg-min) { | 94 | @media (min-width: $screen-lg-min) { |
89 | select { | 95 | select { |
90 | &.chosen { | 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
@@ -255,9 +255,6 @@ ul.nav.nav-projects-tabs { | @@ -255,9 +255,6 @@ ul.nav.nav-projects-tabs { | ||
255 | height:auto !important; | 255 | height:auto !important; |
256 | } | 256 | } |
257 | } | 257 | } |
258 | -.project-refs-select { | ||
259 | - width: 120px; | ||
260 | -} | ||
261 | 258 | ||
262 | .project-refs-form .chosen-container { | 259 | .project-refs-form .chosen-container { |
263 | position: relative; | 260 | position: relative; |