polymer-gold-rails 1.0.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (202) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +36 -0
  3. data/Rakefile +1 -0
  4. data/app/assets/components/gold-cc-cvc-input/README.md +24 -0
  5. data/app/assets/components/gold-cc-cvc-input/bower.json +39 -0
  6. data/app/assets/components/gold-cc-cvc-input/cvc_hint.png +0 -0
  7. data/app/assets/components/gold-cc-cvc-input/cvc_hint_amex.png +0 -0
  8. data/app/assets/components/gold-cc-cvc-input/demo/index.html +54 -0
  9. data/app/assets/components/gold-cc-cvc-input/gold-cc-cvc-input.html +195 -0
  10. data/app/assets/components/gold-cc-cvc-input/hero.svg +36 -0
  11. data/app/assets/components/gold-cc-cvc-input/index.html +26 -0
  12. data/app/assets/components/gold-cc-cvc-input/test/basic.html +125 -0
  13. data/app/assets/components/gold-cc-cvc-input/test/index.html +25 -0
  14. data/app/assets/components/gold-cc-expiration-input/README.md +10 -0
  15. data/app/assets/components/gold-cc-expiration-input/bower.json +40 -0
  16. data/app/assets/components/gold-cc-expiration-input/date-input.html +157 -0
  17. data/app/assets/components/gold-cc-expiration-input/date-validator.html +38 -0
  18. data/app/assets/components/gold-cc-expiration-input/demo/index.html +53 -0
  19. data/app/assets/components/gold-cc-expiration-input/gold-cc-expiration-input.html +131 -0
  20. data/app/assets/components/gold-cc-expiration-input/hero.svg +58 -0
  21. data/app/assets/components/gold-cc-expiration-input/index.html +28 -0
  22. data/app/assets/components/gold-cc-expiration-input/test/basic.html +126 -0
  23. data/app/assets/components/gold-cc-expiration-input/test/index.html +25 -0
  24. data/app/assets/components/gold-cc-input/README.md +9 -0
  25. data/app/assets/components/gold-cc-input/bower.json +39 -0
  26. data/app/assets/components/gold-cc-input/cc-validator.js +192 -0
  27. data/app/assets/components/gold-cc-input/demo/index.html +48 -0
  28. data/app/assets/components/gold-cc-input/gold-cc-input.html +215 -0
  29. data/app/assets/components/gold-cc-input/hero.svg +52 -0
  30. data/app/assets/components/gold-cc-input/images/amex.png +0 -0
  31. data/app/assets/components/gold-cc-input/images/diners_club.png +0 -0
  32. data/app/assets/components/gold-cc-input/images/discover.png +0 -0
  33. data/app/assets/components/gold-cc-input/images/jcb.png +0 -0
  34. data/app/assets/components/gold-cc-input/images/mastercard.png +0 -0
  35. data/app/assets/components/gold-cc-input/images/visa.png +0 -0
  36. data/app/assets/components/gold-cc-input/index.html +28 -0
  37. data/app/assets/components/gold-cc-input/test/basic.html +136 -0
  38. data/app/assets/components/gold-cc-input/test/index.html +25 -0
  39. data/app/assets/components/gold-elements/README.md +12 -0
  40. data/app/assets/components/gold-elements/bower.json +42 -0
  41. data/app/assets/components/gold-elements/demo/complex-form.html +127 -0
  42. data/app/assets/components/gold-elements/demo/index.html +94 -0
  43. data/app/assets/components/gold-elements/demo/item-card.html +59 -0
  44. data/app/assets/components/gold-elements/demo/simple-form.css +55 -0
  45. data/app/assets/components/gold-elements/demo/simple-form.html +93 -0
  46. data/app/assets/components/gold-elements/screenshot.png +0 -0
  47. data/app/assets/components/gold-email-input/README.md +8 -0
  48. data/app/assets/components/gold-email-input/bower.json +40 -0
  49. data/app/assets/components/gold-email-input/demo/index.html +46 -0
  50. data/app/assets/components/gold-email-input/email-validator.html +31 -0
  51. data/app/assets/components/gold-email-input/gold-email-input.html +108 -0
  52. data/app/assets/components/gold-email-input/hero.svg +59 -0
  53. data/app/assets/components/gold-email-input/index.html +28 -0
  54. data/app/assets/components/gold-email-input/test/basic.html +97 -0
  55. data/app/assets/components/gold-email-input/test/index.html +25 -0
  56. data/app/assets/components/gold-phone-input/README.md +13 -0
  57. data/app/assets/components/gold-phone-input/bower.json +39 -0
  58. data/app/assets/components/gold-phone-input/demo/index.html +53 -0
  59. data/app/assets/components/gold-phone-input/gold-phone-input.html +197 -0
  60. data/app/assets/components/gold-phone-input/hero.svg +63 -0
  61. data/app/assets/components/gold-phone-input/index.html +28 -0
  62. data/app/assets/components/gold-phone-input/test/basic.html +117 -0
  63. data/app/assets/components/gold-phone-input/test/index.html +25 -0
  64. data/app/assets/components/gold-zip-input/README.md +8 -0
  65. data/app/assets/components/gold-zip-input/bower.json +40 -0
  66. data/app/assets/components/gold-zip-input/demo/index.html +54 -0
  67. data/app/assets/components/gold-zip-input/gold-zip-input.html +113 -0
  68. data/app/assets/components/gold-zip-input/hero.svg +43 -0
  69. data/app/assets/components/gold-zip-input/index.html +28 -0
  70. data/app/assets/components/gold-zip-input/test/basic.html +116 -0
  71. data/app/assets/components/gold-zip-input/test/index.html +25 -0
  72. data/app/assets/components/gold-zip-input/zip-validator.html +32 -0
  73. data/app/assets/components/iron-autogrow-textarea/README.md +24 -0
  74. data/app/assets/components/iron-autogrow-textarea/bower.json +37 -0
  75. data/app/assets/components/iron-autogrow-textarea/demo/index.html +81 -0
  76. data/app/assets/components/iron-autogrow-textarea/hero.svg +33 -0
  77. data/app/assets/components/iron-autogrow-textarea/index.html +30 -0
  78. data/app/assets/components/iron-autogrow-textarea/iron-autogrow-textarea.html +263 -0
  79. data/app/assets/components/iron-autogrow-textarea/test/basic.html +94 -0
  80. data/app/assets/components/iron-autogrow-textarea/test/index.html +25 -0
  81. data/app/assets/components/iron-flex-layout/README.md +4 -0
  82. data/app/assets/components/iron-flex-layout/bower.json +21 -0
  83. data/app/assets/components/iron-flex-layout/classes/iron-flex-layout.html +307 -0
  84. data/app/assets/components/iron-flex-layout/classes/iron-shadow-flex-layout.html +302 -0
  85. data/app/assets/components/iron-flex-layout/demo/index.html +40 -0
  86. data/app/assets/components/iron-flex-layout/demo/x-app.html +106 -0
  87. data/app/assets/components/iron-flex-layout/iron-flex-layout.html +313 -0
  88. data/app/assets/components/iron-form-element-behavior/README.md +2 -0
  89. data/app/assets/components/iron-form-element-behavior/bower.json +27 -0
  90. data/app/assets/components/iron-form-element-behavior/demo/index.html +53 -0
  91. data/app/assets/components/iron-form-element-behavior/demo/simple-element.html +27 -0
  92. data/app/assets/components/iron-form-element-behavior/demo/simple-form.html +42 -0
  93. data/app/assets/components/iron-form-element-behavior/index.html +30 -0
  94. data/app/assets/components/iron-form-element-behavior/iron-form-element-behavior.html +50 -0
  95. data/app/assets/components/iron-icon/README.md +56 -0
  96. data/app/assets/components/iron-icon/bower.json +29 -0
  97. data/app/assets/components/iron-icon/demo/index.html +28 -0
  98. data/app/assets/components/iron-icon/demo/location.png +0 -0
  99. data/app/assets/components/iron-icon/hero.svg +19 -0
  100. data/app/assets/components/iron-icon/index.html +26 -0
  101. data/app/assets/components/iron-icon/iron-icon.html +187 -0
  102. data/app/assets/components/iron-icon/test/index.html +31 -0
  103. data/app/assets/components/iron-icon/test/iron-icon.html +120 -0
  104. data/app/assets/components/iron-input/README.md +16 -0
  105. data/app/assets/components/iron-input/bower.json +36 -0
  106. data/app/assets/components/iron-input/demo/index.html +87 -0
  107. data/app/assets/components/iron-input/hero.svg +19 -0
  108. data/app/assets/components/iron-input/index.html +30 -0
  109. data/app/assets/components/iron-input/iron-input.html +235 -0
  110. data/app/assets/components/iron-input/test/index.html +24 -0
  111. data/app/assets/components/iron-input/test/iron-input.html +139 -0
  112. data/app/assets/components/iron-input/test/letters-only.html +30 -0
  113. data/app/assets/components/iron-meta/README.md +46 -0
  114. data/app/assets/components/iron-meta/bower.json +28 -0
  115. data/app/assets/components/iron-meta/demo/index.html +45 -0
  116. data/app/assets/components/iron-meta/hero.svg +33 -0
  117. data/app/assets/components/iron-meta/index.html +27 -0
  118. data/app/assets/components/iron-meta/iron-meta.html +352 -0
  119. data/app/assets/components/iron-meta/test/basic.html +48 -0
  120. data/app/assets/components/iron-meta/test/index.html +30 -0
  121. data/app/assets/components/iron-meta/test/iron-meta.html +186 -0
  122. data/app/assets/components/iron-validatable-behavior/README.md +3 -0
  123. data/app/assets/components/iron-validatable-behavior/bower.json +35 -0
  124. data/app/assets/components/iron-validatable-behavior/demo/cats-only.html +46 -0
  125. data/app/assets/components/iron-validatable-behavior/demo/index.html +71 -0
  126. data/app/assets/components/iron-validatable-behavior/demo/validatable-input.html +46 -0
  127. data/app/assets/components/iron-validatable-behavior/index.html +30 -0
  128. data/app/assets/components/iron-validatable-behavior/iron-validatable-behavior.html +101 -0
  129. data/app/assets/components/iron-validatable-behavior/test/index.html +35 -0
  130. data/app/assets/components/iron-validatable-behavior/test/iron-validatable-behavior.html +52 -0
  131. data/app/assets/components/iron-validatable-behavior/test/test-validatable.html +28 -0
  132. data/app/assets/components/iron-validator-behavior/README.md +4 -0
  133. data/app/assets/components/iron-validator-behavior/bower.json +34 -0
  134. data/app/assets/components/iron-validator-behavior/demo/cats-only.html +46 -0
  135. data/app/assets/components/iron-validator-behavior/demo/index.html +144 -0
  136. data/app/assets/components/iron-validator-behavior/index.html +30 -0
  137. data/app/assets/components/iron-validator-behavior/iron-validator-behavior.html +61 -0
  138. data/app/assets/components/iron-validator-behavior/test/index.html +34 -0
  139. data/app/assets/components/iron-validator-behavior/test/iron-validator-behavior.html +47 -0
  140. data/app/assets/components/iron-validator-behavior/test/simple-validator.html +26 -0
  141. data/app/assets/components/paper-input/README.md +5 -0
  142. data/app/assets/components/paper-input/all-imports.html +12 -0
  143. data/app/assets/components/paper-input/bower.json +44 -0
  144. data/app/assets/components/paper-input/demo/index.html +96 -0
  145. data/app/assets/components/paper-input/demo/ssn-input.html +94 -0
  146. data/app/assets/components/paper-input/demo/ssn-validator.html +31 -0
  147. data/app/assets/components/paper-input/hero.svg +19 -0
  148. data/app/assets/components/paper-input/index.html +28 -0
  149. data/app/assets/components/paper-input/paper-input-addon-behavior.html +47 -0
  150. data/app/assets/components/paper-input/paper-input-behavior.html +317 -0
  151. data/app/assets/components/paper-input/paper-input-char-counter.html +95 -0
  152. data/app/assets/components/paper-input/paper-input-container.html +495 -0
  153. data/app/assets/components/paper-input/paper-input-error.html +99 -0
  154. data/app/assets/components/paper-input/paper-input.html +126 -0
  155. data/app/assets/components/paper-input/paper-textarea.html +106 -0
  156. data/app/assets/components/paper-input/test/index.html +28 -0
  157. data/app/assets/components/paper-input/test/letters-only.html +30 -0
  158. data/app/assets/components/paper-input/test/paper-input-char-counter.html +112 -0
  159. data/app/assets/components/paper-input/test/paper-input-container.html +237 -0
  160. data/app/assets/components/paper-input/test/paper-input-error.html +60 -0
  161. data/app/assets/components/paper-input/test/paper-input.html +213 -0
  162. data/app/assets/components/paper-input/test/paper-textarea.html +169 -0
  163. data/app/assets/components/paper-styles/README.md +3 -0
  164. data/app/assets/components/paper-styles/bower.json +27 -0
  165. data/app/assets/components/paper-styles/classes/global.html +96 -0
  166. data/app/assets/components/paper-styles/classes/shadow-layout.html +302 -0
  167. data/app/assets/components/paper-styles/classes/shadow.html +39 -0
  168. data/app/assets/components/paper-styles/classes/typography.html +171 -0
  169. data/app/assets/components/paper-styles/color.html +333 -0
  170. data/app/assets/components/paper-styles/default-theme.html +39 -0
  171. data/app/assets/components/paper-styles/demo-pages.html +72 -0
  172. data/app/assets/components/paper-styles/demo.css +25 -0
  173. data/app/assets/components/paper-styles/paper-styles-classes.html +14 -0
  174. data/app/assets/components/paper-styles/paper-styles.html +17 -0
  175. data/app/assets/components/paper-styles/shadow.html +61 -0
  176. data/app/assets/components/paper-styles/typography.html +240 -0
  177. data/app/assets/components/polymer/LICENSE.txt +27 -0
  178. data/app/assets/components/polymer/bower.json +26 -0
  179. data/app/assets/components/polymer/build.log +27 -0
  180. data/app/assets/components/polymer/polymer-micro.html +523 -0
  181. data/app/assets/components/polymer/polymer-mini.html +1368 -0
  182. data/app/assets/components/polymer/polymer.html +3768 -0
  183. data/app/assets/components/webcomponentsjs/CustomElements.js +956 -0
  184. data/app/assets/components/webcomponentsjs/CustomElements.min.js +11 -0
  185. data/app/assets/components/webcomponentsjs/HTMLImports.js +1078 -0
  186. data/app/assets/components/webcomponentsjs/HTMLImports.min.js +11 -0
  187. data/app/assets/components/webcomponentsjs/MutationObserver.js +344 -0
  188. data/app/assets/components/webcomponentsjs/MutationObserver.min.js +11 -0
  189. data/app/assets/components/webcomponentsjs/README.md +125 -0
  190. data/app/assets/components/webcomponentsjs/ShadowDOM.js +4414 -0
  191. data/app/assets/components/webcomponentsjs/ShadowDOM.min.js +15 -0
  192. data/app/assets/components/webcomponentsjs/bower.json +14 -0
  193. data/app/assets/components/webcomponentsjs/build.log +33 -0
  194. data/app/assets/components/webcomponentsjs/package.json +31 -0
  195. data/app/assets/components/webcomponentsjs/webcomponents-lite.js +2300 -0
  196. data/app/assets/components/webcomponentsjs/webcomponents-lite.min.js +13 -0
  197. data/app/assets/components/webcomponentsjs/webcomponents.js +7112 -0
  198. data/app/assets/components/webcomponentsjs/webcomponents.min.js +15 -0
  199. data/lib/polymer-gold-rails.rb +2 -0
  200. data/lib/polymer-gold-rails/enigne.rb +4 -0
  201. data/lib/polymer-gold-rails/version.rb +3 -0
  202. metadata +312 -0
@@ -0,0 +1,169 @@
1
+ <!doctype html>
2
+ <!--
3
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ -->
10
+ <html>
11
+ <head>
12
+
13
+ <title>paper-textarea tests</title>
14
+
15
+ <meta charset="utf-8">
16
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
17
+ <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
18
+
19
+ <script src="../../webcomponentsjs/webcomponents-lite.js"></script>
20
+
21
+ <script src="../../web-component-tester/browser.js"></script>
22
+ <script src="../../test-fixture/test-fixture-mocha.js"></script>
23
+
24
+ <script src="../../iron-test-helpers/test-helpers.js"></script>
25
+
26
+ <link rel="import" href="../../test-fixture/test-fixture.html">
27
+ <link rel="import" href="../paper-textarea.html">
28
+
29
+ </head>
30
+ <body>
31
+
32
+ <test-fixture id="basic">
33
+ <template>
34
+ <paper-textarea></paper-textarea>
35
+ </template>
36
+ </test-fixture>
37
+
38
+ <test-fixture id="label">
39
+ <template>
40
+ <paper-textarea label="foo"></paper-textarea>
41
+ </template>
42
+ </test-fixture>
43
+
44
+ <test-fixture id="char-counter">
45
+ <template>
46
+ <paper-textarea char-counter></paper-textarea>
47
+ </template>
48
+ </test-fixture>
49
+
50
+ <test-fixture id="required">
51
+ <template>
52
+ <paper-textarea auto-validate required error-message="error"></paper-textarea>
53
+ </template>
54
+ </test-fixture>
55
+
56
+ <test-fixture id="required-char-counter">
57
+ <template>
58
+ <paper-textarea auto-validate char-counter required error-message="error"></paper-textarea>
59
+ </template>
60
+ </test-fixture>
61
+
62
+ <test-fixture id="always-float-label">
63
+ <template>
64
+ <paper-textarea always-float-label label="label"></paper-textarea>
65
+ </template>
66
+ </test-fixture>
67
+
68
+ <script>
69
+
70
+ suite('basic', function() {
71
+
72
+ test('setting value sets the input value', function() {
73
+ var input = fixture('basic');
74
+ input.value = 'foobar';
75
+ assert.equal(input.inputElement.bindValue, input.value, 'inputElement value equals input.value');
76
+ });
77
+
78
+ test('empty required input shows error', function() {
79
+ var input = fixture('required');
80
+ forceXIfStamp(input);
81
+ var error = Polymer.dom(input.root).querySelector('paper-input-error');
82
+ assert.ok(error, 'paper-input-error exists');
83
+ assert.notEqual(getComputedStyle(error).display, 'none', 'error is not display:none');
84
+ });
85
+
86
+ test('caret position is preserved', function() {
87
+ var input = fixture('basic');
88
+ var ironTextarea = Polymer.dom(input.root).querySelector('iron-autogrow-textarea');
89
+ input.value = 'nananana';
90
+ ironTextarea.selectionStart = 2;
91
+ ironTextarea.selectionEnd = 2;
92
+
93
+ input.updateValueAndPreserveCaret('nanananabatman');
94
+
95
+ assert.equal(ironTextarea.selectionStart, 2, 'selectionStart is preserved');
96
+ assert.equal(ironTextarea.selectionEnd, 2, 'selectionEnd is preserved');
97
+ });
98
+
99
+ test('input attributes are bound to textarea', function() {
100
+ var input = fixture('basic');
101
+ var attrs = {
102
+ 'autocomplete': 'true',
103
+ 'autofocus': true,
104
+ 'inputmode': 'number',
105
+ 'name': 'foo',
106
+ 'placeholder': 'bar',
107
+ 'readonly': true,
108
+ 'required': true,
109
+ 'maxlength': 3
110
+ };
111
+ for (var attr in attrs) {
112
+ input[attr] = attrs[attr];
113
+ }
114
+ for (var attr in attrs) {
115
+ var inputAttr = input.inputElement.getAttribute(attr);
116
+ if (typeof attrs[attr] === 'boolean') {
117
+ assert.equal(inputAttr !== null, attrs[attr], 'attribute "' + attr + '" is equal to property (' + attrs[attr] + ', ' + inputAttr !== null + ')');
118
+ } else {
119
+ assert.equal(inputAttr, attrs[attr], 'attribute "' + attr + '" is equal to property (' + attrs[attr] + ', ' + inputAttr + ')');
120
+ }
121
+ }
122
+ });
123
+
124
+ test('always-float-label attribute works', function() {
125
+ var input = fixture('always-float-label');
126
+ var container = Polymer.dom(input.root).querySelector('paper-input-container');
127
+ var inputContent = Polymer.dom(container.root).querySelector('.input-content');
128
+ assert.isTrue(inputContent.classList.contains('label-is-floating'), 'label is floating');
129
+ });
130
+
131
+ });
132
+
133
+ suite('a11y', function() {
134
+
135
+ test('has aria-labelledby', function() {
136
+ var input = fixture('label');
137
+ assert.isTrue(input.inputElement.textarea.hasAttribute('aria-labelledby'))
138
+ assert.equal(input.inputElement.textarea.getAttribute('aria-labelledby'), Polymer.dom(input.root).querySelector('label').id, 'aria-labelledby points to the label');
139
+ });
140
+
141
+ test('has aria-describedby for error message', function() {
142
+ var input = fixture('required');
143
+ forceXIfStamp(input);
144
+ assert.isTrue(input.inputElement.textarea.hasAttribute('aria-describedby'));
145
+ assert.equal(input.inputElement.textarea.getAttribute('aria-describedby'), Polymer.dom(input.root).querySelector('paper-input-error').id, 'aria-describedby points to the error message');
146
+ });
147
+
148
+ test('has aria-describedby for character counter', function() {
149
+ var input = fixture('char-counter');
150
+ forceXIfStamp(input);
151
+ assert.isTrue(input.inputElement.textarea.hasAttribute('aria-describedby'));
152
+ assert.equal(input.inputElement.textarea.getAttribute('aria-describedby'), Polymer.dom(input.root).querySelector('paper-input-char-counter').id, 'aria-describedby points to the character counter');
153
+ });
154
+
155
+ test('has aria-describedby for character counter and error', function() {
156
+ var input = fixture('required-char-counter');
157
+ forceXIfStamp(input);
158
+ assert.isTrue(input.inputElement.textarea.hasAttribute('aria-describedby'));
159
+ assert.equal(input.inputElement.textarea.getAttribute('aria-describedby'), Polymer.dom(input.root).querySelector('paper-input-error').id + ' ' + Polymer.dom(input.root).querySelector('paper-input-char-counter').id, 'aria-describedby points to the error message and character counter');
160
+ });
161
+
162
+
163
+ });
164
+
165
+
166
+ </script>
167
+
168
+ </body>
169
+ </html>
@@ -0,0 +1,3 @@
1
+ # paper-styles
2
+
3
+ Material design CSS styles.
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "paper-styles",
3
+ "version": "1.0.4",
4
+ "description": "Common (global) styles for Material Design elements.",
5
+ "authors": [
6
+ "The Polymer Authors"
7
+ ],
8
+ "keywords": [
9
+ "web-component",
10
+ "polymer",
11
+ "style"
12
+ ],
13
+ "main": "paper-styles.html",
14
+ "license": "http://polymer.github.io/LICENSE.txt",
15
+ "homepage": "https://github.com/polymerelements/paper-styles/",
16
+ "ignore": [
17
+ "/.*",
18
+ "/demo/"
19
+ ],
20
+ "dependencies": {
21
+ "iron-flex-layout": "polymerelements/iron-flex-layout#^1.0.0",
22
+ "polymer": "Polymer/polymer#^1.0.0"
23
+ },
24
+ "devDependencies": {
25
+ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
26
+ }
27
+ }
@@ -0,0 +1,96 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ -->
10
+ <link rel="import" href="../paper-styles-classes.html">
11
+
12
+ <!--
13
+ A set of base styles that are applied to the document and standard elements that
14
+ match the Material Design spec.
15
+ -->
16
+ <style>
17
+ /*
18
+ Note that there is a lot of style duplication here. The hope is that the Polymer
19
+ 0.8 styling solution will allow for inheritance of properties so that we can
20
+ eventually avoid it.
21
+ */
22
+
23
+ /* Mixins */
24
+
25
+ /* [paper-font] */
26
+ body {
27
+ font-family: 'Roboto', 'Noto', sans-serif;
28
+ -webkit-font-smoothing: antialiased; /* OS X subpixel AA bleed bug */
29
+ }
30
+
31
+ /* [paper-font=display2] */
32
+ h1 {
33
+ font-size: 45px;
34
+ font-weight: 400;
35
+ letter-spacing: -.018em;
36
+ line-height: 48px;
37
+ }
38
+
39
+ /* [paper-font=display1] */
40
+ h2 {
41
+ font-size: 34px;
42
+ font-weight: 400;
43
+ letter-spacing: -.01em;
44
+ line-height: 40px;
45
+ }
46
+
47
+ /* [paper-font=headline] */
48
+ h3 {
49
+ font-size: 24px;
50
+ font-weight: 400;
51
+ letter-spacing: -.012em;
52
+ line-height: 32px;
53
+ }
54
+
55
+ /* [paper-font=subhead] */
56
+ h4 {
57
+ font-size: 16px;
58
+ font-weight: 400;
59
+ line-height: 24px;
60
+ }
61
+
62
+ /* [paper-font=body2] */
63
+ h5, h6 {
64
+ font-size: 14px;
65
+ font-weight: 500;
66
+ line-height: 24px;
67
+ }
68
+
69
+ /* [paper-font=button] */
70
+ a {
71
+ font-size: 14px;
72
+ font-weight: 500;
73
+ letter-spacing: 0.018em;
74
+ line-height: 24px;
75
+ text-transform: uppercase;
76
+ }
77
+
78
+ /* Overrides */
79
+
80
+ body, a {
81
+ color: #212121;
82
+ }
83
+
84
+ h1, h2, h3, h4, h5, h6, p {
85
+ margin: 0 0 20px 0;
86
+ }
87
+
88
+ h1, h2, h3, h4, h5, h6, a {
89
+ text-rendering: optimizeLegibility;
90
+ }
91
+
92
+ a {
93
+ text-decoration: none;
94
+ }
95
+
96
+ </style>
@@ -0,0 +1,302 @@
1
+ <!--
2
+ @license
3
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
4
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
5
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
6
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7
+ Code distributed by Google as part of the polymer project is also
8
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9
+ -->
10
+ <style>
11
+
12
+ /*******************************
13
+ Flex Layout
14
+ *******************************/
15
+
16
+ html /deep/ .layout.horizontal,
17
+ html /deep/ .layout.horizontal-reverse,
18
+ html /deep/ .layout.vertical,
19
+ html /deep/ .layout.vertical-reverse {
20
+ display: -ms-flexbox;
21
+ display: -webkit-flex;
22
+ display: flex;
23
+ }
24
+
25
+ html /deep/ .layout.inline {
26
+ display: -ms-inline-flexbox;
27
+ display: -webkit-inline-flex;
28
+ display: inline-flex;
29
+ }
30
+
31
+ html /deep/ .layout.horizontal {
32
+ -ms-flex-direction: row;
33
+ -webkit-flex-direction: row;
34
+ flex-direction: row;
35
+ }
36
+
37
+ html /deep/ .layout.horizontal-reverse {
38
+ -ms-flex-direction: row-reverse;
39
+ -webkit-flex-direction: row-reverse;
40
+ flex-direction: row-reverse;
41
+ }
42
+
43
+ html /deep/ .layout.vertical {
44
+ -ms-flex-direction: column;
45
+ -webkit-flex-direction: column;
46
+ flex-direction: column;
47
+ }
48
+
49
+ html /deep/ .layout.vertical-reverse {
50
+ -ms-flex-direction: column-reverse;
51
+ -webkit-flex-direction: column-reverse;
52
+ flex-direction: column-reverse;
53
+ }
54
+
55
+ html /deep/ .layout.wrap {
56
+ -ms-flex-wrap: wrap;
57
+ -webkit-flex-wrap: wrap;
58
+ flex-wrap: wrap;
59
+ }
60
+
61
+ html /deep/ .layout.wrap-reverse {
62
+ -ms-flex-wrap: wrap-reverse;
63
+ -webkit-flex-wrap: wrap-reverse;
64
+ flex-wrap: wrap-reverse;
65
+ }
66
+
67
+ html /deep/ .flex-auto {
68
+ -ms-flex: 1 1 auto;
69
+ -webkit-flex: 1 1 auto;
70
+ flex: 1 1 auto;
71
+ }
72
+
73
+ html /deep/ .flex-none {
74
+ -ms-flex: none;
75
+ -webkit-flex: none;
76
+ flex: none;
77
+ }
78
+
79
+ html /deep/ .flex,
80
+ html /deep/ .flex-1 {
81
+ -ms-flex: 1;
82
+ -webkit-flex: 1;
83
+ flex: 1;
84
+ }
85
+
86
+ html /deep/ .flex-2 {
87
+ -ms-flex: 2;
88
+ -webkit-flex: 2;
89
+ flex: 2;
90
+ }
91
+
92
+ html /deep/ .flex-3 {
93
+ -ms-flex: 3;
94
+ -webkit-flex: 3;
95
+ flex: 3;
96
+ }
97
+
98
+ html /deep/ .flex-4 {
99
+ -ms-flex: 4;
100
+ -webkit-flex: 4;
101
+ flex: 4;
102
+ }
103
+
104
+ html /deep/ .flex-5 {
105
+ -ms-flex: 5;
106
+ -webkit-flex: 5;
107
+ flex: 5;
108
+ }
109
+
110
+ html /deep/ .flex-6 {
111
+ -ms-flex: 6;
112
+ -webkit-flex: 6;
113
+ flex: 6;
114
+ }
115
+
116
+ html /deep/ .flex-7 {
117
+ -ms-flex: 7;
118
+ -webkit-flex: 7;
119
+ flex: 7;
120
+ }
121
+
122
+ html /deep/ .flex-8 {
123
+ -ms-flex: 8;
124
+ -webkit-flex: 8;
125
+ flex: 8;
126
+ }
127
+
128
+ html /deep/ .flex-9 {
129
+ -ms-flex: 9;
130
+ -webkit-flex: 9;
131
+ flex: 9;
132
+ }
133
+
134
+ html /deep/ .flex-10 {
135
+ -ms-flex: 10;
136
+ -webkit-flex: 10;
137
+ flex: 10;
138
+ }
139
+
140
+ html /deep/ .flex-11 {
141
+ -ms-flex: 11;
142
+ -webkit-flex: 11;
143
+ flex: 11;
144
+ }
145
+
146
+ html /deep/ .flex-12 {
147
+ -ms-flex: 12;
148
+ -webkit-flex: 12;
149
+ flex: 12;
150
+ }
151
+
152
+ /* alignment in cross axis */
153
+
154
+ html /deep/ .layout.start {
155
+ -ms-flex-align: start;
156
+ -webkit-align-items: flex-start;
157
+ align-items: flex-start;
158
+ }
159
+
160
+ html /deep/ .layout.center,
161
+ html /deep/ .layout.center-center {
162
+ -ms-flex-align: center;
163
+ -webkit-align-items: center;
164
+ align-items: center;
165
+ }
166
+
167
+ html /deep/ .layout.end {
168
+ -ms-flex-align: end;
169
+ -webkit-align-items: flex-end;
170
+ align-items: flex-end;
171
+ }
172
+
173
+ /* alignment in main axis */
174
+
175
+ html /deep/ .layout.start-justified {
176
+ -ms-flex-pack: start;
177
+ -webkit-justify-content: flex-start;
178
+ justify-content: flex-start;
179
+ }
180
+
181
+ html /deep/ .layout.center-justified,
182
+ html /deep/ .layout.center-center {
183
+ -ms-flex-pack: center;
184
+ -webkit-justify-content: center;
185
+ justify-content: center;
186
+ }
187
+
188
+ html /deep/ .layout.end-justified {
189
+ -ms-flex-pack: end;
190
+ -webkit-justify-content: flex-end;
191
+ justify-content: flex-end;
192
+ }
193
+
194
+ html /deep/ .layout.around-justified {
195
+ -ms-flex-pack: around;
196
+ -webkit-justify-content: space-around;
197
+ justify-content: space-around;
198
+ }
199
+
200
+ html /deep/ .layout.justified {
201
+ -ms-flex-pack: justify;
202
+ -webkit-justify-content: space-between;
203
+ justify-content: space-between;
204
+ }
205
+
206
+ /* self alignment */
207
+
208
+ html /deep/ .self-start {
209
+ -ms-align-self: flex-start;
210
+ -webkit-align-self: flex-start;
211
+ align-self: flex-start;
212
+ }
213
+
214
+ html /deep/ .self-center {
215
+ -ms-align-self: center;
216
+ -webkit-align-self: center;
217
+ align-self: center;
218
+ }
219
+
220
+ html /deep/ .self-end {
221
+ -ms-align-self: flex-end;
222
+ -webkit-align-self: flex-end;
223
+ align-self: flex-end;
224
+ }
225
+
226
+ html /deep/ .self-stretch {
227
+ -ms-align-self: stretch;
228
+ -webkit-align-self: stretch;
229
+ align-self: stretch;
230
+ }
231
+
232
+ /*******************************
233
+ Other Layout
234
+ *******************************/
235
+
236
+ html /deep/ .block {
237
+ display: block;
238
+ }
239
+
240
+ /* IE 10 support for HTML5 hidden attr */
241
+ html /deep/ [hidden] {
242
+ display: none !important;
243
+ }
244
+
245
+ html /deep/ .invisible {
246
+ visibility: hidden !important;
247
+ }
248
+
249
+ html /deep/ .relative {
250
+ position: relative;
251
+ }
252
+
253
+ html /deep/ .fit {
254
+ position: absolute;
255
+ top: 0;
256
+ right: 0;
257
+ bottom: 0;
258
+ left: 0;
259
+ }
260
+
261
+ body.fullbleed {
262
+ margin: 0;
263
+ height: 100vh;
264
+ }
265
+
266
+ html /deep/ .scroll {
267
+ -webkit-overflow-scrolling: touch;
268
+ overflow: auto;
269
+ }
270
+
271
+ .fixed-bottom,
272
+ .fixed-left,
273
+ .fixed-right,
274
+ .fixed-top {
275
+ position: fixed;
276
+ }
277
+
278
+ html /deep/ .fixed-top {
279
+ top: 0;
280
+ left: 0;
281
+ right: 0;
282
+ }
283
+
284
+ html /deep/ .fixed-right {
285
+ top: 0;
286
+ right: 0;
287
+ botttom: 0;
288
+ }
289
+
290
+ html /deep/ .fixed-bottom {
291
+ right: 0;
292
+ bottom: 0;
293
+ left: 0;
294
+ }
295
+
296
+ html /deep/ .fixed-left {
297
+ top: 0;
298
+ botttom: 0;
299
+ left: 0;
300
+ }
301
+
302
+ </style>