[PATCH conductor] BZ798570 reworked more_actions dropdown to align properly
Imre Farkas
ifarkas at redhat.com
Tue Mar 6 14:15:19 UTC 2012
On 03/05/2012 03:44 PM, jtomasek at redhat.com wrote:
> From: Jiri Tomasek<jtomasek at redhat.com>
>
> ---
> src/app/stylesheets/layout.scss | 8 ++++----
> src/app/views/instances/_list.html.haml | 7 ++++---
> 2 files changed, 8 insertions(+), 7 deletions(-)
>
> diff --git a/src/app/stylesheets/layout.scss b/src/app/stylesheets/layout.scss
> index 311af3d..f2671b0 100644
> --- a/src/app/stylesheets/layout.scss
> +++ b/src/app/stylesheets/layout.scss
> @@ -3044,7 +3044,7 @@ form.filterable-data{
> li{
> @include display_inline_block;
> vertical-align: middle;
> - padding: 1px 0px;
> + padding: 0px 0px;
> }
> li> *{vertical-align: middle;}
> ul.filter-controls{
> @@ -3063,18 +3063,18 @@ form.filterable-data{
>
> li.more_actions{
> position: relative;
> - padding: 8px 0px 8px 0px;
> - display: inline;
> + padding: 5px 0px 5px 0px;
> & > span {
> border: 1px solid #bbb;
> border-radius: 3px;
> padding: 3px 4px;
> @include gradient-bg($cell_color_base, $cell_color_header);
> +&:after{ content: ""; }
> }
> ul{
> display: none;
> position: absolute;
> - top: 30px;
> + top: 27px;
> left: 0px;
> background: white;
> border: 1px solid #bbb;
> diff --git a/src/app/views/instances/_list.html.haml b/src/app/views/instances/_list.html.haml
> index 7b4142e..2bd24b4 100644
> --- a/src/app/views/instances/_list.html.haml
> +++ b/src/app/views/instances/_list.html.haml
> @@ -1,8 +1,9 @@
> - content_for :form_header do
> - %li= restful_submit_tag "#{t'instances.list.stop_selected_instances'}", 'stop', multi_stop_instances_path, 'GET', :class => 'button', :id => 'stop_selected_instances', 'data-none_selected' => t('instances.none_selected')
> - %li= restful_submit_tag "#{t'instances.list.reboot_selected_instances'}", 'reboot', multi_reboot_instances_path, 'GET', :class => 'button', :id => 'reboot_selected_instances', 'data-none_selected' => t('instances.none_selected_to_reboot')
> + %li= restful_submit_tag t('instances.list.stop_selected_instances'), 'stop', multi_stop_instances_path, 'GET', :class => 'button', :id => 'stop_selected_instances', 'data-none_selected' => t('instances.none_selected')
> + %li= restful_submit_tag t('instances.list.reboot_selected_instances'), 'reboot', multi_reboot_instances_path, 'GET', :class => 'button', :id => 'reboot_selected_instances', 'data-none_selected' => t('instances.none_selected_to_reboot')
> %li.more_actions
> - %span= image_tag "more_actions_drop.png"
> + %span
> + = image_tag "more_actions_drop.png"
> %ul
> %li= link_to "#{t'instances.list.export_events'}", export_events_instances_path(:deployment_id => @deployment)
> = hidden_field_tag 'backlink', request.url
ACK
More information about the aeolus-devel
mailing list