Skip to content

Commit

Permalink
v0.100.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
Dogfalo committed Jul 22, 2017
1 parent 3f69015 commit 72f2e94
Show file tree
Hide file tree
Showing 13 changed files with 98 additions and 23 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ Changelog
=======
Bolded styling surrounded by emojis indicates a breaking change.

## v0.100.1 (July 21st)
- Fixed bug where modal triggers could not contain child elements
- Fixed bug with right alignment option for dropdown
- Allow select native browser validation error messages
- Added fix for validation messages being mispositioned when input is empty

## v0.100.0 (July 19th)
- :sparkles: **Rewrote Modal Plugin** :sparkles:
- Modal open no longer initializes plugin
Expand Down
71 changes: 70 additions & 1 deletion dist/css/materialize.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Materialize v0.100.0 (http://materializecss.com)
* Materialize v0.100.1 (http://materializecss.com)
* Copyright 2014-2017 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/
Expand Down Expand Up @@ -6120,6 +6120,64 @@ textarea.materialize-textarea.validate + label {
width: 100%;
}

input:not([type]).invalid + label:after,
input:not([type]).valid + label:after,
input[type=text]:not(.browser-default).invalid + label:after,
input[type=text]:not(.browser-default).valid + label:after,
input[type=password]:not(.browser-default).invalid + label:after,
input[type=password]:not(.browser-default).valid + label:after,
input[type=email]:not(.browser-default).invalid + label:after,
input[type=email]:not(.browser-default).valid + label:after,
input[type=url]:not(.browser-default).invalid + label:after,
input[type=url]:not(.browser-default).valid + label:after,
input[type=time]:not(.browser-default).invalid + label:after,
input[type=time]:not(.browser-default).valid + label:after,
input[type=date]:not(.browser-default).invalid + label:after,
input[type=date]:not(.browser-default).valid + label:after,
input[type=datetime]:not(.browser-default).invalid + label:after,
input[type=datetime]:not(.browser-default).valid + label:after,
input[type=datetime-local]:not(.browser-default).invalid + label:after,
input[type=datetime-local]:not(.browser-default).valid + label:after,
input[type=tel]:not(.browser-default).invalid + label:after,
input[type=tel]:not(.browser-default).valid + label:after,
input[type=number]:not(.browser-default).invalid + label:after,
input[type=number]:not(.browser-default).valid + label:after,
input[type=search]:not(.browser-default).invalid + label:after,
input[type=search]:not(.browser-default).valid + label:after,
textarea.materialize-textarea.invalid + label:after,
textarea.materialize-textarea.valid + label:after {
display: none;
}

input:not([type]).invalid + label.active:after,
input:not([type]).valid + label.active:after,
input[type=text]:not(.browser-default).invalid + label.active:after,
input[type=text]:not(.browser-default).valid + label.active:after,
input[type=password]:not(.browser-default).invalid + label.active:after,
input[type=password]:not(.browser-default).valid + label.active:after,
input[type=email]:not(.browser-default).invalid + label.active:after,
input[type=email]:not(.browser-default).valid + label.active:after,
input[type=url]:not(.browser-default).invalid + label.active:after,
input[type=url]:not(.browser-default).valid + label.active:after,
input[type=time]:not(.browser-default).invalid + label.active:after,
input[type=time]:not(.browser-default).valid + label.active:after,
input[type=date]:not(.browser-default).invalid + label.active:after,
input[type=date]:not(.browser-default).valid + label.active:after,
input[type=datetime]:not(.browser-default).invalid + label.active:after,
input[type=datetime]:not(.browser-default).valid + label.active:after,
input[type=datetime-local]:not(.browser-default).invalid + label.active:after,
input[type=datetime-local]:not(.browser-default).valid + label.active:after,
input[type=tel]:not(.browser-default).invalid + label.active:after,
input[type=tel]:not(.browser-default).valid + label.active:after,
input[type=number]:not(.browser-default).invalid + label.active:after,
input[type=number]:not(.browser-default).valid + label.active:after,
input[type=search]:not(.browser-default).invalid + label.active:after,
input[type=search]:not(.browser-default).valid + label.active:after,
textarea.materialize-textarea.invalid + label.active:after,
textarea.materialize-textarea.valid + label.active:after {
display: block;
}

/* Validation Sass Placeholders */
input.valid:not([type]), input.valid:not([type]):focus,
input[type=text].valid:not(.browser-default),
Expand Down Expand Up @@ -6917,6 +6975,17 @@ select {
height: 3rem;
}

.input-field select {
display: block;
position: absolute;
width: 0;
pointer-events: none;
height: 0;
top: 0;
left: 0;
opacity: 0;
}

.select-label {
position: absolute;
}
Expand Down
4 changes: 2 additions & 2 deletions dist/css/materialize.min.css

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions dist/js/materialize.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Materialize v0.100.0 (http://materializecss.com)
* Materialize v0.100.1 (http://materializecss.com)
* Copyright 2014-2017 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/
Expand Down Expand Up @@ -1662,7 +1662,6 @@ if (jQuery) {
origin.addClass('active');

var originWidth = origin[0].getBoundingClientRect().width;
var activatesWidth = activates[0].getBoundingClientRect().width;

// Constrain width
if (curr_options.constrainWidth === true) {
Expand Down Expand Up @@ -1732,7 +1731,7 @@ if (jQuery) {
left: 0
});

var offsetRight = origin.position().left + originWidth - activatesWidth;
var offsetRight = origin.position().left + originWidth - activates.width();
gutterSpacing = -curr_options.gutter;
leftPosition = offsetRight + gutterSpacing;
}
Expand Down Expand Up @@ -1981,11 +1980,11 @@ if (jQuery) {
value: function handleTriggerClick(e) {
var $trigger = $(e.target).closest('.modal-trigger');
if (e.target && $trigger.length) {
var modalId = e.target.getAttribute('href');
var modalId = $trigger[0].getAttribute('href');
if (modalId) {
modalId = modalId.slice(1);
} else {
modalId = e.target.getAttribute('data-target');
modalId = $trigger[0].getAttribute('data-target');
}
var modalInstance = document.getElementById(modalId).M_Modal;
if (modalInstance) {
Expand Down Expand Up @@ -2015,7 +2014,8 @@ if (jQuery) {
}, {
key: 'handleModalCloseClick',
value: function handleModalCloseClick(e) {
if (e.target && e.target.classList.contains('modal-close')) {
var $closeTrigger = $(e.target).closest('.modal-close');
if (e.target && $closeTrigger.length) {
this.close();
}
}
Expand Down Expand Up @@ -3353,7 +3353,7 @@ if (jQuery) {
Waves.displayEffect();
}, false);
})(window);
;(function () {
;(function ($) {
'use strict';

var _defaults = {
Expand Down Expand Up @@ -3702,7 +3702,7 @@ if (jQuery) {
window.Materialize.toast = function (message, displayLength, className, completeCallback) {
return new Toast(message, displayLength, className, completeCallback);
};
})();
})(jQuery);
;(function ($) {

var methods = {
Expand Down
4 changes: 2 additions & 2 deletions dist/js/materialize.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion extras/noUiSlider/nouislider.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Materialize v0.100.0 (http://materializecss.com)
* Materialize v0.100.1 (http://materializecss.com)
* Copyright 2014-2015 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/
Expand Down
4 changes: 2 additions & 2 deletions extras/noUiSlider/nouislider.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Materialize v0.100.0 (http://materializecss.com)
* Materialize v0.100.1 (http://materializecss.com)
* Copyright 2014-2015 Materialize
* MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
*/
Expand Down Expand Up @@ -2144,4 +2144,4 @@ typeof b&&isFinite(b)?b:!1}function x(b){var f,c,d,e={};for(f=0;f<h.length;f+=1)
create: initialize
};

}));
}));
8 changes: 4 additions & 4 deletions jade/getting_started/getting_started_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,23 @@ <h2 class="col s12 header">Download</h2>
<div class="col s12 m6">
<p class="promo-caption">Materialize</p>
<p>This is the standard version that comes with both the minified and unminified CSS and JavaScript files. This option requires little to no setup. Use this if you are unfamiliar with Sass.</p>
<a id="download-source" class="btn waves-effect waves-light" href="https://github.com/Dogfalo/materialize/releases/download/v0.100.0/materialize-v0.100.0.zip">Materialize<i class="material-icons right">file_download</i></a>
<a id="download-source" class="btn waves-effect waves-light" href="https://github.com/Dogfalo/materialize/releases/download/v0.100.1/materialize-v0.100.1.zip">Materialize<i class="material-icons right">file_download</i></a>
</div>
<div class="col s12 m6">
<p class="promo-caption">Sass</p>
<p>This version contains the source SCSS files. By choosing this version you have more control over which components to include. You will need a Sass compiler if you choose this option.</p>
<a id="download-sass" class="btn waves-effect waves-light" href="https://github.com/Dogfalo/materialize/releases/download/v0.100.0/materialize-src-v0.100.0.zip">Source<i class="material-icons right">file_download</i></a>
<a id="download-sass" class="btn waves-effect waves-light" href="https://github.com/Dogfalo/materialize/releases/download/v0.100.1/materialize-src-v0.100.1.zip">Source<i class="material-icons right">file_download</i></a>
</div>
<div class="col s12">
<br>
<p class="promo-caption">CDN</p>
<p>You can find all the versions of the CDN at <a href="https://cdnjs.com/libraries/materialize">cdnjs</a>.</p>
<pre><code class="language-markup">
&lt;!-- Compiled and minified CSS -->
&lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.0/css/materialize.min.css">
&lt;link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css">

&lt;!-- Compiled and minified JavaScript -->
&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.0/js/materialize.min.js">&lt;/script>
&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/js/materialize.min.js">&lt;/script>
</code></pre>
</div>
<div class="col s12">
Expand Down
2 changes: 1 addition & 1 deletion jade/index/index_content.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h4 class ="header col s12 light center">A modern responsive front-end framework
<div class="row center">
<a href="http://materializecss.com/getting-started.html" id="download-button" class="btn-large waves-effect waves-light">Get Started</a>
</div>
<div class="row center"><a class="red-text text-lighten-4" href="https://github.com/Dogfalo/materialize">beta release v0.100.0</a></div>
<div class="row center"><a class="red-text text-lighten-4" href="https://github.com/Dogfalo/materialize">beta release v0.100.1</a></div>

<div class="buysellads-header buysellads-homepage row center">
<!-- CarbonAds Zone Code -->
Expand Down
2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Package.describe({
name: 'materialize:materialize', // http://atmospherejs.com/materialize/materialize
summary: 'Materialize (official): A modern responsive front-end framework based on Material Design',
version: '0.100.0',
version: '0.100.1',
git: 'https://github.com/Dogfalo/materialize.git'
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Builds Materialize distribution packages",
"author": "Alvin Wang, Alan Chang",
"homepage": "http://materializecss.com/",
"version": "0.100.0",
"version": "0.100.1",
"main": "dist/js/materialize.js",
"style": "dist/css/materialize.css",
"sass": "sass/materialize.scss",
Expand Down
Binary file modified templates/parallax-template.zip
Binary file not shown.
Binary file modified templates/starter-template.zip
Binary file not shown.

1 comment on commit 72f2e94

@CodingWeb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good evening,Since version 1.0.1 the mixins have disappeared from the site here is the link that led to the mixins => http://materializecss.com/sass.html#mixins

Please sign in to comment.