Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit a295c0d

Browse files
committed
remove g-app and animations.
1 parent 3756fb8 commit a295c0d

3 files changed

Lines changed: 27 additions & 4 deletions

File tree

pica/components/css/pi-app.css

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,30 @@
33
* Use of this source code is governed by a BSD-style
44
* license that can be found in the LICENSE file.
55
*/
6-
#panels, #contentPanels {
6+
@host {
7+
:scope {
8+
/* fit to container */
9+
position: absolute;
10+
top: 0;
11+
left: 0;
12+
width: 100%;
13+
height: 100%;
14+
15+
/* layout content using flexbox */
16+
display: -webkit-box;
17+
display: -webkit-flex;
18+
display: flex;
19+
-webkit-box-orient: vertical;
20+
-webkit-flex-flow: column;
21+
flex-direction: column;
22+
23+
/* convenient defaults */
24+
font-family: 'Helvetica Neue', Helvetica, Arial, 'open sans', sans-serif;
25+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
26+
}
27+
}
28+
29+
#panels, #contentPanels, #Topics {
730
-webkit-box-flex: 1;
831
-webkit-flex: 1;
932
flex: 1;

pica/components/pi-app.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,17 @@
55
* license that can be found in the LICENSE file.
66
*/
77
-->
8-
<link rel="import" href="../../../toolkit-ui/elements/g-app.html"/>
98
<link rel="import" href="../../../toolkit-ui/elements/g-panels.html"/>
109
<link rel="import" href="../../../toolkit-ui/elements/g-menu-item.html"/>
1110
<link rel="import" href="../../../toolkit-ui/elements/g-ribbon.html"/>
12-
<link rel="import" href="../../../polymer-elements/polymer-animation/web-animations.html">
1311
<link rel="import" href="pi-toolbar.html"/>
1412
<link rel="import" href="pi-toolbar-buttons.html"/>
1513
<link rel="import" href="pi-feed-viewer.html"/>
1614
<link rel="import" href="pi-explore.html"/>
1715
<link rel="import" href="pi-home.html"/>
1816
<link rel="import" href="pi-accounts.html"/>
1917
<link rel="import" href="pi-accounts-model.html"/>
20-
<polymer-element name="pi-app" extends="g-app" on-keyup="keyupHandler">
18+
<polymer-element name="pi-app" on-keyup="keyupHandler">
2119
<template>
2220
<link rel="stylesheet" href="css/pi-app.css" />
2321
<g-panels id="panels" selected="{{selectedPanel}}" transition="flow" autoselect on-g-panels-select="panelSelectHandler">

pica/components/pi-items-view.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
this.fire('select', {item: this.selected});
9696
},
9797
animateCascade: function() {
98+
/*
9899
var container = this.$.container;
99100
var cards = container.querySelectorAll('.item');
100101
@@ -127,6 +128,7 @@
127128
{duration: 0.5, startDelay: 0.03 * d, fillMode: "backwards"}));
128129
}
129130
document.timeline.play(parGroup);
131+
*/
130132
}
131133
});
132134
})();

0 commit comments

Comments
 (0)