better slide toggle description

This commit is contained in:
Bernhard Posselt
2014-05-23 18:57:47 +02:00
parent d6beb6fdb5
commit d9a69c25e2

View File

@@ -54,7 +54,9 @@ To create a settings area create a div with the id **app-settings** inside the *
<div id="app-settings">
<div id="app-settings-header">
<button class="settings-button" data-apps-slide-toggle="#app-settings-content"></button>
<button class="settings-button"
data-apps-slide-toggle="#app-settings-content"
></button>
</div>
<div id="app-settings-content">
<!-- Your settings in here -->
@@ -63,6 +65,8 @@ To create a settings area create a div with the id **app-settings** inside the *
</div>
</div>
The data attribute **data-apps-slide-toggle** slides up a taret area using a jQuery selector and hides the area if the user clicks outside of it.
Icons
=====
To use icons which are shipped in core, special class to apply the background image are supplied. All of these classes use **background-position: center** and **background-repeat: no-repeat**.