Commit ea0cd6c5 authored by Matthew Cheney's avatar Matthew Cheney Committed by Earl Miles
Browse files

Issue #1711302 by populist, nicelobster: Added Make 'Add New Pane' an Icon with a Smaller Design.

parent 368bee26
Loading
Loading
Loading
Loading
+10 −6
Changes for panels_ipe/css/panels_ipe.css: 10 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -155,7 +155,7 @@ div.panels-ipe-newblock {
  -moz-box-shadow: 0px 0 5px 5px #ECFAFF;
  box-shadow: 0px 0 5px 5px #ECFAFF;
  position: absolute;
  left: 50%;
  right: 10px;
  top: 50%;
  margin-top: -18px; /* some initial guesses to help center the add button
    panels_ipe.js will evaluate the width and get this pixel-perfect */
@@ -169,7 +169,7 @@ div.panels-ipe-newblock a,
span.panels-ipe-draghandle-icon {
  display: inline-block;
  border: 1px solid #ccc;
	padding: 0 13px 1px;
	padding: 0 8px 1px;
	font: bold 12px/32px 'Open Sans', 'Lucida Sans', 'Lucida Grande', verdana sans-serif;
	text-decoration: none;
	height: 33px;
@@ -200,10 +200,6 @@ span.panels-ipe-draghandle-icon {
  box-shadow: 0px 3px 3px 0px #d2d2d2;
}

div.panels-ipe-handlebar-wrapper li a {
  padding: 0 8px  1px;
}

div.panels-ipe-handlebar-wrapper li a span,
div.panels-ipe-newblock a span {
  display: block;
@@ -224,6 +220,14 @@ div.panels-ipe-newblock a.style span {
  background-image: url(../images/icon-style.png);
}

div.panels-ipe-newblock a.style {
  margin-right: .5em;
}

div.panels-ipe-newblock a.add span {
  background-image: url(../images/icon-add.png);
}

div.panels-ipe-handlebar-wrapper li.delete a span {
  background-image: url(../images/icon-delete.png);
}
+1.03 KiB
Loading image diff...
+10 −3
Changes for panels_ipe/panels_ipe.module: 10 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -146,9 +146,7 @@ function theme_panels_ipe_add_pane_button($vars) {
  $region_id = $vars['region_id'];
  $display = $vars['display'];
  $renderer = $vars['renderer'];

  $attributes = array('class' =>array('ctools-use-modal', 'panels-ipe-hide-bar'));
  $link = l(t('Add new pane'), $renderer->get_url('select-content', $region_id), array('attributes' => $attributes));
  $link = '';

  // Add option to configure style in IPE
  if (user_access('administer panels styles')) {
@@ -161,6 +159,15 @@ function theme_panels_ipe_add_pane_button($vars) {
    ));
  }

  // Add option to add items in the IPE
  $link .= ' ' . l('<span>' . t('Add new pane') . '</span>', $renderer->get_url('select-content', $region_id), array(
      'attributes' => array(
        'class' => array('ctools-use-modal', 'add'),
        'title' => t('Add new pane'),
      ),
      'html' => TRUE,
  ));

  return '<div class="panels-ipe-newblock panels-ipe-on">' . $link . '</div>';
}