-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel W
authored and
Daniel W
committed
May 27, 2024
1 parent
0d49e72
commit 0accd10
Showing
9 changed files
with
60 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,9 @@ <h5>Materialize</h5> | |
are unfamiliar with Sass. | ||
</p> | ||
<a | ||
tabindex="0" | ||
id="download-source" | ||
class="btn waves-effect waves-light icon-right" | ||
class="btn filled waves-effect waves-light icon-right" | ||
href="https://github.com/materializecss/materialize/releases/download/2.0.3-alpha/materialize-v2.0.3-alpha.zip" | ||
> | ||
Materialize<i class="material-icons">file_download</i> | ||
|
@@ -42,8 +43,9 @@ <h5>Sass</h5> | |
you choose this option. | ||
</p> | ||
<a | ||
tabindex="0" | ||
id="download-sass" | ||
class="btn waves-effect waves-light icon-right" | ||
class="btn outlined waves-effect waves-light icon-right" | ||
href="https://github.com/materializecss/materialize/releases/download/2.0.3-alpha/materialize-src-v2.0.3-alpha.zip" | ||
> | ||
Source<i class="material-icons right">file_download</i> | ||
|
@@ -79,32 +81,23 @@ <h5>CDN</h5> | |
<a href="https://www.jsdelivr.com/package/npm/@materializecss/materialize">jsDelivr</a>. | ||
</p> | ||
<pre style="padding-top: 0px"> | ||
<span class="copyMessage">Copied!</span> | ||
<i class="material-icons copyButton">content_copy</i> | ||
<code class="language-markup copiedText"><xmp> | ||
<!-- Compiled and minified CSS --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@materializecss/[email protected]/dist/css/materialize.min.css"> | ||
<!-- Compiled and minified JavaScript --> | ||
<script src="https://cdn.jsdelivr.net/npm/@materializecss/[email protected]/dist/js/materialize.min.js"></script> | ||
</xmp></code></pre> | ||
<span class="copyMessage">Copied!</span> | ||
<i class="material-icons copyButton">content_copy</i> | ||
<code class="language-markup copiedText"><xmp><!-- Compiled and minified CSS --> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@materializecss/[email protected]/dist/css/materialize.min.css"> | ||
<!-- Compiled and minified JavaScript --> | ||
<script src="https://cdn.jsdelivr.net/npm/@materializecss/[email protected]/dist/js/materialize.min.js"></script> | ||
</xmp></code></pre> | ||
</div> | ||
<div class="col s12"> | ||
<h5>NPM</h5> | ||
<p>You can also get the latest release using NPM. This release contains source files as well as the compiled CSS and JavaScript files.</p> | ||
<pre><code class="language-bash"> | ||
npm install @materializecss/materialize | ||
</code></pre> | ||
<pre><code class="language-bash">npm install @materializecss/materialize</code></pre> | ||
</div> | ||
<div class="col s12"> | ||
<h5>Yarn</h5> | ||
<p> | ||
Since | ||
<strong><a href="https://bower.io/blog/2017/how-to-migrate-away-from-bower/">Bower is deprecated</a></strong | ||
>, you can get the latest release using yarn as your favorite package manager. | ||
</p> | ||
<pre><code class="language-bash"> | ||
yarn add @materializecss/materialize | ||
</code></pre> | ||
<p>Or you can get the latest release using yarn as your favorite package manager.</p> | ||
<pre><code class="language-bash">yarn add @materializecss/materialize</code></pre> | ||
</div> | ||
</div> | ||
</div> | ||
|
@@ -142,25 +135,22 @@ <h5>HTML Setup</h5> | |
<pre style="padding-top: 0px"> | ||
<span class="copyMessage">Copied!</span> | ||
<i class="material-icons copyButton">content_copy</i> | ||
<code class="language-markup copiedText"><xmp> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!--Import Google Icon Font--> | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
<!--Import materialize.css--> | ||
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/> | ||
<!--Let browser know website is optimized for mobile--> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
</head> | ||
<body> | ||
<!--JavaScript at end of body for optimized loading--> | ||
<script type="text/javascript" src="js/materialize.min.js"></script> | ||
</body> | ||
</html> | ||
</xmp> | ||
</code> | ||
</pre> | ||
<code class="language-markup copiedText"><xmp><!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!--Import Google Icon Font--> | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
<!--Import materialize.css--> | ||
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/> | ||
<!--Let browser know website is optimized for mobile--> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
</head> | ||
<body> | ||
<!--JavaScript at end of body for optimized loading--> | ||
<script type="text/javascript" src="js/materialize.min.js"></script> | ||
</body> | ||
</html> | ||
</xmp></code></pre> | ||
</div> | ||
</div> | ||
|
||
|
@@ -181,10 +171,10 @@ <h5>Starter Template</h5> | |
<img class="z-depth-1" style="width: 100%" src="images/starter-template.gif" /> | ||
</a> | ||
<p>This is the simplest starter page with a Header, Call-to-Action, and Icon Features.</p> | ||
<a class="btn waves-effect waves-light icon-right" style="margin-top: 8px" href="templates/starter-template/preview.html"> | ||
<a tabindex="0" class="btn filled waves-effect waves-light icon-right" style="margin-top: 8px" href="templates/starter-template/preview.html"> | ||
Demo <i class="material-icons">search</i> | ||
</a> | ||
<a class="btn waves-effect waves-light icon-right" style="margin-top: 8px" href="templates/starter-template.zip"> | ||
<a tabindex="0" class="btn outlined waves-effect waves-light icon-right" style="margin-top: 8px" href="templates/starter-template.zip"> | ||
Download<i class="material-icons">file_download</i> | ||
</a> | ||
</div> | ||
|
@@ -195,35 +185,16 @@ <h5>Parallax Template</h5> | |
<img class="z-depth-1" style="width: 100%" src="images/parallax-template.jpg" /> | ||
</a> | ||
<p>This is the simplest starter page with a Header, Call-to-Action, and Icon Features.</p> | ||
<a class="btn waves-effect waves-light icon-right" style="margin-top: 8px" href="templates/parallax-template/preview.html"> | ||
<a tabindex="0" class="btn filled waves-effect waves-light icon-right" style="margin-top: 8px" href="templates/parallax-template/preview.html"> | ||
Demo<i class="material-icons">search</i> | ||
</a> | ||
<a class="btn waves-effect waves-light icon-right" style="margin-top: 8px" href="templates/parallax-template.zip"> | ||
<a tabindex="0" class="btn outlined waves-effect waves-light icon-right" style="margin-top: 8px" href="templates/parallax-template.zip"> | ||
Download<i class="material-icons">file_download</i> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- Third Party Options --> | ||
<div id="third-party-options" class="row scrollspy"> | ||
<div class="col s12"> | ||
<h3 class="header">Third-party Options</h3> | ||
<p class="caption"> | ||
There are a few community-made options for you to easily include Materialize in your project. Keep in mind these are untested and may be out-of-date. | ||
</p> | ||
<h5>Ruby Gem</h5> | ||
<p> | ||
See | ||
<a href="https://github.com/mkhairi/materialize-sass">here</a> | ||
for documentation on this gem. | ||
</p> | ||
<pre><code class="language-bash"> | ||
gem 'materialize-sass' | ||
</code></pre> | ||
</div> | ||
</div> | ||
|
||
<div id="sass" class="row scrollspy"> | ||
<div class="col s12"> | ||
<h3 class="header">Sass Setup</h3> | ||
|
@@ -234,10 +205,8 @@ <h5>Compiling Sass</h5> | |
Unfortunately, the browser cannot interpret Sass, so you must have your Sass compiler compile the scss/materialize.scss into a regular CSS file. At this point you | ||
can link this newly outputted file in your HTML page. | ||
</p> | ||
|
||
<pre><code class="language-markup directory-markup"> | ||
<xmp> | ||
MyWebsite/ | ||
<xmp>MyWebsite/ | ||
|--css/ | ||
| |--materialize.css <-- compiled from scss/materialize.scss | ||
| | ||
|
@@ -262,9 +231,6 @@ <h5>Compiling Sass</h5> | |
<li><a href="#download">Download</a></li> | ||
<li><a href="#setup">Setup</a></li> | ||
<li><a href="#templates">Templates</a></li> | ||
<li> | ||
<a href="#third-party-options">Third-party Options</a> | ||
</li> | ||
<li><a href="#sass">Sass</a></li> | ||
</ul> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.