Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document options
  • Loading branch information
nt1m committed Feb 25, 2015
1 parent 902efc6 commit bbb0e20
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
1 change: 1 addition & 0 deletions css/material.css
Expand Up @@ -640,6 +640,7 @@ code {
padding: 0.3125em 0.625em;
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26), 0 2px 10px 0 rgba(0, 0, 0, 0.16);
background-color: #fff;
transition: all 0.2s;
}
.toolbar > *:not(sub):not(sup) {
vertical-align: middle;
Expand Down
3 changes: 3 additions & 0 deletions demo-files/demo.css
Expand Up @@ -12,6 +12,9 @@
margin-top: -100px;
}
/* Sections */
.navigation-section {
background-color: inherit;
}
.navigation-section:not(:target) {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/material.min.css

Large diffs are not rendered by default.

13 changes: 12 additions & 1 deletion index.html
Expand Up @@ -69,6 +69,17 @@ <h2>Setup</h2>
// This will initialize only the Responsive and SideMenu modules
var md = new Material({modules: ["Responsive", "SideMenu"]});
</code>
<p>You can also specify options :</p>
<code class="prettyprint">
var md = new Material({
options: {
FancyHeader: {
header: document.querySelector(".toolbar"),
scrollTarget: document.querySelector(".main-content")
}
}
});
</code>
</div>
<div class="section">
<h1>Showcase</h1>
Expand Down Expand Up @@ -557,7 +568,7 @@ <h2>Examples</h2>
&lt;button class="button raised bg-blue-500 color-white" ripple="none">No ripple&lt;/button>
&lt;div style="width: 100px;height: 100px;padding: 10px;" ripple="circle">Circular ripple&lt;/div>
</code>
<p class="bold">Or... using class names :</p>
<p>Or... using class names :</p>
<code class="prettyprint">
&lt;button class="button raised bg-blue-500 color-white no-ripple">No ripple&lt;/button>
&lt;div class="ripple circle" style="width: 100px;height: 100px;padding: 10px;">Circular ripple&lt;/div>
Expand Down

0 comments on commit bbb0e20

Please sign in to comment.