Permalink
Browse files

Fixes grid gutter size calculation problem.

  • Loading branch information...
Pedro Correia
Pedro Correia committed May 14, 2014
1 parent 2eed34e commit 3a32937569adae67ea034052a92e7f6712c5e84a
View
@@ -260,8 +260,8 @@
margin-left: -1.75em;
}
.column-group.large-gutters > [class*=large-], .column-group.large-gutters > [class*=all-] {
padding-left: 0.4375em;
margin-bottom: 0.4375em;
padding-left: 1.75em;
margin-bottom: 1.75em;
}
.column-group.large-horizontal-gutters {
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -478,8 +478,8 @@ html.no-flexboxlegacy [class~=all-100] {
html.no-flexbox .column-group.xlarge-gutters > [class*=xlarge-], html.no-flexbox .column-group.xlarge-gutters > [class*=all-],
html.no-flexboxlegacy .column-group.xlarge-gutters > [class*=xlarge-],
html.no-flexboxlegacy .column-group.xlarge-gutters > [class*=all-] {
padding-left: 0.5em;
margin-bottom: 0.5em;
padding-left: 2em;
margin-bottom: 2em;
}
html.no-flexbox .column-group.xlarge-horizontal-gutters,
html.no-flexboxlegacy .column-group.xlarge-horizontal-gutters {
@@ -1347,8 +1347,8 @@ html.no-flexboxlegacy [class~=all-100] {
html.no-flexbox .column-group.large-gutters > [class*=large-], html.no-flexbox .column-group.large-gutters > [class*=all-],
html.no-flexboxlegacy .column-group.large-gutters > [class*=large-],
html.no-flexboxlegacy .column-group.large-gutters > [class*=all-] {
padding-left: 0.4375em;
margin-bottom: 0.4375em;
padding-left: 1.75em;
margin-bottom: 1.75em;
}
html.no-flexbox .column-group.large-horizontal-gutters,
html.no-flexboxlegacy .column-group.large-horizontal-gutters {
@@ -2216,8 +2216,8 @@ html.no-flexboxlegacy [class~=all-100] {
html.no-flexbox .column-group.medium-gutters > [class*=medium-], html.no-flexbox .column-group.medium-gutters > [class*=all-],
html.no-flexboxlegacy .column-group.medium-gutters > [class*=medium-],
html.no-flexboxlegacy .column-group.medium-gutters > [class*=all-] {
padding-left: 0.375em;
margin-bottom: 0.375em;
padding-left: 1.5em;
margin-bottom: 1.5em;
}
html.no-flexbox .column-group.medium-horizontal-gutters,
html.no-flexboxlegacy .column-group.medium-horizontal-gutters {
@@ -3085,8 +3085,8 @@ html.no-flexboxlegacy [class~=all-100] {
html.no-flexbox .column-group.small-gutters > [class*=small-], html.no-flexbox .column-group.small-gutters > [class*=all-],
html.no-flexboxlegacy .column-group.small-gutters > [class*=small-],
html.no-flexboxlegacy .column-group.small-gutters > [class*=all-] {
padding-left: 0.3125em;
margin-bottom: 0.3125em;
padding-left: 1.25em;
margin-bottom: 1.25em;
}
html.no-flexbox .column-group.small-horizontal-gutters,
html.no-flexboxlegacy .column-group.small-horizontal-gutters {
@@ -3954,8 +3954,8 @@ html.no-flexboxlegacy [class~=all-100] {
html.no-flexbox .column-group.tiny-gutters > [class*=tiny-], html.no-flexbox .column-group.tiny-gutters > [class*=all-],
html.no-flexboxlegacy .column-group.tiny-gutters > [class*=tiny-],
html.no-flexboxlegacy .column-group.tiny-gutters > [class*=all-] {
padding-left: 0.25em;
margin-bottom: 0.25em;
padding-left: 1em;
margin-bottom: 1em;
}
html.no-flexbox .column-group.tiny-horizontal-gutters,
html.no-flexboxlegacy .column-group.tiny-horizontal-gutters {

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1448,8 +1448,8 @@ th {
margin-left: -2em;
}
.column-group.xlarge-gutters > [class*=xlarge-], .column-group.xlarge-gutters > [class*=all-] {
padding-left: 0.5em;
margin-bottom: 0.5em;
padding-left: 2em;
margin-bottom: 2em;
}
.column-group.xlarge-horizontal-gutters {
@@ -2267,8 +2267,8 @@ th {
margin-left: -1.75em;
}
.column-group.large-gutters > [class*=large-], .column-group.large-gutters > [class*=all-] {
padding-left: 0.4375em;
margin-bottom: 0.4375em;
padding-left: 1.75em;
margin-bottom: 1.75em;
}
.column-group.large-horizontal-gutters {
@@ -3086,8 +3086,8 @@ th {
margin-left: -1.5em;
}
.column-group.medium-gutters > [class*=medium-], .column-group.medium-gutters > [class*=all-] {
padding-left: 0.375em;
margin-bottom: 0.375em;
padding-left: 1.5em;
margin-bottom: 1.5em;
}
.column-group.medium-horizontal-gutters {
@@ -3905,8 +3905,8 @@ th {
margin-left: -1.25em;
}
.column-group.small-gutters > [class*=small-], .column-group.small-gutters > [class*=all-] {
padding-left: 0.3125em;
margin-bottom: 0.3125em;
padding-left: 1.25em;
margin-bottom: 1.25em;
}
.column-group.small-horizontal-gutters {
@@ -4724,8 +4724,8 @@ th {
margin-left: -1em;
}
.column-group.tiny-gutters > [class*=tiny-], .column-group.tiny-gutters > [class*=all-] {
padding-left: 0.25em;
margin-bottom: 0.25em;
padding-left: 1em;
margin-bottom: 1em;
}
.column-group.tiny-horizontal-gutters {
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -11,7 +11,25 @@ Ink.createModule('Ink.Autoload', 1, ['Ink.Dom.Selector_1', 'Ink.Dom.Loaded_1', '
* @static
*/
var el = document.createElement('div');
// See if a selector is valid.
function validSelector(sel) {
try {
Selector.select(sel, el);
} catch(e) {
Ink.error(e);
return false;
}
return true;
}
var Autoload = {
/**
* Matches module names to default selectors.
*
* @property selectors {Object}
* @public
**/
selectors: {
/* Match module names to element classes (or more complex selectors)
* which get the UI modules instantiated automatically. */
@@ -76,6 +94,29 @@ Ink.createModule('Ink.Autoload', 1, ['Ink.Dom.Selector_1', 'Ink.Dom.Loaded_1', '
});
}
}
},
/**
* Add a new entry to be autoloaded.
* @method add
* @param moduleName {String}
* @param selector {String}
*/
add: function (moduleName, selector) {
if (!validSelector(selector)) { return false; }
if (Autoload.selectors[moduleName]) {
Autoload.selectors[moduleName] += ', ' + selector;
} else {
Autoload.selectors[moduleName] = selector;
}
},
/**
* Removes a module from autoload, making it not be automatically loaded.
* @method remove
* @param moduleName {String}
**/
remove: function (moduleName) {
delete Autoload.selectors[moduleName];
}
};
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 3a32937

Please sign in to comment.