I can't make "Show block editing on hover" to work properly. When I enable this option here: /admin/build/themes/settings/boron_zen, I can see "edit menu", "configure", "edit blocks" static links below each block and menu, but nothing changes on hover (in newest Chrome and Firefox 3.6 @ Ubuntu Karmic x64).

Comments

rtackett’s picture

I am having the same issue.

anniegreens’s picture

If I remember correctly when I was trying Boron for Zen, before creating my own HTML5 theme for Zen, I had to add the block-editing.css file. The contents of this file are:

/**
 * @file
 * Zen's rollover edit links for blocks.
 */


div.block.with-block-editing,
section.block.with-block-editing {
  position: relative;
}

div.block.with-block-editing div.edit,
section.block.with-block-editing div.edit {
  display: none;
  position: absolute;
  right: 0; /* LTR */
  top: 0;
  z-index: 40;
  border: 1px solid #eee;
  padding: 0 2px;
  font-size: 0.75em;
  background-color: #fff;
}

div.block.with-block-editing:hover div.edit,
section.block.with-block-editing:hover div.edit {
  display: block;
}
rtackett’s picture

Version: 6.x-1.x-dev » 6.x-1.0-beta1
Component: User interface » Code
Status: Active » Needs review

I found the issue. The zen block editing is looking for div.block.with-block-editing div.edit

With the HTML5 entities, the block div is actually named "section". Replace the block-editing.css with this code:

/* --------------------------------------------
Block Editing on Hover 
----------------------------------------------- */

section.block.with-block-editing {
  position: relative;
}

section.block.with-block-editing div.edit {
  display: none;
  position: absolute;
  right: 0; /* LTR */
  top: 0;
  z-index: 40;
  border: 1px solid #eee;
  padding: 0 2px;
  font-size: 0.75em;
  background-color: #fff;
}

section.block.with-block-editing:hover div.edit {
  display: block;
}
R2-D8’s picture

I can confirm this correction helps, but...

I also hat to alter block.tpl.php from

...
  <div class="content">
    <?php print $content; ?>
  </div>

  <?php print $edit_links; ?>
...

to

...
  <div class="content">
    <?php print $edit_links; ?>
    <?php print $content; ?>
  </div>
...

I don't know if this is html5-compliant, but for me block editing is only an admin feature- so I don't mind.