Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.61 KB | None | 0 0
  1. <link rel="import" href="../paper-tabs/paper-tabs.html">
  2. <link rel="import" href="../paper-tabs/paper-tab.html">
  3. <link rel="import" href="../core-animated-pages/core-animated-pages.html">
  4. <link rel="import" href="../core-animated-pages/transitions/hero-transition.html">
  5. <link rel="import" href="../core-animated-pages/transitions/cross-fade.html">
  6. <link rel="import" href="../core-animated-pages/transitions/slide-down.html">
  7. <link rel="import" href="../core-animated-pages/transitions/slide-up.html">
  8. <link rel="import" href="../core-animated-pages/transitions/tile-cascade.html">
  9. <link rel="import" href="../paper-button/paper-button.html">
  10. <link rel="import" href="../paper-toast/paper-toast.html">
  11. <link rel="import" href="../core-icon-button/core-icon-button.html">
  12. <link rel="import" href="../core-toolbar/core-toolbar.html">
  13. <link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
  14. <link rel="import" href="../core-icons/core-icons.html">
  15. <link rel="import" href="../core-icons/av-icons.html">
  16. <link rel="import" href="../paper-fab/paper-fab.html">
  17. <link rel="import" href="../core-tooltip/core-tooltip.html">
  18. <link rel="import" href="../paper-checkbox/paper-checkbox.html">
  19. <link rel="import" href="../paper-toggle-button/paper-toggle-button.html">
  20.  
  21. <polymer-element name="my-element">
  22.  
  23. <template>
  24. <style>
  25. :host {
  26. box-sizing: border-box;
  27. position: absolute;
  28. top: 0px;
  29. left: 0px;
  30. width: 100%;
  31. height: 100%;
  32. font-family: roboto;
  33. font-size: 20px;
  34. background-color: rgb(0, 0, 0);
  35. }
  36. paper-tab::shadow #ink {
  37. color: rgb(0, 0, 255);
  38. }
  39. #paper_tabs {
  40. font-size: 25px;
  41. color: rgb(255, 255, 255);
  42. box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 2px;
  43. position: relative;
  44. width: 100%;
  45. background-color: rgb(21, 21, 21);
  46. }
  47. paper-tabs::shadow #selectionBar {
  48. background-color: rgb(0, 0, 255);
  49. }
  50. #core_card1 {
  51. border-radius: 2px;
  52. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  53. opacity: 1;
  54. background-color: rgb(46, 46, 46);
  55. }
  56. #core_card2 {
  57. border-radius: 2px;
  58. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  59. left: 20px;
  60. margin: 20px;
  61. background-color: rgb(21, 21, 21);
  62. }
  63. #h1 {
  64. color: rgb(255, 255, 255);
  65. }
  66. #core_animated_pages {
  67. overflow: hidden;
  68. width: 100%;
  69. height: 100%;
  70. position: absolute;
  71. left: -20px;
  72. top: 180px;
  73. background-color: rgb(10, 10, 10);
  74. }
  75. #core_card3 {
  76. width: 97%;
  77. height: 300px;
  78. border-radius: 2px;
  79. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  80. left: 20px;
  81. top: 20px;
  82. position: absolute;
  83. background-color: rgb(36, 36, 36);
  84. }
  85. #core_card4 {
  86. position: absolute;
  87. width: 97%;
  88. height: 400px;
  89. border-radius: 2px;
  90. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  91. left: 20px;
  92. top: 20px;
  93. background-color: rgb(59, 59, 59);
  94. }
  95. #core_card5 {
  96. position: absolute;
  97. width: 350px;
  98. height: 300px;
  99. border-radius: 2px;
  100. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  101. left: 20px;
  102. top: 20px;
  103. background-color: rgb(96, 96, 96);
  104. }
  105. #paper_button {
  106. margin: 50px;
  107. padding: 25px;
  108. font-size: 15px;
  109. background-color: rgb(143, 143, 143);
  110. }
  111. paper-toast {
  112. bottom: 15%;
  113. left: 35%;
  114. width: 25%;
  115. font-size: 58px;
  116. background-color: rgb(0, 0, 0);
  117. }
  118. #core_card7 {
  119. border-radius: 2px;
  120. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  121. background-color: rgb(25, 25, 25);
  122. }
  123. #core_card9 {
  124. border-radius: 2px;
  125. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  126. margin: 20px;
  127. padding: 20px;
  128. background-color: rgb(147, 147, 147);
  129. }
  130. #paper_button1 {
  131. margin: 0px;
  132. background-color: rgb(126, 126, 126);
  133. }
  134. #div {
  135. margin: 20px;
  136. position: relative;
  137. left: 5px;
  138. }
  139. #paper_fab1 {
  140. background-color: rgb(134, 0, 255);
  141. }
  142. #paper_fab2 {
  143. left: 20px;
  144. position: relative;
  145. background-color: rgb(42, 0, 255);
  146. }
  147. #paper_fab4 {
  148. color: rgb(0, 0, 0);
  149. left: 60px;
  150. background-color: rgb(255, 254, 0);
  151. }
  152. #paper_fab3 {
  153. position: relative;
  154. left: 40px;
  155. }
  156. #core_toolbar {
  157. color: rgb(241, 241, 241);
  158. fill: rgb(241, 241, 241);
  159. background-color: rgb(18, 18, 18);
  160. }
  161. #section3 {
  162. height: 5000px;
  163. background: linear-gradient(rgb(0, 0, 0), rgb(60, 60, 60));
  164. }
  165. #paper_toast {
  166. outline: none;
  167. z-index: 12;
  168. box-sizing: border-box;
  169. position: absolute;
  170. }
  171. #iframe {
  172. width: 100%;
  173. height: 100%;
  174. position: absolute;
  175. }
  176. #paper_toggle_button {
  177. margin: 40px;
  178. }
  179. #paper_radio_group {
  180. left: 1050px;
  181. top: 310px;
  182. }
  183. #core_card6 {
  184. width: 150px;
  185. height: 150px;
  186. border-radius: 2px;
  187. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  188. left: 73%;
  189. top: 20px;
  190. position: absolute;
  191. background-color: rgb(111, 111, 111);
  192. }
  193. #core_card8 {
  194. width: 90%;
  195. height: 80%;
  196. border-radius: 2px;
  197. box-shadow: rgba(0, 0, 0, 0.0980392) 0px 2px 4px, rgba(0, 0, 0, 0.0980392) 0px 0px 3px;
  198. position: relative;
  199. margin: 5px;
  200. background-color: rgb(136, 136, 136);
  201. }
  202. #paper_button2 {
  203. width: 100px;
  204. height: 100px;
  205. background-color: rgb(199, 199, 199);
  206. }
  207. #paper_toast1 {
  208. left: 40%;
  209. position: absolute;
  210. }
  211. </style>
  212. <core-card id="core_card" layout vertical>
  213. <core-card id="core_card1" horizontal layout center one flex>
  214. <core-card id="core_card2" layout vertical center center-justified one flex>
  215. <h1 id="h1" center-justified center horizontal layout one flex>
  216. <font face="roboto">X 1 </font>
  217. </h1>
  218. <paper-tabs selected="{{ selected }}" selectedindex="2" id="paper_tabs" horizontal center layout one flex>
  219. <paper-tab id="paper_tab" inline flex center-center horizontal layout>toast test</paper-tab>
  220. <paper-tab id="paper_tab1" inline flex center-center horizontal layout>layout idea</paper-tab>
  221. <paper-tab id="paper_tab2" inline flex center-center horizontal layout active>cool buttons</paper-tab>
  222. </paper-tabs>
  223. </core-card>
  224. </core-card>
  225. </core-card>
  226. <core-animated-pages transitions="slide-from-right" selected="{{ selected }}" lastselected="0" selectedindex="2" notap id="core_animated_pages" horizontal layout>
  227. <section id="section" layout horizontal center center-justified>
  228. <core-card id="core_card3" layout vertical>
  229. <center id="center">
  230. <paper-button raised id="paper_button" horizontal layout start center-justified one flex>Hold down the button</paper-button>
  231. </center>
  232. <paper-toast text="TEST" id="paper_toast" class="core-transition-bottom core-transition" touch-action="none" center-justified horizontal layout start></paper-toast>
  233. </core-card>
  234. </section>
  235. <core-scroll-header-panel headermargin="128" condenses headerheight="192" id="core_scroll_header_panel" one flex>
  236. <core-toolbar id="core_toolbar" class="tall">
  237. <core-icon-button icon="arrow-back" id="core_icon_button"></core-icon-button>
  238. <div id="div1" flex></div>
  239. <core-icon-button icon="search" id="core_icon_button1"></core-icon-button>
  240. <core-icon-button icon="more-vert" id="core_icon_button2"></core-icon-button>
  241. <div id="div2" class="bottom indent">X1 - version 1.2</div>
  242. </core-toolbar>
  243. <section id="section3" content></section>
  244. </core-scroll-header-panel>
  245. <section id="section1" active>
  246. <core-card id="core_card4" layout vertical>
  247. <core-card id="core_card5" layout vertical>
  248. <core-card id="core_card9" layout vertical one flex>
  249. <paper-button raised active="{{ $.paper_toast1.opened }}" focused="{{ $.paper_checkbox.checked }}" toggle id="paper_button1" one flex vertical layout center center-justified>Hold down this button! :3</paper-button>
  250. </core-card>
  251. <div id="div" layout horizontal center one flex>
  252. <paper-fab icon="check" id="paper_fab1"></paper-fab>
  253. <paper-fab icon="reply" id="paper_fab2"></paper-fab>
  254. <paper-fab icon="favorite" id="paper_fab3"></paper-fab>
  255. <paper-fab icon="add" id="paper_fab4"></paper-fab>
  256. </div>
  257. </core-card>
  258. <core-card id="core_card7" center start-justified vertical layout>
  259. <core-tooltip label="This button doesn't do anything yet." id="core_tooltip">
  260. </core-tooltip>
  261. </core-card>
  262. <core-card id="core_card6" center-justified vertical layout start>
  263. <core-card id="core_card8" center center-justified horizontal layout>
  264. <paper-button active="{{ $.paper_checkbox.checked }}" toggle id="paper_button2" vertical layout center-justified center>Button that toggles stuff</paper-button>
  265. </core-card>
  266. </core-card>
  267. <paper-checkbox label="click me" id="paper_checkbox" horizontal layout center center-justified></paper-checkbox>
  268. <paper-toggle-button checked="{{ $.paper_checkbox.checked }}" id="paper_toggle_button" horizontal layout end center-justified touch-action="pan-y"></paper-toggle-button>
  269. <paper-toast text="Well howdy there!! :3" duration="5000" opened="{{ $.paper_button.active }}" narrowmode id="paper_toast1" touch-action="none" class="core-transition-bottom core-transition fit-bottom" horizontal layout center center-justified></paper-toast>
  270. </core-card>
  271. </section>
  272. <section id="section2">
  273.  
  274. </section>
  275. <section id="section3">
  276.  
  277. </section>
  278. </core-animated-pages>
  279. </template>
  280.  
  281. <script>
  282.  
  283. Polymer({
  284. selected: 2
  285. });
  286.  
  287. </script>
  288.  
  289. </polymer-element>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement