This is a default block, with very simple markup. It can take anything as content, with or without padding.
<div class="block"> <h3 class="block-title">Block title</h3> <div class="with-padding"> <!-- content here --> </div> </div>
... and also embed any element you need, such as buttons.
<div class="block"> <div class="block-title"> <h3>Block title</h3> <div class="button-group absolute-right compact"> <a href="#" class="button icon-pencil">Edit</a> <a href="#" class="button icon-gear with-tooltip" title="Other actions"></a> <a href="#" class="button icon-trash with-tooltip confirm" title="Delete"></a> </div> </div> <div class="with-padding"> <!-- content here --> </div> </div>
Details look pretty much like blocks, but they may be closed or opened simply by clicking on the title.
They use the HTML5 <details> element, with polyfill support for older browsers.
<details class="details margin-bottom" open> <summary>Title</summary> <div class="with-padding"> <!-- content here --> </div> </details>
First section content
The accordion plugin may also equalize the sections' height, just by adding the class same-height - as for this example.
Give it a try!
<dl class="accordion same-height"> <dt>First section</dt> <dd> <div class="with-padding"> <!-- content here --> </div> </dd> <dt>Second section</dt> <dd> <div class="with-padding"> <!-- content here --> </div> </dd> ... </dl>