UNPKG

17.3 kBHTMLView Raw
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <meta http-equiv="X-UA-Compatible" content="IE=edge">
7 <meta name="msapplication-tap-highlight" content="no">
8 <meta name="description" content="Materialize is a modern responsive CSS framework based on Material Design by Google. ">
9 <title>Sass - Materialize</title>
10 <!-- Favicons-->
11 <link rel="apple-touch-icon-precomposed" href="images/favicon/apple-touch-icon-152x152.png">
12 <meta name="msapplication-TileColor" content="#FFFFFF">
13 <meta name="msapplication-TileImage" content="images/favicon/mstile-144x144.png">
14 <link rel="icon" href="images/favicon/favicon-32x32.png" sizes="32x32">
15 <!-- Android 5 Chrome Color-->
16 <meta name="theme-color" content="#EE6E73">
17 <!-- CSS-->
18 <link href="css/prism.css" rel="stylesheet">
19 <link href="css/ghpages-materialize.css" type="text/css" rel="stylesheet" media="screen,projection">
20 <link href="http://fonts.googleapis.com/css?family=Inconsolata" rel="stylesheet" type="text/css">
21 <link href="http://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
22 <script>
23 window.liveSettings = {
24 api_key: "a0b49b34b93844c38eaee15690d86413",
25 picker: "bottom-right",
26 detectlang: true,
27 dynamic: true,
28 autocollect: true
29 };
30 </script>
31 <script src="//cdn.transifex.com/live.js"></script>
32 </head>
33 <body>
34 <header>
35 <nav class="top-nav">
36 <div class="container">
37 <div class="nav-wrapper"><a class="page-title">Sass</a></div>
38 </div>
39 </nav>
40 <div class="container"><a href="#" data-activates="nav-mobile" class="button-collapse top-nav full hide-on-large-only"><i class="mdi-navigation-menu"></i></a></div>
41 <ul id="nav-mobile" class="side-nav fixed">
42 <li class="logo"><a id="logo-container" href="http://materializecss.com/" class="brand-logo">
43 <object id="front-page-logo" type="image/svg+xml" data="res/materialize.svg">Your browser does not support SVG</object></a></li>
44 <li class="search">
45 <div class="search-wrapper card">
46 <input id="search"><i class="material-icons">search</i>
47 <div class="search-results"></div>
48 </div>
49 </li>
50 <li class="bold"><a href="about.html" class="waves-effect waves-teal">About</a></li>
51 <li class="bold"><a href="getting-started.html" class="waves-effect waves-teal">Getting Started</a></li>
52 <li class="no-padding">
53 <ul class="collapsible collapsible-accordion">
54 <li class="bold"><a class="collapsible-header active waves-effect waves-teal">CSS</a>
55 <div class="collapsible-body">
56 <ul>
57 <li><a href="color.html">Color</a></li>
58 <li><a href="grid.html">Grid</a></li>
59 <li><a href="helpers.html">Helpers</a></li>
60 <li><a href="media-css.html">Media</a></li>
61 <li class="active"><a href="sass.html">Sass</a></li>
62 <li><a href="shadow.html">Shadow</a></li>
63 <li><a href="table.html">Table</a></li>
64 <li><a href="typography.html">Typography</a></li>
65 </ul>
66 </div>
67 </li>
68 <li class="bold"><a class="collapsible-header waves-effect waves-teal">Components</a>
69 <div class="collapsible-body">
70 <ul>
71 <li><a href="badges.html">Badges</a></li>
72 <li><a href="buttons.html">Buttons</a></li>
73 <li><a href="breadcrumbs.html">Breadcrumbs</a></li>
74 <li><a href="cards.html">Cards</a></li>
75 <li><a href="chips.html">Chips</a></li>
76 <li><a href="collections.html">Collections</a></li>
77 <li><a href="footer.html">Footer</a></li>
78 <li><a href="forms.html">Forms</a></li>
79 <li><a href="icons.html">Icons</a></li>
80 <li><a href="navbar.html">Navbar</a></li>
81 <li><a href="pagination.html">Pagination</a></li>
82 <li><a href="preloader.html">Preloader</a></li>
83 </ul>
84 </div>
85 </li>
86 <li class="bold"><a class="collapsible-header waves-effect waves-teal">JavaScript</a>
87 <div class="collapsible-body">
88 <ul>
89 <li><a href="collapsible.html">Collapsible</a></li>
90 <li><a href="dialogs.html">Dialogs</a></li>
91 <li><a href="dropdown.html">Dropdown</a></li>
92 <li><a href="media.html">Media</a></li>
93 <li><a href="modals.html">Modals</a></li>
94 <li><a href="parallax.html">Parallax</a></li>
95 <li><a href="pushpin.html">Pushpin</a></li>
96 <li><a href="scrollfire.html">ScrollFire</a></li>
97 <li><a href="scrollspy.html">Scrollspy</a></li>
98 <li><a href="side-nav.html">SideNav</a></li>
99 <li><a href="tabs.html">Tabs</a></li>
100 <li><a href="transitions.html">Transitions</a></li>
101 <li><a href="waves.html">Waves</a></li>
102 </ul>
103 </div>
104 </li>
105 </ul>
106 </li>
107 <li class="bold"><a href="http://materializecss.com/mobile.html" class="waves-effect waves-teal">Mobile</a></li>
108 <li class="bold"><a href="showcase.html" class="waves-effect waves-teal">Showcase</a></li>
109 </ul>
110 </header>
111 <main><div class="container">
112 <div class="row">
113
114 <div class="col s12 m9 l10">
115
116 <!-- Variables Section -->
117 <div id="variables" class="section scrollspy">
118 <h2 class="header">Variables</h2>
119 <p class="caption">
120 When using Sass, you can change the color scheme of your site extremely quickly. Below is a very small sample of what you can change through sass in <code class="language-scss">_variables.scss</code>.
121 </p>
122 <pre><code class="language-scss">
123 $primary-color: color("materialize-red", "lighten-2") !default;
124 $primary-color-light: false !default;
125 $primary-color-dark: false !default;
126 @if not $primary-color-light {
127 $primary-color-light: lighten($primary-color, 15%);
128 }
129 @if not $primary-color-dark {
130 $primary-color-dark: darken($primary-color, 15%);
131 }
132 $secondary-color: color("teal", "lighten-1") !default;
133 $success-color: color("green", "base") !default;
134 $error-color: color("red", "base") !default;
135
136 $link-color: color("light-blue", "darken-1") !default;
137
138 /*** More variables not shown here.. ***/
139 </code></pre>
140 </div>
141
142 <!-- Media Queries Section -->
143 <div id="media" class="section scrollspy">
144 <h2 class="header">Media Queries</h2>
145 <p class="caption">
146 We have 3 media queries for the 3 standard screen sizes you can use in your custom Sass files. This also includes media query variables that will define the range.
147 </p>
148 <p>
149 Small screens are defined as having a max-width of 600px
150 <br>
151 Medium screens are defined as having a max-width of 992px
152 <br>
153 Large screen are defined as having a min-width of 993px
154 </p>
155
156 <h4>CSS</h4>
157 <pre><code class="language-css col s12">
158 /* These classes can be added to HTML Elements
159 * to affect visibility on certain displays.
160 */
161 .hide-on-small-only
162 .hide-on-small-and-down
163 .hide-on-med-and-down
164 .hide-on-med-and-up
165 .hide-on-med-only
166 .hide-on-large-only
167 .show-on-large
168 .show-on-medium
169 .show-on-small
170 .show-on-medium-and-up
171 .show-on-medium-and-down
172 </code></pre>
173
174 <h4>Sass</h4>
175 <pre><code class="language-scss col s12">
176 @media #{$small-and-down} {
177 // styles for small screens and down
178 }
179 @media #{$medium-and-up} {
180 // styles for medium screens and larger
181 }
182 @media #{$medium-and-down} {
183 // styles for medium screens and down
184 }
185 @media #{$large-and-up} {
186 // styles for large screens and up
187 }
188 </code></pre>
189 </div>
190
191 <!-- Prefixer Section-->
192 <div id="mixins" class="section scrollspy">
193 <h2 class="header">Prefixer</h2>
194 <p class="caption">
195 One major goal of this framework is to be as adaptable as possible which includes cross browser compatibility. We have adapted a prefixer script to Sass which will automatically add all browser prefixes for certain CSS properties.
196 </p>
197
198
199 For Example: Using this Sass mixin
200 <pre><code class="language-scss">
201 @include transition(.3s);
202 </code></pre>
203 Will Output This
204 <pre><code class="language-css">
205 -webkit-transition: 0.3s;
206 -moz-transition: 0.3s;
207 -o-transition: 0.3s;
208 -ms-transition: 0.3s;
209 transition: 0.3s;
210 </code></pre>
211 Here is the full list of mixins
212 <pre><code class="language-css">
213 animation($args)
214 animation-delay($delay)
215 animation-direction($direction)
216 animation-duration($duration)
217 animation-fill-mode($mode)
218 animation-iteration-count($count)
219 animation-name($name)
220 animation-play-state($state)
221 animation-timing-function($function)
222 background-size($args)
223 box-sizing($args)
224 border-box()
225 content-box()
226 columns($args)
227 column-count($count)
228 column-gap($gap)
229 column-rule($args)
230 column-width($width)
231 gradient($default,$start,$stop)
232 linear-gradient-top($default,$color1,$stop1,$color2,$stop2,[$color3,$stop3,$color4,$stop4])
233 linear-gradient-left($default,$color1,$stop1,$color2,$stop2,[$color3,$stop3,$color4,$stop4])
234 transform($args)
235 transform-origin($args)
236 transform-style($style)
237 rotate($deg)
238 scale($factor)
239 translate($x,$y)
240 translate3d($x,$y,$z)
241 translateHardware($x,$y)
242 text-shadow($args)
243 transition($args)
244 transition-delay($delay)
245 transition-duration($duration)
246 transition-property($property)
247 transition-timing-function($function)
248 </code></pre>
249 </div>
250 </div>
251 <div class="col hide-on-small-only m3 l2">
252 <div class="toc-wrapper">
253 <div class="buysellads hide-on-small-only">
254 <!-- CarbonAds Zone Code -->
255 <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=materializecss" id="_carbonads_js"></script>
256 </div>
257 <div style="height: 1px;">
258 <ul class="section table-of-contents">
259 <li><a href="#variables">Variables</a></li>
260 <li><a href="#media">Media Queries</a></li>
261 <li><a href="#mixins">Mixins</a></li>
262 </ul>
263 </div>
264 </div>
265 </div>
266
267 </div> <!-- end row -->
268
269</div>
270
271 </main> <footer class="page-footer">
272 <div class="container">
273 <div class="row">
274 <div class="col l4 s12">
275 <h5 class="white-text">Help Materialize Grow</h5>
276 <p class="grey-text text-lighten-4">We are a team of college students working on this project like it's our full time job. Any amount would help support and continue development on this project and is greatly appreciated.</p>
277 <form id="paypal-donate" action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
278<input type="hidden" name="cmd" value="_s-xclick">
279<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHLwYJKoZIhvcNAQcEoIIHIDCCBxwCAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYC2O5rnsmP26R+2wNew3Jc3rCzBzw8LpJh1TTRZyMIFMYv/voKC1TMEvxU0ct4gdsZ29zARE96gRsCPVtVpY1hGr0NivLXeiHyw3xoW9UfzjcI9gZy5PZYoNv2xkTMj+jUkzuBMDiB2JfrIH7Z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KSBkTCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb22CAQAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCBXzpWmoBa5e9fo6ujionW1hUhPkOBakTr3YCDjbYfvJEiv/2P+IobhOGJr85+XHhN0v4gUkEDI8r2/rNk1m0GA8HKddvTjyGw/XqXa+LSTlDYkqI8OwR8GEYj4efEtcRpRYBxV8KxAW93YDWzFGvruKnnLbDAF6VR5w/cCMn5hzGCAZowggGWAgEBMIGUMIGOMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExFjAUBgNVBAcTDU1vdW50YWluIFZpZXcxFDASBgNVBAoTC1BheVBhbCBJbmMuMRMwEQYDVQQLFApsaXZlX2NlcnRzMREwDwYDVQQDFAhsaXZlX2FwaTEcMBoGCSqGSIb3DQEJARYNcmVAcGF5cGFsLmNvbQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTQxMjE1MDcwNTI3WjAjBgkqhkiG9w0BCQQxFgQUTOnEae05+jEbHsz0um3L3/Cl/zgwDQYJKoZIhvcNAQEBBQAEgYAGuieIpSk7XCxyo4RieZQ/SO0EHUYEW9B7KFJB9qZ1+yCKpUm7prwsGGOJAAdqKOw59I7qjLQI5cFJz/O8Ivb14TclAZiKTnOCB/wO1QHp+9s+hF00D6v0TDetLm0GLnk/7ljWvNq1pTyiMTLVg4yw1dAzQE1tC6bYTtLuDhLl0Q==-----END PKCS7-----
280">
281<button class="btn waves-effect waves-light red lighten-3" type="submit" name="action" alt="PayPal - The safer, easier way to pay online!">Donate Now
282</button>
283</form>
284
285 </div>
286 <div class="col l4 s12">
287 <h5 class="white-text">Join the Discussion</h5>
288 <p class="grey-text text-lighten-4">We have a Gitter chat room set up where you can talk directly with us. Come in and discuss new features, future goals, general problems or questions, or anything else you can think of.</p>
289 <a class="btn waves-effect waves-light red lighten-3" target="_blank" href="https://gitter.im/Dogfalo/materialize">Chat</a>
290 </div>
291 <div class="col l4 s12" style="overflow: hidden;">
292 <h5 class="white-text">Connect</h5>
293 <iframe src="http://ghbtns.com/github-btn.html?user=dogfalo&repo=materialize&type=watch&count=true&size=large" allowtransparency="true" frameborder="0" scrolling="0" width="170" height="30"></iframe>
294 <br>
295 <a href="https://twitter.com/MaterializeCSS" class="twitter-follow-button" data-show-count="true" data-size="large" data-dnt="true">Follow @MaterializeCSS</a>
296 <br>
297 <div class="g-follow" data-annotation="bubble" data-height="24" data-href="https://plus.google.com/108619793845925798422" data-rel="publisher"></div>
298 </div>
299 </div>
300 </div>
301 <div class="footer-copyright">
302 <div class="container">
303 © 2014-2015 Materialize, All rights reserved.
304 <a class="grey-text text-lighten-4 right" href="https://github.com/Dogfalo/materialize/blob/master/LICENSE">MIT License</a>
305 </div>
306 </div>
307 </footer>
308 <!-- Scripts-->
309 <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
310 <script>if (!window.jQuery) { document.write('<script src="bin/jquery-2.1.1.min.js"><\/script>'); }
311 </script>
312 <script src="js/jquery.timeago.min.js"></script>
313 <script src="js/prism.js"></script>
314 <script src="jade/lunr.min.js"></script>
315 <script src="jade/search.js"></script>
316 <script src="bin/materialize.js"></script>
317 <script src="js/init.js"></script>
318 <!-- Twitter Button -->
319 <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
320
321 <!-- Google Plus Button-->
322 <script src="https://apis.google.com/js/platform.js" async defer></script>
323
324 <!-- Google Analytics -->
325 <script>
326 (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
327 (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
328 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
329 })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
330
331 ga('create', 'UA-56218128-1', 'auto');
332 ga('require', 'displayfeatures');
333 ga('send', 'pageview');
334 </script>
335 </body>
336</html>
\No newline at end of file