[Git][noosfero/noosfero][stable-1.10] Create a new css class .button-bar-boxes

Gabriel Silva gitlab at mg.gitlab.com
Wed Mar 21 12:48:53 BRT 2018


Gabriel Silva pushed to branch stable-1.10 at Noosfero / noosfero


Commits:
880c7600 by Maxwell Borges Bezerra at 2018-03-21T15:39:08Z
Create a new css class .button-bar-boxes

this fix "send" button alignment for poll and query block while editting
side boxes

closes #304

(cherry picked from commit 1d17a1667ad133a62ae93cc7900801038f9638f0)

- - - - -


2 changed files:

- app/helpers/boxes_helper.rb
- public/stylesheets/blocks.scss


Changes:

=====================================
app/helpers/boxes_helper.rb
=====================================
--- a/app/helpers/boxes_helper.rb
+++ b/app/helpers/boxes_helper.rb
@@ -313,7 +313,7 @@ module BoxesHelper
       buttons << modal_inline_icon(:embed, _('Embed code'), {}, "#embed-code-box-#{block.id}") << html
     end
 
-    content_tag('div', buttons.join("\n").html_safe + tag('br', :style => 'clear: left'), :class => 'button-bar')
+    content_tag('div', buttons.join("\n").html_safe + tag('br', :style => 'clear: left'), :class => 'button-bar button-bar-boxes')
   end
 
   def current_blocks


=====================================
public/stylesheets/blocks.scss
=====================================
--- a/public/stylesheets/blocks.scss
+++ b/public/stylesheets/blocks.scss
@@ -110,7 +110,7 @@
   min-height: 20px;
 }
 
-#box-organizer .block .button-bar {
+#box-organizer .block .button-bar-boxes {
   cursor: move;
   position: absolute;
   display: block;
@@ -122,8 +122,8 @@
   display: none;
 }
 
-#box-organizer .block-outer:focus .button-bar,
-#box-organizer .block-outer:hover .button-bar {
+#box-organizer .block-outer:focus .button-bar-boxes,
+#box-organizer .block-outer:hover .button-bar-boxes {
   display: block;
 }
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/880c7600598cce43551d5d7aad6ac4ff47624fce

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/commit/880c7600598cce43551d5d7aad6ac4ff47624fce
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180321/8232148f/attachment-0001.html>


More information about the Noosfero-dev mailing list