Skip to content

Commit

Permalink
Compiled dist files for plato and main styles
Browse files Browse the repository at this point in the history
  • Loading branch information
JonHMChan committed Jul 21, 2016
1 parent b911fb0 commit cb6eaf5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 12 deletions.
24 changes: 15 additions & 9 deletions dist/plato.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ var Plato = function () {
heading: "Helvetica"
},
size: {
base: "1em"
unit: "em",
base: 1.0
},
lineHeight: {
base: 1.5,
Expand All @@ -49,10 +50,15 @@ var Plato = function () {
value: function base() {
var tree = {
"html": {
"box-sizing": "border-box",
"margin": 0,
"padding": 0,
"height": "100%",
"font-family": this.typography.font.base,
"background": this.colors.background.primary,
"body": {
"font-family": this.typography.font.base,
"background": this.colors.background.primary,
"margin": 0,
"padding": 0,
"height": "100%",
".row": { _mixins: this.row() },
".col1": { _mixins: this.col(1) },
".col2": { _mixins: this.col(2) },
Expand Down Expand Up @@ -135,7 +141,7 @@ var Plato = function () {
}, {
key: "wrapper",
value: function wrapper() {
var width = arguments.length <= 0 || arguments[0] === undefined ? this.layout.wrappers : arguments[0];
var width = arguments.length <= 0 || arguments[0] === undefined ? this.layout.wrappers.default : arguments[0];

return {
"max-width": width,
Expand Down Expand Up @@ -173,10 +179,10 @@ var Plato = function () {
"box-sizing": "border-box",
"$(window).resize": {
"margin-left": function marginLeft() {
return window.innerWidth >= _this.layout.wrappers.mobile ? null : _this.layout.grid.fixedGutter;
return window.innerWidth >= _this.layout.wrappers.mobile ? "auto" : _this.layout.grid.fixedGutter;
},
"margin-right": function marginRight() {
return window.innerWidth >= _this.layout.wrappers.mobile ? null : _this.layout.grid.fixedGutter;
return window.innerWidth >= _this.layout.wrappers.mobile ? "auto" : _this.layout.grid.fixedGutter;
}
}
});
Expand All @@ -190,10 +196,10 @@ var Plato = function () {
"box-sizing": "border-box",
"$(window).resize": {
"margin-left": function marginLeft() {
return window.innerWidth >= _this2.layout.wrappers.mobile ? null : _this2.layout.grid.fixedGutter;
return window.innerWidth >= _this2.layout.wrappers.mobile ? "auto" : _this2.layout.grid.fixedGutter;
},
"margin-right": function marginRight() {
return window.innerWidth >= _this2.layout.wrappers.mobile ? null : _this2.layout.grid.fixedGutter;
return window.innerWidth >= _this2.layout.wrappers.mobile ? "auto" : _this2.layout.grid.fixedGutter;
},
"display": function display() {
return window.innerWidth >= _this2.layout.wrappers.mobile ? "table" : "block";
Expand Down
7 changes: 4 additions & 3 deletions dist/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,11 @@ var d = new Descartes({
}
},
".table-row": {
"_listeners": [[window, 'resize']],
"_mixins": [p.tableRow(), wrapper],
"min-height": function minHeight() {
return window.innerHeight;
"$(window).resize": {
"min-height": function minHeight() {
return window.innerHeight;
}
},
".table-col5": {
"_mixins": p.tableCol(5),
Expand Down

0 comments on commit cb6eaf5

Please sign in to comment.