Commit ca9d8d802cb9e2a02d43050cb2b04889ae4338cd
Committed by
Gabriela Navarro
1 parent
b0f53e17
Exists in
master
and in
5 other branches
Adjust show and sort position on software catalog
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
2 changed files
with
24 additions
and
38 deletions
Show diff stats
public/style.css
| ... | ... | @@ -354,11 +354,6 @@ input.button.with-text.icon-search.submit{ |
| 354 | 354 | padding: 15px 10px; |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | -/*#filter-categories{ | |
| 358 | - margin:10px 5px; | |
| 359 | - color:#ffffff; | |
| 360 | -}*/ | |
| 361 | - | |
| 362 | 357 | #filter-categories-catalog h4{ |
| 363 | 358 | margin:10px 5px; |
| 364 | 359 | color:#000; |
| ... | ... | @@ -424,38 +419,29 @@ input.button.with-text.icon-search.submit{ |
| 424 | 419 | padding: 5px; |
| 425 | 420 | |
| 426 | 421 | } |
| 427 | -/* | |
| 428 | -#close-filter-catalog:hover{ | |
| 429 | - background:#2B65CD; | |
| 430 | - border-radius: 4px; | |
| 431 | - margin-top: 5px; | |
| 432 | - color: #FFF; | |
| 433 | - text-transform: uppercase; | |
| 434 | - border-radius: 4px; | |
| 435 | - border: 1px solid #2B65CD; | |
| 436 | - padding: 5px; | |
| 437 | -} | |
| 438 | - | |
| 439 | -#close-filter-catalog:after{ | |
| 440 | - content:"︿"; | |
| 441 | - padding-left: 7px; | |
| 442 | - padding-right: 4px; | |
| 443 | - color: #172857; | |
| 444 | - background: none repeat scroll 0% 0% #EEE; | |
| 445 | - border-radius: 4px; | |
| 446 | - font-size: 15px; | |
| 447 | - line-height: 20px; | |
| 448 | - text-align: center; | |
| 449 | - position: relative; | |
| 450 | - margin-left: 5px; | |
| 451 | - top: 2px; | |
| 452 | - margin-right: 15px; | |
| 453 | -} | |
| 454 | -*/ | |
| 455 | 422 | |
| 456 | 423 | input[type=checkbox] { |
| 457 | 424 | border:1px solid #000; |
| 458 | 425 | margin:8px; |
| 459 | 426 | cursor:pointer; |
| 460 | 427 | } |
| 428 | + | |
| 429 | +#catalog-display-options { | |
| 430 | + position: relative; | |
| 431 | + width: 100%; | |
| 432 | +} | |
| 433 | + | |
| 434 | +#catalog-display-options-count, #catalog-display-options-show-and-sort { | |
| 435 | + position: relative; | |
| 436 | + float: left; | |
| 437 | + width: 50%; | |
| 438 | +} | |
| 439 | + | |
| 440 | +#catalog-display-options-show, #catalog-display-options-sort { | |
| 441 | + position: relative; | |
| 442 | + float: left; | |
| 443 | + width: 50%; | |
| 444 | + text-align: right; | |
| 445 | +} | |
| 446 | + | |
| 461 | 447 | /* End software catalog definitions */ |
| 462 | 448 | \ No newline at end of file | ... | ... |
views/search/_mpog_search_form.html.erb
| ... | ... | @@ -18,20 +18,20 @@ |
| 18 | 18 | <%= render :partial => 'catalog_filter' %> |
| 19 | 19 | |
| 20 | 20 | <!-- #display-options sera substituido pelo html passado pela equipe de design --> |
| 21 | - <div id="display-options" class=""> | |
| 22 | - <div id="software-count"> | |
| 21 | + <div id="catalog-display-options"> | |
| 22 | + <div id="catalog-display-options-count"> | |
| 23 | 23 | <strong><%= "#{@software_count} Software(s)" %> </strong> |
| 24 | 24 | </div> |
| 25 | 25 | |
| 26 | - <div> | |
| 27 | - <div> | |
| 26 | + <div id="catalog-display-options-show-and-sort"> | |
| 27 | + <div id="catalog-display-options-show"> | |
| 28 | 28 | Show: |
| 29 | 29 | <%= select_tag("software_display", |
| 30 | 30 | options_for_select(['15', '30', '90', 'All'], :selected=>params[:display]) |
| 31 | 31 | ) %> |
| 32 | 32 | </div> |
| 33 | 33 | |
| 34 | - <div> | |
| 34 | + <div id="catalog-display-options-sort"> | |
| 35 | 35 | Sort by: |
| 36 | 36 | <%= select_tag("sort", |
| 37 | 37 | options_for_select( | ... | ... |