Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

Commit

Permalink
Update and add components
Browse files Browse the repository at this point in the history
  • Loading branch information
kchitalia committed Jan 19, 2016
1 parent 4c7a1b6 commit 75c4f7d
Show file tree
Hide file tree
Showing 12 changed files with 1,345 additions and 6 deletions.
7 changes: 6 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@
"underscore": "latest",
"backbone": "latest",
"mobilesdk-shared": "forcedotcom/SalesforceMobileSDK-Shared#unstable",
"ratchet": "twbs/ratchet#>=2.0.2"
"ratchet": "twbs/ratchet#>=2.0.2",
"paper-elements": "PolymerElements/paper-elements#>=1.0.0",
"layout": "Polymer/layout"
},
"devDependencies": {
"mocha": "~1.18.2",
"should": "~3.3.1",
"iron-icons": "PolymerElements/iron-icons#>=0.8.0"
},
"resolutions": {
"polymer": "^1.2.1"
}
}
53 changes: 53 additions & 0 deletions elements/css/responsive.shim.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
polyfill-next-selector {
content: ':host /deep/ .ui-responsive';
}

::content .ui-responsive,
::content>* /deep/ .ui-responsive,
:host /deep/ .ui-responsive {
overflow: hidden;
}

polyfill-next-selector {
content: ':host /deep/ .ui-responsive .ui-block:first';
}

::content .ui-responsive .ui-block:first,
::content>* /deep/ .ui-responsive .ui-block:first,
:host /deep/ .ui-responsive .ui-block:first {
clear: left;
}

polyfill-next-selector {
content: ':host /deep/ .ui-block';
}

::content .ui-block,
::content>* /deep/ .ui-block,
:host /deep/ .ui-block {
width: 50%;
margin: 0;
padding: 0;
border: 0;
float: left;
min-height: 1px;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
-ms-box-sizing: border-box;
box-sizing: border-box;
}

/* preset breakpoint to switch to stacked grid styles below 35em (560px) */

@media all and (max-width: 35em) {
polyfill-next-selector {
content: ':host /deep/ .ui-responsive .ui-block';
}

::content .ui-responsive .ui-block,
::content>* /deep/ .ui-responsive .ui-block,
:host /deep/ .ui-responsive .ui-block {
width: 100%;
float: none;
}
}
Loading

0 comments on commit 75c4f7d

Please sign in to comment.