This repository was archived by the owner on Mar 13, 2018. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "directory": "components"
3+ }
Original file line number Diff line number Diff line change 2929 background : # 03a9f4 ;
3030 color : white;
3131 }
32- paper- tabs {
32+ # tabs {
3333 width : 100% ;
34+ margin : 0 ;
3435 -webkit-user-select : none;
3536 -moz-user-select : none;
3637 -ms-user-select : none;
4142 margin : 50px auto;
4243 }
4344 @media (min-width : 481px ) {
44- paper- tabs {
45+ # tabs {
4546 width : 200px ;
4647 }
4748 .container {
5455< body unresolved touch-action ="auto ">
5556 < core-header-panel >
5657 < core-toolbar >
57- < paper-tabs selected ="all " valueattr ="name " self-end >
58+ < paper-tabs id =" tabs " selected ="all " valueattr ="name " self-end >
5859 < paper-tab name ="all "> ALL</ paper-tab >
5960 < paper-tab name ="favorites "> FAVORITES</ paper-tab >
6061 </ paper-tabs >
Original file line number Diff line number Diff line change 4545 < core-icon-button
4646 id ="favicon "
4747 icon ="favorite "
48- on-tap ="{{favoriteTapped}} ">
49- </ core-icon-button >
48+ on-tap ="{{favoriteTapped}} "> </ core-icon-button >
5049 < content > </ content >
5150 </ template >
5251 < script >
Original file line number Diff line number Diff line change 1313 background-color : # E5E5E5 ;
1414 font-family : 'RobotoDraft' , sans-serif;
1515 }
16- core-header-panel {
17- height : 100% ;
18- overflow : auto;
19- -webkit-overflow-scrolling : touch;
20- }
21- core-toolbar {
22- background : # 03a9f4 ;
23- color : white;
24- }
25- paper-tabs {
26- width : 100% ;
27- -webkit-user-select : none;
28- -moz-user-select : none;
29- -ms-user-select : none;
30- user-select : none;
31- }
3216 .container {
3317 width : 80% ;
3418 margin : 50px auto;
3519 }
3620 @media (min-width : 481px ) {
37- paper- tabs {
21+ # tabs {
3822 width : 200px ;
3923 }
4024 .container {
Original file line number Diff line number Diff line change 2828 background : # 03a9f4 ;
2929 color : white;
3030 }
31- paper- tabs {
31+ # tabs {
3232 width : 100% ;
33+ margin : 0 ;
3334 -webkit-user-select : none;
3435 -moz-user-select : none;
3536 -ms-user-select : none;
4041 margin : 50px auto;
4142 }
4243 @media (min-width : 481px ) {
43- paper- tabs {
44+ # tabs {
4445 width : 200px ;
4546 }
4647 .container {
5354< body unresolved touch-action ="auto ">
5455 < core-header-panel >
5556 < core-toolbar >
56- < paper-tabs selected ="all " valueattr ="name " self-end >
57+ < paper-tabs id =" tabs " selected ="all " valueattr ="name " self-end >
5758 < paper-tab name ="all "> ALL</ paper-tab >
5859 < paper-tab name ="favorites "> FAVORITES</ paper-tab >
5960 </ paper-tabs >
6566
6667 < script >
6768 var tabs = document . querySelector ( 'paper-tabs' ) ;
68- tabs . addEventListener ( 'core-select' , function ( ) {
69+ tabs . addEventListener ( 'core-select' , function ( e ) {
70+ console . log ( "tab change: " + e . target . getAttribute ( 'name' ) + " selected = " + e . detail . isSelected ) ;
6971 console . log ( "Selected: " + tabs . selected ) ;
7072 } ) ;
7173 </ script >
Original file line number Diff line number Diff line change 2929 background : # 03a9f4 ;
3030 color : white;
3131 }
32- paper- tabs {
32+ # tabs {
3333 width : 100% ;
34+ margin : 0 ;
3435 -webkit-user-select : none;
3536 -moz-user-select : none;
3637 -ms-user-select : none;
4142 margin : 50px auto;
4243 }
4344 @media (min-width : 481px ) {
44- paper- tabs {
45+ # tabs {
4546 width : 200px ;
4647 }
4748 .container {
5455< body unresolved touch-action ="auto ">
5556 < core-header-panel >
5657 < core-toolbar >
57- < paper-tabs selected ="all " valueattr ="name " self-end >
58+ < paper-tabs id =" tabs " selected ="all " valueattr ="name " self-end >
5859 < paper-tab name ="all "> ALL</ paper-tab >
5960 < paper-tab name ="favorites "> FAVORITES</ paper-tab >
6061 </ paper-tabs >
6465 < post-card >
6566 < img src ="../images/avatar-07.svg " width ="70 " height ="70 ">
6667 < h2 > Another Developer</ h2 >
67- < h3 > I'm composing with shadow DOM!</ h3 >
68+ < p > I'm composing with shadow DOM!</ p >
6869 </ post-card >
6970 </ div >
7071 </ core-header-panel >
Original file line number Diff line number Diff line change 2929 background : # 03a9f4 ;
3030 color : white;
3131 }
32- paper- tabs {
32+ # tabs {
3333 width : 100% ;
34+ margin : 0 ;
3435 -webkit-user-select : none;
3536 -moz-user-select : none;
3637 -ms-user-select : none;
4142 margin : 50px auto;
4243 }
4344 @media (min-width : 481px ) {
44- paper- tabs {
45+ # tabs {
4546 width : 200px ;
4647 }
4748 .container {
5455< body unresolved touch-action ="auto ">
5556 < core-header-panel >
5657 < core-toolbar >
57- < paper-tabs selected ="all " valueattr ="name " self-end >
58+ < paper-tabs id =" tabs " selected ="all " valueattr ="name " self-end >
5859 < paper-tab name ="all "> ALL</ paper-tab >
5960 < paper-tab name ="favorites "> FAVORITES</ paper-tab >
6061 </ paper-tabs >
You can’t perform that action at this time.
0 commit comments