You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>If you want a fixed floating action button, you can add multiple actions that will appear on hover. Our demo is in the bottom righthand corner of the page.</p>
<p>If you want to disable the hover behaviour, and instead toggle the FAB menu when the user clicks on the large button (works great on mobile!), just add the <codeclass="language-markup">click-to-toggle</code> class to the FAB.</p>
<p>Instead of displaying individual button options, you can transition your FAB into a toolbar on click. Just add the <codeclass="language-markup">toolbar</code> class to the FAB.</p>
Copy file name to clipboardexpand all lines: jade/page-contents/chips_content.html
+85-23
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,6 @@
4
4
<divclass="col s12 m8 offset-m1 xl7 offset-xl1">
5
5
6
6
<divid="introduction" class="section scrollspy">
7
-
<h4>Introduction</h4>
8
7
<pclass="caption">
9
8
Chips can be used to represent small blocks of information. They are most commonly used either for contacts or for tags.
10
9
</p>
@@ -19,7 +18,7 @@ <h4>Introduction</h4>
19
18
</div>
20
19
21
20
<divid="contact" class="section scrollspy">
22
-
<h4>Contacts</h4>
21
+
<h3class="header">Contacts</h3>
23
22
<pclass="caption">
24
23
To create a contact chip just add an img inside.
25
24
</p>
@@ -32,7 +31,7 @@ <h4>Contacts</h4>
32
31
</div>
33
32
34
33
<divid="tag" class="section scrollspy">
35
-
<h4>Tags</h4>
34
+
<h3class="header">Tags</h3>
36
35
<pclass="caption">
37
36
To create a tag chip just add a close icon inside with the class <codeclass="language-markup">close</code>.
38
37
</p>
@@ -45,7 +44,7 @@ <h4>Tags</h4>
45
44
</div>
46
45
47
46
<divid="basic" class="section scrollspy">
48
-
<h4>Javascript Plugin Usage</h4>
47
+
<h3class="header">Javascript Plugin</h4>
49
48
<pclass="caption">To add tags, just enter your tag text and press enter. You can delete them by clicking on the close icon or by using your delete button.</p>
Copy file name to clipboardexpand all lines: jade/page-contents/css-transitions_content.html
+4-1
Original file line number
Diff line number
Diff line change
@@ -6,13 +6,16 @@
6
6
<divid="scale" class="section scrollspy">
7
7
<pclass="caption">We've made some custom animation classes that will transition your content with only CSS. Each CSS transition consists of a base class that applies the necessary styles and additional classes that control the state of the transition.</p>
8
8
9
-
<h4>Scale</h4>
9
+
<br>
10
+
<h5>Scale</h5>
10
11
<p>Use this scale in and out elements. Make sure to add the base transition class <codeclass="language-markup">scale-transition</code>. Then add the class <codeclass="language-markup">scale-out</code> to scale the element down until it is hidden. To start something as hidden, add the class <codeclass="language-markup">scale-out</code> first, and then add the class <codeclass="language-markup">scale-in</code> to scale the element up until it is shown.</p>
Copy file name to clipboardexpand all lines: jade/page-contents/grid_content.html
+12-12
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
<h3class="header">Container</h3>
10
10
<p>The container class is not strictly part of the grid but is important in laying out content. It allows you to center your page content. The <codeclass="language-markup">container</code> class is set to ~70% of the window width. It helps you center and contain your page content. We use the container to contain our body content.
11
11
12
-
<h4>Demo</h4>
12
+
<h5>Demo</h5>
13
13
<p>Try the button below to see what the page looks like without containers.</p>
14
14
<aid="container-toggle-button" class="btn waves-effect waves-light">Turn off Containers</a>
15
15
@@ -63,7 +63,7 @@ <h4>Demo</h4>
63
63
<divid="grid-intro" class="scrollspy">
64
64
<h3class="header">Introduction</h3>
65
65
<p>Take a look at this section to quickly understand how the grid works!</p>
66
-
<h4>12 Columns</h4>
66
+
<h5>12 Columns</h5>
67
67
<p>Our standard grid has 12 columns. No matter the size of the browser, each of these columns will always have an equal width.</p>
<p>Remember when you are creating your layout that all columns must be contained inside a row and that you must add the <codeclass="language-markup">col</code> class to your inner divs to make them into columns</p>
105
105
<divclass="row">
106
106
<divclass="col s12 grid-example"><spanclass="flow-text">This div is 12-columns wide on all screen sizes</span></div>
<p>Here we will show you how to create some commonly used layouts with our grid system. Hopefully these will get you more comfortable with laying out elements. To keep these demos simple, the ones here will not be responsive.</p>
161
161
<divclass="row">
162
162
<divclass="col s12 m6">
163
-
<h4>Section</h4>
163
+
<h5>Section</h5>
164
164
<p>The section class is used for simple top and bottom padding. Just add the <codeclass="language-markup">section</code> class to your div's containing large blocks of content.</p>
165
165
</div>
166
166
<divclass="col s12 m6">
167
-
<h4>Divider</h4>
167
+
<h5>Divider</h5>
168
168
<p>Dividers are 1 pixel lines that help break up your content. Just add the <codeclass="language-markup">divider</code> to a div in between your content.</p>
169
169
</div>
170
170
</div>
171
171
172
-
<h4>Example Sections and Dividers</h4>
172
+
<h5>Example Sections and Dividers</h5>
173
173
<divclass="divider"></div>
174
174
<divclass="section">
175
175
<h5>Section 1</h5>
@@ -204,7 +204,7 @@ <h5>Section 3</h5>
204
204
</div>
205
205
</code></pre><br>
206
206
207
-
<h4>Example Promotion Table</h4>
207
+
<h5>Example Promotion Table</h5>
208
208
<p>If we want 3 divs that are equal size, we define the divs with a width of 4-columns, as 4+4+4 nicely adds up to 12. Inside those divs, we can put our content. Take our front page content for example. We've modified it slightly for the sake of this example.</p>
<p>You can see how easy it is to create layouts using the grid system. Just remember to make sure your column numbers add up to 12 for an even layout.</p>
253
253
254
254
<divclass="row">
@@ -307,7 +307,7 @@ <h4>Example Side Navigation Layout</h4>
<p>Above we showed you how to layout elements using our grid system. Now we'll show you how to design your layouts so that they look great on all screen sizes.</p>
310
-
<h4>Screen Sizes</h4>
310
+
<h5>Screen Sizes</h5>
311
311
<tableclass="highlight">
312
312
<thead>
313
313
<tr>
@@ -345,7 +345,7 @@ <h4>Screen Sizes</h4>
345
345
346
346
<br>
347
347
348
-
<h4>Adding Responsiveness</h4>
348
+
<h5>Adding Responsiveness</h5>
349
349
<p>In the previous examples, we only defined the size for small screens using <codeclass="language-markup">"col s12"</code>. This is fine if we want a fixed layout since the rules propagate upwards. By just saying s12, we are essentially saying <codeclass="language-markup">"col s12 m12 l12"</code>. But by explicitly defining the size we can make our website more responsive.</p>
<p>In this example below, we take the same layout from above, but we make it responsive by defining how many columns the div should take up on each screen size. Try resizing your browser and watch the layout change below.</p>
366
366
367
367
<divclass="row">
@@ -426,7 +426,7 @@ <h4>Responsive Side Navigation Layout</h4>
426
426
</div>
427
427
</code></pre>
428
428
429
-
<h4>More Responsive Grid Examples</h4>
429
+
<h5>More Responsive Grid Examples</h5>
430
430
<divclass="row">
431
431
<divclass="col grid-example s12 blue lighten-1"><spanclass="flow-text">s12</span></div>
Copy file name to clipboardexpand all lines: jade/page-contents/helpers_content.html
+7-7
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
<h3class="header">Alignment</h3>
9
9
<pclass="caption">We have easy to use classes to help you align your content.</p>
10
10
11
-
<h5class="light">Vertical Align</h5>
11
+
<h5>Vertical Align</h5>
12
12
<p>You can easily vertically center things by adding the class <codeclass="language-markup">valign-wrapper</code> to the container holding the items you want to vertically align.</p>
13
13
<divclass="valign-demo valign-wrapper">
14
14
<h5>This should be vertically aligned</h5>
@@ -19,7 +19,7 @@ <h5>This should be vertically aligned</h5>
19
19
</div>
20
20
</code></pre><br>
21
21
22
-
<h5class="light">Text Align</h5>
22
+
<h5>Text Align</h5>
23
23
<p>These classes are for horizontally aligning content: <codeclass="language-markup">.left-align</code>, <codeclass="language-markup">.right-align</code> and <codeclass="language-markup">.center-align</code>.</p>
24
24
<divclass="talign-demo">
25
25
<br>
@@ -47,7 +47,7 @@ <h5 class="center-align">This should be center aligned</h5>
47
47
</div>
48
48
</code></pre><br>
49
49
50
-
<h5class="light">Quick Floats</h5>
50
+
<h5>Quick Floats</h5>
51
51
<p>Quickly float things by adding the class <codeclass="language-markup">left</code> or <codeclass="language-markup">right</code> to the element. <codeclass="language-markup">!important</code> is used to avoid specificity issues.</p>
<p>These classes help format various content on your site.</p>
131
131
132
-
<h5class="light">Truncation</h5>
132
+
<h5>Truncation</h5>
133
133
<p>To truncate long lines of text in an ellipsis, add the class <codeclass="language-markup">truncate</code> to the tag which contains the text. See an example below of a header being truncated inside a card.</p>
134
134
135
135
<divclass="row">
@@ -144,7 +144,7 @@ <h4 class="truncate">This is an extremely long title that will be truncated</h4>
144
144
<h4 class="truncate">This is an extremely long title that will be truncated</h4>
145
145
</code></pre><br>
146
146
147
-
<h5class="light">Hover</h5>
147
+
<h5>Hover</h5>
148
148
<p>The <codeclass="language-markup">hoverable</code> is a hover class that adds an animation for box shadow as seen below. It can be used on most elements, but meant for use on cards.</p>
Copy file name to clipboardexpand all lines: jade/page-contents/icons_content.html
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
<divid="usage" class="scrollspy">
6
6
<pclass="caption">We have included 932 Material Design Icons courtesy of Google. You can download them directly from the <ahref="https://google.github.io/material-design-icons/#icon-font-for-the-web">Material Design specs</a>.</p>
7
-
<h4>Usage</h4>
7
+
<h3class="header">Usage</h3>
8
8
<p>To be able to use these icons, you must include this line in the <codeclass="language-markup"><head></code>portion of your HTML code</p>
<p>To control the size of the icon, change the <codeclass="language-css">font-size: 30px</code> property of your icon. Optionally you can use preset classes as shown below.</p>
Copy file name to clipboardexpand all lines: jade/page-contents/media-css_content.html
+23-14
Original file line number
Diff line number
Diff line change
@@ -8,22 +8,27 @@
8
8
<h3class="header">Images</h3>
9
9
<pclass="caption">Images can be styled in different ways using Materialize</p>
10
10
11
-
<h4>Responsive Images</h4>
11
+
<br>
12
+
<h5>Responsive Images</h5>
12
13
<p>To make images resize responsively to page width, you can add the class <codeclass="language-markup">responsive-img</code> to your image tag. It will now have a <codeclass="language-markup">max-width: 100%</code> and <codeclass="language-markup">height:auto</code>.</p>
<p>After including the button-collapse line into your navbar, all you have to do now is place this code in your page's <codeclass="language-javascript">$( document ).ready(function(){})</code> code. This example below assumes you have not modified the classes in the above example. In the case that you have, just change the jQuery selector in the line below to match it.</p>
<p>There are 4 colors and 3 sizes of circular spinners. The spinner should be nested in a <codeclass="language-markup">preloader-wrapper</code> div. The default size is medium, but you can add the classes <codeclass="language-markup">big</code> or <codeclass="language-markup">small</code> to adjust the size accordingly. You can add the classes <codeclass="language-markup">spinner-red-only</code>, <codeclass="language-markup">spinner-blue-only</code>, <codeclass="language-markup">spinner-yellow-only</code> and <codeclass="language-markup">spinner-green-only</code>. You can also leave this class as just <codeclass="language-markup">spinner-layer</code> and it will be set to the <codeclass="language-css">$spinner-default-color</code> variable in our variables.scss file.</p>
Copy file name to clipboardexpand all lines: jade/page-contents/pulse_content.html
+3-1
Original file line number
Diff line number
Diff line change
@@ -5,13 +5,15 @@
5
5
<divid="pulse" class="section scrollspy">
6
6
<pclass="caption">Draw attention to your buttons with this subtle but captivating effect. Just add the class <codeclass="language-markup">pulse</code> to your button. Note: This is meant for floating buttons, so it may not work perfectly with every component.</p>
Copy file name to clipboardexpand all lines: jade/page-contents/typography_content.html
-20
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,6 @@
4
4
<divclass="col s12 m8 offset-m1 xl7 offset-xl1">
5
5
6
6
<divclass="section">
7
-
<divid="roboto" class="scrollspy">
8
-
<h3class="header">Roboto 2.0</h3>
9
-
<pclass="caption">
10
-
The standard font Material Design uses is Roboto. We have included the font files with our framework.
11
-
</p>
12
-
<divclass="row">
13
-
<pclass="col s12 m4">We bundle our framework with the latest iteration of Roboto Google has released. It comes with 5 different font weights you can use: 100, 300, 400, 500, 600.<br><br> Here is an image from Google's Roboto Specimen document displaying the different font weights.</p>
<p>In case you don't want to use Roboto on your webpage, fear not. Simply change the font stack by modifying the code below to your liking and add it to your custom css.</p>
0 commit comments