diff --git a/README.md b/README.md index 7755255..b9f4d52 100644 --- a/README.md +++ b/README.md @@ -49,11 +49,25 @@ copyright = "© 2015 Copyright Text" photo = "images/photo.png" # optional profile = "images/profile.png" # optional cover = "images/cover.png" # optional - twitter = "Your Twitter Name" # optional - github = "Your Github Name" # optional - facebook = "Your facebook Name" # optional - gplus = "Your Google+ Name" # optional - linkedin = "Your linkedin Name" # optional + [[params.logos]] + site = "weibo" # optional + username = "Your Weibo name" + [[params.logos]] + site = "twitter" # optional + username = "Your Twitter name" + [[params.logos]] + site = "facebook" # optional + username = "Your facebook name" + [[params.logos]] + site = "github" # optional + username = "Your Github name" + [[params.logos]] + site = "gplus" # optional + username = "Your Google+ name" + [[params.logos]] + site = "linkedin" # optional + username = "Your linkedin name" + googleAnalyticsUserID = "Your Analytics User Id" # optional [permalinks] diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 65a2bbd..b8adf49 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,36 +1,30 @@ {{ partial "header.html" . }} {{ $baseurl := .Site.BaseURL }} +
-
{{ .Title }}
+
{{ .Title }} {{if .Params.categories }} -
- {{ range $index, $category := .Params.categories }} - {{ $category }} - {{ end }} -
+ {{partial "category.html" .}} {{end}} -
{{ .Content }}
-
- {{ .Date.Format "2 Jan 2006" }} - {{if .Params.tags }} - {{ range $index, $tag := .Params.tags }} - #{{ $tag }} - {{ end }} - {{end}} -
- {{ with .Site.DisqusShortname }} - {{ partial "disqus.html" . }} - {{ end }} +
+
+
{{ .Content }}
+ +
+ {{partial "tag.html" .}} + {{ if .Site.DisqusShortname }} +
+ {{end}}
- +
{{if .Prev}} - + {{else}} {{end}} @@ -43,3 +37,7 @@ {{ partial "footer.html" . }} + +{{ if .Site.DisqusShortname }} + {{ partial "disqus.html" . }} +{{ end }} \ No newline at end of file diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html index 458139b..318a83c 100644 --- a/layouts/_default/terms.html +++ b/layouts/_default/terms.html @@ -2,11 +2,47 @@ {{ partial "header.html" . }} {{ $data := .Data }} + + + +
+{{ if eq $data.Plural "tags"}} +{{.Site.Params.transTag}} +{{else}} +{{.Site.Params.transCategory}} +{{end}} +
+
+{{if .Data.Terms}} {{ range $key, $value := .Data.Terms }} {{ if eq $data.Plural "tags"}}{{else}}{{end}} 
{{ $key }}
{{ len $value }}
{{ end }}
- +{{end}} +
+
{{ partial "footer.html" . }} \ No newline at end of file diff --git a/layouts/partials/category.html b/layouts/partials/category.html new file mode 100644 index 0000000..2c75652 --- /dev/null +++ b/layouts/partials/category.html @@ -0,0 +1,9 @@ +{{ $baseurl := .Site.BaseURL }} +{{if .Params.categories }} +
+ {{.Site.Params.transCategory}}: + {{ range $index, $category := .Params.categories }} + {{ $category }} + {{ end }} +
+{{end}} \ No newline at end of file diff --git a/layouts/partials/content.html b/layouts/partials/content.html index e93dde2..c7097b3 100644 --- a/layouts/partials/content.html +++ b/layouts/partials/content.html @@ -1,8 +1,23 @@ {{ $baseurl := .Site.BaseURL }} -
+ +
{{range $index, $page := .Paginator.Pages}} -
+ + + +
+
+
{{ .Title }}
+ {{partial "category.html" .}} +
+
+ +
+ {{partial "tag.html" .}} +
+
+ {{ end }}
+ \ No newline at end of file diff --git a/layouts/partials/disqus.html b/layouts/partials/disqus.html index a07c97a..1caa5ac 100644 --- a/layouts/partials/disqus.html +++ b/layouts/partials/disqus.html @@ -1,13 +1,4 @@ -
- \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 7f2c1c6..960e804 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,3 +1,4 @@ +{{ $baseurl := .Site.BaseURL }}
@@ -5,8 +6,13 @@
- - + + {{with .Site.Params.googleAnalyticsUserID }} @@ -15,9 +16,97 @@ + + - + - + .toolbar-tools.paper-toolbar .title { + pointer-events: initial; + } + + @@ -123,43 +217,44 @@
{{.Site.Params.author}}
- -  
Home
+
+  
{{.Site.Params.transHome}}
-  
Categories
+  
{{.Site.Params.transCategory}}
-  
Tags
+  
{{.Site.Params.transTag}}
- + -
{{.Site.Title}}
+ +
- {{with .Site.Params.facebook}} - - {{end}} - {{with .Site.Params.twitter}} - - {{end}} - {{with .Site.Params.gplus}} - - {{end}} - {{with .Site.Params.linkedin}} - - {{end}} - {{with .Site.Params.github}} - - {{end}} - + {{ range $item := .Site.Params.logos }} + {{ if eq $item.site "weibo" }} + + {{ else if eq $item.site "github"}} + + {{ else if eq $item.site "twitter"}} + + {{ else if eq $item.site "facebook"}} + + {{ else if eq $item.site "gplus"}} + + {{ else if eq $item.site "linkedin"}} + + {{end}} + {{end}} + -
+ \ No newline at end of file diff --git a/layouts/partials/tag.html b/layouts/partials/tag.html new file mode 100644 index 0000000..8b0e57b --- /dev/null +++ b/layouts/partials/tag.html @@ -0,0 +1,10 @@ +{{ $baseurl := .Site.BaseURL }} + +
+ {{ .Date.Format .Site.Params.dateFormat }} + {{if .Params.tags }} + {{ range $index, $tag := .Params.tags }} + {{ $tag }} + {{ end }} + {{end}} +
\ No newline at end of file diff --git a/static/bower.json b/static/bower.json index 5ff3b4f..d37fc18 100644 --- a/static/bower.json +++ b/static/bower.json @@ -1,14 +1,17 @@ { "name": "polymer", "dependencies": { - "polymer": "Polymer/polymer#^1.0.0", - "paper-scroll-header-panel": "PolymerElements/paper-scroll-header-panel#^1.0.0", - "iron-icons": "PolymerElements/iron-icons#^1.0.0", - "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0", - "paper-drawer-panel": "PolymerElements/paper-drawer-panel#^1.0.0", - "paper-menu": "PolymerElements/paper-menu#^1.0.0", - "paper-item": "PolymerElements/paper-item#^1.0.0", - "paper-fab": "PolymerElements/paper-fab#^1.0.0", - "iron-image": "PolymerElements/iron-image#^1.0.0" + "polymer": "Polymer/polymer", + "paper-scroll-header-panel": "PolymerElements/paper-scroll-header-panel", + "iron-icons": "PolymerElements/iron-icons", + "paper-icon-button": "PolymerElements/paper-icon-button", + "paper-button": "PolymerElements/paper-button", + "paper-card": "PolymerElements/paper-card", + "paper-header-panel": "PolymerElements/paper-header-panel", + "paper-drawer-panel": "PolymerElements/paper-drawer-panel", + "paper-menu": "PolymerElements/paper-menu", + "paper-item": "PolymerElements/paper-item", + "paper-fab": "PolymerElements/paper-fab", + "iron-image": "PolymerElements/iron-image" } } diff --git a/static/bower_components/font-roboto/.bower.json b/static/bower_components/font-roboto/.bower.json index 432744c..eafbb18 100644 --- a/static/bower_components/font-roboto/.bower.json +++ b/static/bower_components/font-roboto/.bower.json @@ -1,6 +1,6 @@ { "name": "font-roboto", - "version": "1.0.0", + "version": "1.0.1", "description": "An HTML import for Roboto", "authors": [ "The Polymer Authors" @@ -19,13 +19,13 @@ "ignore": [ "/.*" ], - "_release": "1.0.0", + "_release": "1.0.1", "_resolution": { "type": "version", - "tag": "1.0.0", - "commit": "b85b217e5f4b31f9c03b588e25c977b8104a40cd" + "tag": "v1.0.1", + "commit": "21ce9b51a417fa9995cf6606e886aba0728f70a1" }, "_source": "git://github.com/PolymerElements/font-roboto.git", - "_target": "^1.0.0", + "_target": "^1.0.1", "_originalSource": "PolymerElements/font-roboto" } \ No newline at end of file diff --git a/static/bower_components/font-roboto/CWB0XYA8bzo0kSThX0UTuA.woff2 b/static/bower_components/font-roboto/CWB0XYA8bzo0kSThX0UTuA.woff2 new file mode 100644 index 0000000..120796b Binary files /dev/null and b/static/bower_components/font-roboto/CWB0XYA8bzo0kSThX0UTuA.woff2 differ diff --git a/static/bower_components/font-roboto/bower.json b/static/bower_components/font-roboto/bower.json index 0962916..977cf2d 100644 --- a/static/bower_components/font-roboto/bower.json +++ b/static/bower_components/font-roboto/bower.json @@ -1,6 +1,6 @@ { "name": "font-roboto", - "version": "1.0.0", + "version": "1.0.1", "description": "An HTML import for Roboto", "authors": [ "The Polymer Authors" diff --git a/static/bower_components/font-roboto/font.css b/static/bower_components/font-roboto/font.css new file mode 100644 index 0000000..071095c --- /dev/null +++ b/static/bower_components/font-roboto/font.css @@ -0,0 +1,560 @@ +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v15/0eC6fl06luXEYWpBSJvXCBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v15/Fl4y0QdOxyyTHEGMXX8kcRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v15/-L14Jk06m6pUHB-5mXQQnRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v15/I3S1wsgSg9YCurV6PUkTORJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v15/NYDWBdD4gIq26G5XYbHsFBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v15/Pru33qjShpZSmG3z6VYwnRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 300; + src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v15/Hgo13k-tfSpn0qi1SFdUfVtXRa8TVwTICgirnJhmVJw.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v15/ek4gzZ-GeXAPcSbHtCeQI_esZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v15/mErvLBYg_cXG3rLvUsKT_fesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v15/-2n2p-_Y08sg57CNWQfKNvesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v15/u0TOpm082MNkS5K0Q4rhqvesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v15/NdF9MtnOpLzo-noMoG0miPesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v15/Fcx7Wwv8OzT71A3E1XOAjvesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + src: local('Roboto'), local('Roboto-Regular'), url(CWB0XYA8bzo0kSThX0UTuA.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v15/ZLqKeelYbATG60EpZBSDyxJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v15/oHi30kwQWvpCWqAhzHcCSBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v15/rGvHdJnr2l75qb0YND9NyBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v15/mx9Uck6uB63VIKFYnEMXrRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v15/mbmhprMH69Zi6eEPBYVFhRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v15/oOeFwZNlrTefzLYmlVV1UBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v15/RxZJdnzeo3R5zSexge8UUVtXRa8TVwTICgirnJhmVJw.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v15/77FXFjRbGzN4aCrSFhlh3hJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v15/isZ-wbCXNKAbnjo6_TwHThJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v15/UX6i4JxQDm3fVTc1CPuwqhJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v15/jSN2CGVDbcVyCnfJfjSdfBJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v15/PwZc-YbIL414wB9rB1IAPRJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v15/97uahxiqZRoncBaCEI3aWxJtnKITppOI_IvcXXDNrsc.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v15/d-6IYplOFocCacKzxwXSOFtXRa8TVwTICgirnJhmVJw.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v15/7m8l7TlFO-S3VkhHuR0atzTOQ_MqJVwkKsUn0wKzc2I.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v15/7m8l7TlFO-S3VkhHuR0atzUj_cnvWIuuBMVgbX098Mw.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v15/7m8l7TlFO-S3VkhHuR0at0bcKLIaa1LC45dFaAfauRA.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v15/7m8l7TlFO-S3VkhHuR0at2o_sUJ8uO4YLWRInS22T3Y.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v15/7m8l7TlFO-S3VkhHuR0at76up8jxqWt8HVA3mDhkV_0.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v15/7m8l7TlFO-S3VkhHuR0atyYE0-AqJ3nfInTTiDXDjU4.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 300; + src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v15/7m8l7TlFO-S3VkhHuR0at44P5ICox8Kq3LLUNMylGO4.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v15/WxrXJa0C3KdtC7lMafG4dRTbgVql8nDJpwnrE27mub0.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v15/OpXUqTo0UgQQhGj_SFdLWBTbgVql8nDJpwnrE27mub0.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v15/1hZf02POANh32k2VkgEoUBTbgVql8nDJpwnrE27mub0.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v15/cDKhRaXnQTOVbaoxwdOr9xTbgVql8nDJpwnrE27mub0.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v15/K23cxWVTrIFD6DJsEVi07RTbgVql8nDJpwnrE27mub0.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v15/vSzulfKSK0LLjjfeaxcREhTbgVql8nDJpwnrE27mub0.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 400; + src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v15/vPcynSL0qHq_6dX7lKVByfesZW2xOQ-xsNqO47m55DA.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 500; + src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v15/OLffGBTaF0XFOW1gnuHF0TTOQ_MqJVwkKsUn0wKzc2I.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 500; + src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v15/OLffGBTaF0XFOW1gnuHF0TUj_cnvWIuuBMVgbX098Mw.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 500; + src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v15/OLffGBTaF0XFOW1gnuHF0UbcKLIaa1LC45dFaAfauRA.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 500; + src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v15/OLffGBTaF0XFOW1gnuHF0Wo_sUJ8uO4YLWRInS22T3Y.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 500; + src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v15/OLffGBTaF0XFOW1gnuHF0b6up8jxqWt8HVA3mDhkV_0.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 500; + src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v15/OLffGBTaF0XFOW1gnuHF0SYE0-AqJ3nfInTTiDXDjU4.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 500; + src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v15/OLffGBTaF0XFOW1gnuHF0Y4P5ICox8Kq3LLUNMylGO4.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v15/t6Nd4cfPRhZP44Q5QAjcCzTOQ_MqJVwkKsUn0wKzc2I.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v15/t6Nd4cfPRhZP44Q5QAjcCzUj_cnvWIuuBMVgbX098Mw.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v15/t6Nd4cfPRhZP44Q5QAjcC0bcKLIaa1LC45dFaAfauRA.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v15/t6Nd4cfPRhZP44Q5QAjcC2o_sUJ8uO4YLWRInS22T3Y.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v15/t6Nd4cfPRhZP44Q5QAjcC76up8jxqWt8HVA3mDhkV_0.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v15/t6Nd4cfPRhZP44Q5QAjcCyYE0-AqJ3nfInTTiDXDjU4.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto'; + font-style: italic; + font-weight: 700; + src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v15/t6Nd4cfPRhZP44Q5QAjcC44P5ICox8Kq3LLUNMylGO4.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: local('Roboto Mono'), local('RobotoMono-Regular'), url(https://fonts.gstatic.com/s/robotomono/v4/hMqPNLsu_dywMa4C_DEpYzTOQ_MqJVwkKsUn0wKzc2I.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: local('Roboto Mono'), local('RobotoMono-Regular'), url(https://fonts.gstatic.com/s/robotomono/v4/hMqPNLsu_dywMa4C_DEpYzUj_cnvWIuuBMVgbX098Mw.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: local('Roboto Mono'), local('RobotoMono-Regular'), url(https://fonts.gstatic.com/s/robotomono/v4/hMqPNLsu_dywMa4C_DEpY0bcKLIaa1LC45dFaAfauRA.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: local('Roboto Mono'), local('RobotoMono-Regular'), url(https://fonts.gstatic.com/s/robotomono/v4/hMqPNLsu_dywMa4C_DEpY2o_sUJ8uO4YLWRInS22T3Y.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: local('Roboto Mono'), local('RobotoMono-Regular'), url(https://fonts.gstatic.com/s/robotomono/v4/hMqPNLsu_dywMa4C_DEpY76up8jxqWt8HVA3mDhkV_0.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: local('Roboto Mono'), local('RobotoMono-Regular'), url(https://fonts.gstatic.com/s/robotomono/v4/hMqPNLsu_dywMa4C_DEpYyYE0-AqJ3nfInTTiDXDjU4.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 400; + src: local('Roboto Mono'), local('RobotoMono-Regular'), url(https://fonts.gstatic.com/s/robotomono/v4/hMqPNLsu_dywMa4C_DEpY44P5ICox8Kq3LLUNMylGO4.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; +} +/* cyrillic-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + src: local('Roboto Mono Bold'), local('RobotoMono-Bold'), url(https://fonts.gstatic.com/s/robotomono/v4/N4duVc9C58uwPiY8_59Fz56iIh_FvlUHQwED9Yt5Kbw.woff2) format('woff2'); + unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F; +} +/* cyrillic */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + src: local('Roboto Mono Bold'), local('RobotoMono-Bold'), url(https://fonts.gstatic.com/s/robotomono/v4/N4duVc9C58uwPiY8_59Fzy_vZmeiCMnoWNN9rHBYaTc.woff2) format('woff2'); + unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; +} +/* greek-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + src: local('Roboto Mono Bold'), local('RobotoMono-Bold'), url(https://fonts.gstatic.com/s/robotomono/v4/N4duVc9C58uwPiY8_59FzyFaMxiho_5XQnyRZzQsrZs.woff2) format('woff2'); + unicode-range: U+1F00-1FFF; +} +/* greek */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + src: local('Roboto Mono Bold'), local('RobotoMono-Bold'), url(https://fonts.gstatic.com/s/robotomono/v4/N4duVc9C58uwPiY8_59FzwalQocB-__pDVGhF3uS2Ks.woff2) format('woff2'); + unicode-range: U+0370-03FF; +} +/* vietnamese */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + src: local('Roboto Mono Bold'), local('RobotoMono-Bold'), url(https://fonts.gstatic.com/s/robotomono/v4/N4duVc9C58uwPiY8_59Fz2hQUTDJGru-0vvUpABgH8I.woff2) format('woff2'); + unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB; +} +/* latin-ext */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + src: local('Roboto Mono Bold'), local('RobotoMono-Bold'), url(https://fonts.gstatic.com/s/robotomono/v4/N4duVc9C58uwPiY8_59Fz-jkDdvhIIFj_YMdgqpnSB0.woff2) format('woff2'); + unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; +} +/* latin */ +@font-face { + font-family: 'Roboto Mono'; + font-style: normal; + font-weight: 700; + src: local('Roboto Mono Bold'), local('RobotoMono-Bold'), url(https://fonts.gstatic.com/s/robotomono/v4/N4duVc9C58uwPiY8_59Fz4lIZu-HDpmDIZMigmsroc4.woff2) format('woff2'); + unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; +} \ No newline at end of file diff --git a/static/bower_components/font-roboto/roboto.html b/static/bower_components/font-roboto/roboto.html index 848d1da..3d749a6 100644 --- a/static/bower_components/font-roboto/roboto.html +++ b/static/bower_components/font-roboto/roboto.html @@ -7,4 +7,6 @@ Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt --> - + + diff --git a/static/bower_components/iron-behaviors/.bower.json b/static/bower_components/iron-behaviors/.bower.json index bf8b6cf..f499351 100644 --- a/static/bower_components/iron-behaviors/.bower.json +++ b/static/bower_components/iron-behaviors/.bower.json @@ -1,6 +1,6 @@ { "name": "iron-behaviors", - "version": "1.0.4", + "version": "1.0.8", "description": "Provides a set of behaviors for the iron elements", "private": true, "authors": [ @@ -28,11 +28,11 @@ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, "homepage": "https://github.com/PolymerElements/iron-behaviors", - "_release": "1.0.4", + "_release": "1.0.8", "_resolution": { "type": "version", - "tag": "v1.0.4", - "commit": "8792edd457de697a74f398c09b67df30adf7d866" + "tag": "v1.0.8", + "commit": "663ad706b43989f4961d945b8116cf4db346532f" }, "_source": "git://github.com/PolymerElements/iron-behaviors.git", "_target": "^1.0.0", diff --git a/static/bower_components/iron-behaviors/bower.json b/static/bower_components/iron-behaviors/bower.json index 6a18575..2f7f40e 100644 --- a/static/bower_components/iron-behaviors/bower.json +++ b/static/bower_components/iron-behaviors/bower.json @@ -1,6 +1,6 @@ { "name": "iron-behaviors", - "version": "1.0.4", + "version": "1.0.8", "description": "Provides a set of behaviors for the iron elements", "private": true, "authors": [ diff --git a/static/bower_components/iron-behaviors/iron-button-state.html b/static/bower_components/iron-behaviors/iron-button-state.html index fc52e17..96a2bfa 100644 --- a/static/bower_components/iron-behaviors/iron-button-state.html +++ b/static/bower_components/iron-behaviors/iron-button-state.html @@ -50,8 +50,7 @@ type: Boolean, value: false, notify: true, - reflectToAttribute: true, - observer: '_activeChanged' + reflectToAttribute: true }, /** @@ -72,6 +71,16 @@ receivedFocusFromKeyboard: { type: Boolean, readOnly: true + }, + + /** + * The aria attribute to be set if the button is a toggle and in the + * active state. + */ + ariaActiveAttribute: { + type: String, + value: 'aria-pressed', + observer: '_ariaActiveAttributeChanged' } }, @@ -82,7 +91,8 @@ }, observers: [ - '_detectKeyboardFocus(focused)' + '_detectKeyboardFocus(focused)', + '_activeChanged(active, ariaActiveAttribute)' ], keyBindings: { @@ -91,6 +101,8 @@ 'space:keyup': '_spaceKeyUpHandler', }, + _mouseEventRe: /^mouse/, + _tapHandler: function() { if (this.toggles) { // a tap is needed to toggle the active state @@ -107,11 +119,39 @@ // to emulate native checkbox, (de-)activations from a user interaction fire // 'change' events _userActivate: function(active) { - this.active = active; - this.fire('change'); + if (this.active !== active) { + this.active = active; + this.fire('change'); + } + }, + + _eventSourceIsPrimaryInput: function(event) { + event = event.detail.sourceEvent || event; + + // Always true for non-mouse events.... + if (!this._mouseEventRe.test(event.type)) { + return true; + } + + // http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons + if ('buttons' in event) { + return event.buttons === 1; + } + + // http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which + if (typeof event.which === 'number') { + return event.which < 2; + } + + // http://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button + return event.button < 1; }, - _downHandler: function() { + _downHandler: function(event) { + if (!this._eventSourceIsPrimaryInput(event)) { + return; + } + this._setPointerDown(true); this._setPressed(true); this._setReceivedFocusFromKeyboard(false); @@ -150,11 +190,18 @@ this._changedButtonState(); }, - _activeChanged: function(active) { + _ariaActiveAttributeChanged: function(value, oldValue) { + if (oldValue && oldValue != value && this.hasAttribute(oldValue)) { + this.removeAttribute(oldValue); + } + }, + + _activeChanged: function(active, ariaActiveAttribute) { if (this.toggles) { - this.setAttribute('aria-pressed', active ? 'true' : 'false'); + this.setAttribute(this.ariaActiveAttribute, + active ? 'true' : 'false'); } else { - this.removeAttribute('aria-pressed'); + this.removeAttribute(this.ariaActiveAttribute); } this._changedButtonState(); }, diff --git a/static/bower_components/iron-behaviors/iron-control-state.html b/static/bower_components/iron-behaviors/iron-control-state.html index 33e42ea..8362aa3 100644 --- a/static/bower_components/iron-behaviors/iron-control-state.html +++ b/static/bower_components/iron-behaviors/iron-control-state.html @@ -60,22 +60,21 @@ ], ready: function() { - // TODO(sjmiles): ensure read-only property is valued so the compound - // observer will fire - if (this.focused === undefined) { - this._setFocused(false); - } this.addEventListener('focus', this._boundFocusBlurHandler, true); this.addEventListener('blur', this._boundFocusBlurHandler, true); }, _focusBlurHandler: function(event) { - var target = event.path ? event.path[0] : event.target; - if (target === this) { + // NOTE(cdata): if we are in ShadowDOM land, `event.target` will + // eventually become `this` due to retargeting; if we are not in + // ShadowDOM land, `event.target` will eventually become `this` due + // to the second conditional which fires a synthetic event (that is also + // handled). In either case, we can disregard `event.path`. + + if (event.target === this) { var focused = event.type === 'focus'; this._setFocused(focused); } else if (!this.shadowRoot) { - event.stopPropagation(); this.fire(event.type, {sourceEvent: event}, { node: this, bubbles: event.bubbles, diff --git a/static/bower_components/iron-behaviors/test/active-state.html b/static/bower_components/iron-behaviors/test/active-state.html index bffa727..0fa6fdc 100644 --- a/static/bower_components/iron-behaviors/test/active-state.html +++ b/static/bower_components/iron-behaviors/test/active-state.html @@ -41,6 +41,15 @@ activeTarget = fixture('TrivialActiveState'); }); + suite('non-primary pointer input source', function() { + test('does not cause state to change', function() { + var rightClickMouseEvent = new CustomEvent('mousedown'); + rightClickMouseEvent.buttons = 2; + activeTarget.dispatchEvent(rightClickMouseEvent); + expect(activeTarget.pressed).to.be.equal(false); + }); + }); + suite('active state with toggles attribute', function() { setup(function() { activeTarget = fixture('ToggleActiveState'); @@ -51,6 +60,8 @@ MockInteractions.downAndUp(activeTarget, function() { try { expect(activeTarget.hasAttribute('active')).to.be.eql(true); + expect(activeTarget.hasAttribute('aria-pressed')).to.be.eql(true); + expect(activeTarget.getAttribute('aria-pressed')).to.be.eql('true'); done(); } catch (e) { done(e); @@ -63,6 +74,8 @@ MockInteractions.downAndUp(activeTarget, function() { try { expect(activeTarget.hasAttribute('active')).to.be.eql(false); + expect(activeTarget.hasAttribute('aria-pressed')).to.be.eql(true); + expect(activeTarget.getAttribute('aria-pressed')).to.be.eql('false'); done(); } catch (e) { done(e); @@ -70,6 +83,39 @@ }); }); }); + + test('the correct aria attribute is set', function(done) { + activeTarget.ariaActiveAttribute = 'aria-checked'; + MockInteractions.downAndUp(activeTarget, function() { + try { + expect(activeTarget.hasAttribute('active')).to.be.eql(true); + expect(activeTarget.hasAttribute('aria-checked')).to.be.eql(true); + expect(activeTarget.getAttribute('aria-checked')).to.be.eql('true'); + done(); + } catch (e) { + done(e); + } + }); + }); + + test('the aria attribute is updated correctly', function(done) { + activeTarget.ariaActiveAttribute = 'aria-checked'; + MockInteractions.downAndUp(activeTarget, function() { + try { + expect(activeTarget.hasAttribute('active')).to.be.eql(true); + expect(activeTarget.hasAttribute('aria-checked')).to.be.eql(true); + expect(activeTarget.getAttribute('aria-checked')).to.be.eql('true'); + + activeTarget.ariaActiveAttribute = 'aria-pressed'; + expect(activeTarget.hasAttribute('aria-checked')).to.be.eql(false); + expect(activeTarget.hasAttribute('aria-pressed')).to.be.eql(true); + expect(activeTarget.getAttribute('aria-pressed')).to.be.eql('true'); + done(); + } catch (e) { + done(e); + } + }); + }); }); }); diff --git a/static/bower_components/iron-behaviors/test/focused-state.html b/static/bower_components/iron-behaviors/test/focused-state.html index 2d3af69..6ee6792 100644 --- a/static/bower_components/iron-behaviors/test/focused-state.html +++ b/static/bower_components/iron-behaviors/test/focused-state.html @@ -90,26 +90,24 @@ focusable = fixture('NestedFocusedState'); }); - test('focus/blur events fired on host element', function(done) { + test('focus/blur events fired on host element', function() { var nFocusEvents = 0; var nBlurEvents = 0; + focusable.addEventListener('focus', function() { nFocusEvents += 1; - // setTimeout to wait for potentially more, erroneous events - setTimeout(function() { - assert.equal(nFocusEvents, 1, 'one focus event fired'); - MockInteractions.blur(focusable.$.input); - }); + expect(focusable.focused).to.be.equal(true); + MockInteractions.blur(focusable.$.input); }); focusable.addEventListener('blur', function() { + expect(focusable.focused).to.be.equal(false); nBlurEvents += 1; - // setTimeout to wait for potentially more, erroneous events - setTimeout(function() { - assert.equal(nBlurEvents, 1, 'one blur event fired'); - done(); - }); }); + MockInteractions.focus(focusable.$.input); + + expect(nBlurEvents).to.be.greaterThan(0); + expect(nFocusEvents).to.be.greaterThan(0); }); }); diff --git a/static/bower_components/iron-collapse/.bower.json b/static/bower_components/iron-collapse/.bower.json new file mode 100644 index 0000000..2eecb88 --- /dev/null +++ b/static/bower_components/iron-collapse/.bower.json @@ -0,0 +1,40 @@ +{ + "name": "iron-collapse", + "version": "1.0.3", + "description": "Provides a collapsable container", + "authors": [ + "The Polymer Authors" + ], + "keywords": [ + "web-components", + "polymer", + "container" + ], + "private": true, + "repository": { + "type": "git", + "url": "https://github.com/PolymerElements/iron-collapse" + }, + "license": "http://polymer.github.io/LICENSE.txt", + "homepage": "https://github.com/PolymerElements/iron-collapse", + "ignore": [], + "dependencies": { + "polymer": "Polymer/polymer#^1.0.0" + }, + "devDependencies": { + "web-component-tester": "*", + "test-fixture": "PolymerElements/test-fixture#^1.0.0", + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "paper-styles": "PolymerElements/paper-styles#^1.0.0", + "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" + }, + "_release": "1.0.3", + "_resolution": { + "type": "version", + "tag": "v1.0.3", + "commit": "08716fe08adec031ecbcfffd1811d27fea2f82ad" + }, + "_source": "git://github.com/PolymerElements/iron-collapse.git", + "_target": "^1.0.0", + "_originalSource": "PolymerElements/iron-collapse" +} \ No newline at end of file diff --git a/static/bower_components/iron-collapse/.gitignore b/static/bower_components/iron-collapse/.gitignore new file mode 100644 index 0000000..8d4ae25 --- /dev/null +++ b/static/bower_components/iron-collapse/.gitignore @@ -0,0 +1 @@ +bower_components diff --git a/static/bower_components/iron-collapse/README.md b/static/bower_components/iron-collapse/README.md new file mode 100644 index 0000000..b11ac66 --- /dev/null +++ b/static/bower_components/iron-collapse/README.md @@ -0,0 +1,37 @@ +# iron-collapse + +`iron-collapse` creates a collapsible block of content. By default, the content +will be collapsed. Use `opened` or `toggle()` to show/hide the content. + +```html + + + +
Content goes here...
+
+``` + +```javascript +toggle: function() { + this.$.collapse.toggle(); +} +``` + +`iron-collapse` adjusts the height/width of the collapsible element to show/hide +the content. So avoid putting padding/margin/border on the collapsible directly, +and instead put a div inside and style that. + +```html + + + +
+
Content goes here...
+
+
+``` diff --git a/static/bower_components/iron-collapse/bower.json b/static/bower_components/iron-collapse/bower.json new file mode 100644 index 0000000..f0438df --- /dev/null +++ b/static/bower_components/iron-collapse/bower.json @@ -0,0 +1,31 @@ +{ + "name": "iron-collapse", + "version": "1.0.3", + "description": "Provides a collapsable container", + "authors": [ + "The Polymer Authors" + ], + "keywords": [ + "web-components", + "polymer", + "container" + ], + "private": true, + "repository": { + "type": "git", + "url": "https://github.com/PolymerElements/iron-collapse" + }, + "license": "http://polymer.github.io/LICENSE.txt", + "homepage": "https://github.com/PolymerElements/iron-collapse", + "ignore": [], + "dependencies": { + "polymer": "Polymer/polymer#^1.0.0" + }, + "devDependencies": { + "web-component-tester": "*", + "test-fixture": "PolymerElements/test-fixture#^1.0.0", + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "paper-styles": "PolymerElements/paper-styles#^1.0.0", + "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" + } +} diff --git a/static/bower_components/iron-collapse/demo/index.html b/static/bower_components/iron-collapse/demo/index.html new file mode 100644 index 0000000..c9571ea --- /dev/null +++ b/static/bower_components/iron-collapse/demo/index.html @@ -0,0 +1,74 @@ + + + + + + + iron-collapse demo + + + + + + + + + + + + + + + +
+
Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea, id minim maiestatis incorrupte duo. Dolorum verterem ad ius, his et nullam verterem. Eu alia debet usu, an doming tritani est. Vix ad ponderum petentium suavitate, eum eu tempor populo, graece sententiae constituam vim ex. Cu torquatos reprimique neglegentur nec, voluptua periculis has ut, at eos discere deleniti sensibus. Lorem ipsum dolor sit amet, per in nusquam nominavi periculis, sit elit oportere ea, id minim maiestatis incorrupte duo. Dolorum verterem ad ius, his et nullam verterem. Eu alia debet usu, an doming tritani est. Vix ad ponderum petentium suavitate, eum eu tempor populo, graece sententiae constituam vim ex. Cu torquatos reprimique neglegentur nec, voluptua periculis has ut, at eos discere deleniti sensibus.
+
+
+ + + +
+
Pro saepe pertinax ei, ad pri animal labores suscipiantur. Modus commodo minimum eum te, vero utinam assueverit per eu, zril oportere suscipiantur pri te. Partem percipitur deterruisset ad sea, at eam suas luptatum dissentiunt. No error alienum pro, erant senserit ex mei, pri semper alterum no. Ut habemus menandri vulputate mea. Feugiat verterem ut sed. Dolores maiestatis id per. Pro saepe pertinax ei, ad pri animal labores suscipiantur. Modus commodo minimum eum te, vero utinam assueverit per eu, zril oportere suscipiantur pri te. Partem percipitur deterruisset ad sea, at eam suas luptatum dissentiunt. No error alienum pro, erant senserit ex mei, pri semper alterum no. Ut habemus menandri vulputate mea. Feugiat verterem ut sed. Dolores maiestatis id per.
+ + + +
+
Iisque perfecto dissentiet cum et, sit ut quot mandamus, ut vim tibique splendide instructior. Id nam odio natum malorum, tibique copiosae expetenda mel ea. Mea melius malorum ut. Ut nec tollit vocent timeam. Facer nonumy numquam id his, munere salutatus consequuntur eum et, eum cotidieque definitionem signiferumque id. Ei oblique graecis patrioque vis, et probatus dignissim inciderint vel. Sed id paulo erroribus, autem semper accusamus in mel. Iisque perfecto dissentiet cum et, sit ut quot mandamus, ut vim tibique splendide instructior. Id nam odio natum malorum, tibique copiosae expetenda mel ea. Mea melius malorum ut. Ut nec tollit vocent timeam. Facer nonumy numquam id his, munere salutatus consequuntur eum et, eum cotidieque definitionem signiferumque id. Ei oblique graecis patrioque vis, et probatus dignissim inciderint vel. Sed id paulo erroribus, autem semper accusamus in mel.
+
+
+
+
+ + + diff --git a/static/bower_components/iron-collapse/hero.svg b/static/bower_components/iron-collapse/hero.svg new file mode 100644 index 0000000..ae1a49e --- /dev/null +++ b/static/bower_components/iron-collapse/hero.svg @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/static/bower_components/iron-collapse/index.html b/static/bower_components/iron-collapse/index.html new file mode 100644 index 0000000..b5d2007 --- /dev/null +++ b/static/bower_components/iron-collapse/index.html @@ -0,0 +1,31 @@ + + + + + + + + + + iron-collapse + + + + + + + + + + + + + diff --git a/static/bower_components/iron-collapse/iron-collapse.html b/static/bower_components/iron-collapse/iron-collapse.html new file mode 100644 index 0000000..96e475f --- /dev/null +++ b/static/bower_components/iron-collapse/iron-collapse.html @@ -0,0 +1,200 @@ + + + + + + + + + + + + + + + diff --git a/static/bower_components/iron-collapse/test/basic.html b/static/bower_components/iron-collapse/test/basic.html new file mode 100644 index 0000000..46b1b18 --- /dev/null +++ b/static/bower_components/iron-collapse/test/basic.html @@ -0,0 +1,93 @@ + + + + + + + iron-collapse-basic + + + + + + + + + + + + + + + + + + + + + diff --git a/static/bower_components/iron-collapse/test/horizontal.html b/static/bower_components/iron-collapse/test/horizontal.html new file mode 100644 index 0000000..77ab89e --- /dev/null +++ b/static/bower_components/iron-collapse/test/horizontal.html @@ -0,0 +1,91 @@ + + + + + + iron-collapse-horizontal + + + + + + + + + + + + + + + + + + + + diff --git a/static/bower_components/iron-collapse/test/index.html b/static/bower_components/iron-collapse/test/index.html new file mode 100644 index 0000000..e5e8a2e --- /dev/null +++ b/static/bower_components/iron-collapse/test/index.html @@ -0,0 +1,31 @@ + + + + + + + + Tests + + + + + + + + + diff --git a/static/bower_components/iron-flex-layout/.bower.json b/static/bower_components/iron-flex-layout/.bower.json index cfb5824..90b7b9e 100644 --- a/static/bower_components/iron-flex-layout/.bower.json +++ b/static/bower_components/iron-flex-layout/.bower.json @@ -1,6 +1,6 @@ { "name": "iron-flex-layout", - "version": "1.0.2", + "version": "1.0.3", "description": "Provide flexbox-based layouts", "keywords": [ "web-components", @@ -24,11 +24,11 @@ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, "homepage": "https://github.com/polymerelements/iron-flex-layout", - "_release": "1.0.2", + "_release": "1.0.3", "_resolution": { "type": "version", - "tag": "v1.0.2", - "commit": "50bcecf40ab23caa7c2cd90030555e00c5ba7154" + "tag": "v1.0.3", + "commit": "e6c2cfec18354973ac03e70dcd8afcc3c72d09b9" }, "_source": "git://github.com/polymerelements/iron-flex-layout.git", "_target": "^1.0.0", diff --git a/static/bower_components/iron-flex-layout/bower.json b/static/bower_components/iron-flex-layout/bower.json index 202fbe0..a300d51 100644 --- a/static/bower_components/iron-flex-layout/bower.json +++ b/static/bower_components/iron-flex-layout/bower.json @@ -1,6 +1,6 @@ { "name": "iron-flex-layout", - "version": "1.0.2", + "version": "1.0.3", "description": "Provide flexbox-based layouts", "keywords": [ "web-components", diff --git a/static/bower_components/iron-flex-layout/iron-flex-layout.html b/static/bower_components/iron-flex-layout/iron-flex-layout.html index ed9cd7b..b7d1f08 100644 --- a/static/bower_components/iron-flex-layout/iron-flex-layout.html +++ b/static/bower_components/iron-flex-layout/iron-flex-layout.html @@ -10,8 +10,14 @@ - + The iron elements include several sets of icons. -To use the default set of icons, import `iron-icons.html` and use the `icon` attribute to specify an icon: +To use the default set of icons, import `iron-icons.html` and use the `icon` attribute to specify an icon: - <!-- import default iconset and iron-icon --> -To use a different built-in set of icons, import `iron-icons/-icons.html`, and -specify the icon as `:`. For example: +To use a different built-in set of icons, import the specific `iron-icons/-icons.html`, and +specify the icon as `:`. For example, to use a communication icon, you would +use: - <!-- import communication iconset and iron-icon --> @@ -93,7 +92,6 @@ + + - - - -
- -
Simple menu
- - -
  • item 0
  • -
  • item 1
  • -
  • item 2
  • -
  • item 3
  • -
    - -
    - -
    - -
    Multi-select menu
    - - -
  • item 0
  • -
  • item 1
  • -
  • item 2
  • -
  • item 3
  • -
  • item 4
  • -
    - -
    - -
    - -
    Simple menubar
    - - -
  • item 0
  • -
  • item 1
  • -
  • item 2
  • -
  • item 3
  • -
    - -
    - -
    -
    Multi-select menubar
    - - -
  • item 0
  • -
  • item 1
  • -
  • item 2
  • -
  • item 3
  • -
  • item 4
  • -
    -
    +
    +
    +

    Simple menu

    +
    + +
  • item 0
  • +
  • item 1
  • +
  • item 2
  • +
  • item 3
  • +
    +
    +
    + +
    +

    Multi-select menu

    +
    + +
  • item 0
  • +
  • item 1
  • +
  • item 2
  • +
  • item 3
  • +
    +
    +
    + +
    +
    +

    Simple menubar

    +
    + +
  • item 0
  • +
  • item 1
  • +
  • item 2
  • +
  • item 3
  • +
    +
    +
    +
    +

    Multi-select menubar

    +
    + +
  • item 0
  • +
  • item 1
  • +
  • item 2
  • +
  • item 3
  • +
    +
    +
    +
    + +
    diff --git a/static/bower_components/iron-menu-behavior/demo/simple-menu.html b/static/bower_components/iron-menu-behavior/demo/simple-menu.html index cd1c7cf..307aa07 100644 --- a/static/bower_components/iron-menu-behavior/demo/simple-menu.html +++ b/static/bower_components/iron-menu-behavior/demo/simple-menu.html @@ -16,7 +16,8 @@ diff --git a/static/bower_components/iron-menu-behavior/demo/simple-menubar.html b/static/bower_components/iron-menu-behavior/demo/simple-menubar.html index ad38ecf..0d5da1f 100644 --- a/static/bower_components/iron-menu-behavior/demo/simple-menubar.html +++ b/static/bower_components/iron-menu-behavior/demo/simple-menubar.html @@ -16,7 +16,8 @@ - +

    Normal

    diff --git a/static/bower_components/paper-button/.bower.json b/static/bower_components/paper-button/.bower.json new file mode 100644 index 0000000..23b448b --- /dev/null +++ b/static/bower_components/paper-button/.bower.json @@ -0,0 +1,48 @@ +{ + "name": "paper-button", + "version": "1.0.3", + "description": "Material design button", + "authors": [ + "The Polymer Authors" + ], + "keywords": [ + "web-components", + "web-component", + "polymer", + "paper", + "button" + ], + "main": "paper-button.html", + "private": true, + "repository": { + "type": "git", + "url": "git://github.com/PolymerElements/paper-button" + }, + "license": "http://polymer.github.io/LICENSE.txt", + "homepage": "https://github.com/PolymerElements/paper-button", + "dependencies": { + "paper-ripple": "polymerelements/paper-ripple#^1.0.0", + "paper-material": "polymerelements/paper-material#^1.0.0", + "paper-behaviors": "polymerelements/paper-behaviors#^1.0.0", + "polymer": "Polymer/polymer#^1.0.0" + }, + "devDependencies": { + "iron-component-page": "polymerelements/iron-component-page#^1.0.0", + "test-fixture": "polymerelements/test-fixture#^1.0.0", + "iron-icon": "polymerelements/iron-icon#^1.0.0", + "iron-icons": "polymerelements/iron-icons#^1.0.0", + "iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0", + "paper-styles": "polymerelements/paper-styles#^1.0.0", + "web-component-tester": "*", + "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" + }, + "_release": "1.0.3", + "_resolution": { + "type": "version", + "tag": "v1.0.3", + "commit": "f50a40fa1bf3ab20aaad413769452ed69b14ef66" + }, + "_source": "git://github.com/PolymerElements/paper-button.git", + "_target": "*", + "_originalSource": "PolymerElements/paper-button" +} \ No newline at end of file diff --git a/static/bower_components/paper-button/.gitignore b/static/bower_components/paper-button/.gitignore new file mode 100644 index 0000000..8d4ae25 --- /dev/null +++ b/static/bower_components/paper-button/.gitignore @@ -0,0 +1 @@ +bower_components diff --git a/static/bower_components/paper-button/README.md b/static/bower_components/paper-button/README.md new file mode 100644 index 0000000..035b004 --- /dev/null +++ b/static/bower_components/paper-button/README.md @@ -0,0 +1,45 @@ +paper-button +============ + +Material Design: Buttons + +`paper-button` is a button. When the user touches the button, a ripple effect emanates +from the point of contact. It may be flat or raised. A raised button is styled with a +shadow. + +Example: +```html + flat button + raised button + No ripple effect +``` +You may use custom DOM in the button body to create a variety of buttons. For example, to +create a button with an icon and some text: + +```html + + + custom button content + +``` +## Styling + +Style the button with CSS as you would a normal DOM element. + +```css + /* make #my-button green with yellow text */ + #my-button { + background: green; + color: yellow; + } +``` +By default, the ripple is the same color as the foreground at 25% opacity. You may +customize the color using this selector: + +```css + /* make #my-button use a blue ripple instead of foreground color */ + #my-button::shadow paper-ripple { + color: blue; + } +``` +The opacity of the ripple is not customizable via CSS. diff --git a/static/bower_components/paper-button/bower.json b/static/bower_components/paper-button/bower.json new file mode 100644 index 0000000..371282e --- /dev/null +++ b/static/bower_components/paper-button/bower.json @@ -0,0 +1,39 @@ +{ + "name": "paper-button", + "version": "1.0.3", + "description": "Material design button", + "authors": [ + "The Polymer Authors" + ], + "keywords": [ + "web-components", + "web-component", + "polymer", + "paper", + "button" + ], + "main": "paper-button.html", + "private": true, + "repository": { + "type": "git", + "url": "git://github.com/PolymerElements/paper-button" + }, + "license": "http://polymer.github.io/LICENSE.txt", + "homepage": "https://github.com/PolymerElements/paper-button", + "dependencies": { + "paper-ripple": "polymerelements/paper-ripple#^1.0.0", + "paper-material": "polymerelements/paper-material#^1.0.0", + "paper-behaviors": "polymerelements/paper-behaviors#^1.0.0", + "polymer": "Polymer/polymer#^1.0.0" + }, + "devDependencies": { + "iron-component-page": "polymerelements/iron-component-page#^1.0.0", + "test-fixture": "polymerelements/test-fixture#^1.0.0", + "iron-icon": "polymerelements/iron-icon#^1.0.0", + "iron-icons": "polymerelements/iron-icons#^1.0.0", + "iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0", + "paper-styles": "polymerelements/paper-styles#^1.0.0", + "web-component-tester": "*", + "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" + } +} diff --git a/static/bower_components/paper-button/demo/index.html b/static/bower_components/paper-button/demo/index.html new file mode 100644 index 0000000..9b98fe2 --- /dev/null +++ b/static/bower_components/paper-button/demo/index.html @@ -0,0 +1,158 @@ + + + + + + + + + + + paper-button demo + + + + + + + + + + + +
    +
    +

    Flat

    +
    + button + colorful + disabled + noink + ok + cancel + +
    +
    + +
    +

    Raised

    +
    + button + colorful + disabled + noink + ok + cancel +
    +
    + +
    +

    Toggleable

    +
    + button + noink + colorful + colorful + ok + cancel +
    +
    + +
    +

    Color

    +
    + button + noink + colorful + colorful + ok + cancel +
    +
    +
    + + diff --git a/static/bower_components/paper-button/index.html b/static/bower_components/paper-button/index.html new file mode 100644 index 0000000..e871f17 --- /dev/null +++ b/static/bower_components/paper-button/index.html @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + diff --git a/static/bower_components/paper-button/paper-button.html b/static/bower_components/paper-button/paper-button.html new file mode 100644 index 0000000..7f5117b --- /dev/null +++ b/static/bower_components/paper-button/paper-button.html @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + + + + + diff --git a/static/bower_components/paper-button/test/index.html b/static/bower_components/paper-button/test/index.html new file mode 100644 index 0000000..07ed03c --- /dev/null +++ b/static/bower_components/paper-button/test/index.html @@ -0,0 +1,25 @@ + + + + + + + paper-button tests + + + + + + diff --git a/static/bower_components/paper-button/test/paper-button.html b/static/bower_components/paper-button/test/paper-button.html new file mode 100644 index 0000000..797688c --- /dev/null +++ b/static/bower_components/paper-button/test/paper-button.html @@ -0,0 +1,83 @@ + + + + + + paper-button basic tests + + + + + + + + + + + + + + + + + + + + diff --git a/static/bower_components/paper-card/.bower.json b/static/bower_components/paper-card/.bower.json new file mode 100644 index 0000000..1105f27 --- /dev/null +++ b/static/bower_components/paper-card/.bower.json @@ -0,0 +1,47 @@ +{ + "name": "paper-card", + "version": "1.0.3", + "description": "Material design piece of paper with unique related data", + "authors": [ + "The Polymer Authors" + ], + "keywords": [ + "web-components", + "polymer", + "card" + ], + "main": [ + "paper-card.html" + ], + "private": true, + "repository": { + "type": "git", + "url": "git://github.com/PolymerElements/paper-card.git" + }, + "license": "http://polymer.github.io/LICENSE.txt", + "homepage": "https://github.com/PolymerElements/paper-card", + "ignore": [], + "dependencies": { + "polymer": "Polymer/polymer#^1.1.0", + "paper-material": "PolymerElements/paper-material#^1.0.0" + }, + "devDependencies": { + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "test-fixture": "PolymerElements/test-fixture#^1.0.0", + "web-component-tester": "*", + "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", + "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0", + "paper-button": "PolymerElements/paper-button#^1.0.0", + "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", + "paper-styles": "PolymerElements/paper-styles#^1.0.0" + }, + "_release": "1.0.3", + "_resolution": { + "type": "version", + "tag": "v1.0.3", + "commit": "3e9793573b366f28a42342add24847e2dbe447d5" + }, + "_source": "git://github.com/PolymerElements/paper-card.git", + "_target": "*", + "_originalSource": "PolymerElements/paper-card" +} \ No newline at end of file diff --git a/static/bower_components/paper-card/.gitignore b/static/bower_components/paper-card/.gitignore new file mode 100644 index 0000000..fbe05fc --- /dev/null +++ b/static/bower_components/paper-card/.gitignore @@ -0,0 +1 @@ +bower_components/ diff --git a/static/bower_components/paper-card/README.md b/static/bower_components/paper-card/README.md new file mode 100644 index 0000000..db0d78b --- /dev/null +++ b/static/bower_components/paper-card/README.md @@ -0,0 +1,30 @@ +# paper-card + +Material Design: Cards + +`paper-card` is a container with a drop shadow. + +Example: +```html + +
    Some content
    +
    + Some action +
    +
    +``` + +### Accessibility +By default, the `aria-label` will be set to the value of the `heading` attribute. + +### Styling + +The following custom properties and mixins are available for styling: + +Custom property | Description | Default +----------------|-------------|---------- +`--paper-card-header-color` | The color of the header text | `#000` +`--paper-card-header` | Mixin applied to the card header section | `{}` +`--paper-card-content` | Mixin applied to the card content section| `{}` +`--paper-card-actions` | Mixin applied to the card action section | `{}` +`--paper-card` | Mixin applied to the card | `{}` diff --git a/static/bower_components/paper-card/bower.json b/static/bower_components/paper-card/bower.json new file mode 100644 index 0000000..84d9081 --- /dev/null +++ b/static/bower_components/paper-card/bower.json @@ -0,0 +1,38 @@ +{ + "name": "paper-card", + "version": "1.0.3", + "description": "Material design piece of paper with unique related data", + "authors": [ + "The Polymer Authors" + ], + "keywords": [ + "web-components", + "polymer", + "card" + ], + "main": [ + "paper-card.html" + ], + "private": true, + "repository": { + "type": "git", + "url": "git://github.com/PolymerElements/paper-card.git" + }, + "license": "http://polymer.github.io/LICENSE.txt", + "homepage": "https://github.com/PolymerElements/paper-card", + "ignore": [], + "dependencies": { + "polymer": "Polymer/polymer#^1.1.0", + "paper-material": "PolymerElements/paper-material#^1.0.0" + }, + "devDependencies": { + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "test-fixture": "PolymerElements/test-fixture#^1.0.0", + "web-component-tester": "*", + "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", + "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0", + "paper-button": "PolymerElements/paper-button#^1.0.0", + "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", + "paper-styles": "PolymerElements/paper-styles#^1.0.0" + } +} diff --git a/static/bower_components/paper-card/demo/index.html b/static/bower_components/paper-card/demo/index.html new file mode 100644 index 0000000..b5e3fdd --- /dev/null +++ b/static/bower_components/paper-card/demo/index.html @@ -0,0 +1,188 @@ + + + + + paper-card demo + + + + + + + + + + + + + + + + + + + +
    + + +
    +
    Cards are a convenient means of displaying content composed of different types of objects. +

    + Hurray! +
    +
    +
    + + + + +
    + Cards can have different shadows. +
    +
    + Decrease + Increase +
    +
    + + +
    + Lorem ipsum dolor sit amet, nec ad conceptam interpretaris, mea ne solet repudiandae. Laudem nostrud ei vim. Sapientem consequuntur usu ad, vel etiam philosophia ex, ad quidam option quo. Sed sale integre pericula ei, rebum adipiscing ius ea. +
    +
    + + + +
    +
    + + +
    + Lorem ipsum dolor sit amet, nec ad conceptam interpretaris, mea ne solet repudiandae. Laudem nostrud ei vim. Sapientem consequuntur usu ad, vel etiam philosophia ex, ad quidam option quo. Sed sale integre pericula ei, rebum adipiscing ius ea. +
    +
    + Nay + Yay! +
    +
    + + +
    + Lorem ipsum dolor sit amet, nec ad conceptam interpretaris, mea ne solet repudiandae. Laudem nostrud ei vim. Sapientem consequuntur usu ad, vel etiam philosophia ex, ad quidam option quo. Sed sale integre pericula ei, rebum adipiscing ius ea. +
    +
    + No + Yes +
    +
    + + +
    + Lorem ipsum dolor sit amet, nec ad conceptam interpretaris, mea ne solet repudiandae. Laudem nostrud ei vim. Sapientem consequuntur usu ad, vel etiam philosophia ex, ad quidam option quo. Sed sale integre pericula ei, rebum adipiscing ius ea. +
    +
    + Action +
    +
    + Moar action! +
    +
    + + +
    +
    :)
    +
    +
    Title
    +
    subtitle
    +
    +
    + + + + +
    +
    Usu eu novum principes, vel quodsi aliquip ea.
    +
    Ut labores minimum atomorum pro. Laudem tibique ut has.
    +
    Usu eu novum principes, vel quodsi aliquip ea.
    +
    +
    +
    + + + + + diff --git a/static/bower_components/paper-card/index.html b/static/bower_components/paper-card/index.html new file mode 100644 index 0000000..fab428a --- /dev/null +++ b/static/bower_components/paper-card/index.html @@ -0,0 +1,28 @@ + + + + + + + + + paper-card + + + + + + + + + + + diff --git a/static/bower_components/paper-card/paper-card.html b/static/bower_components/paper-card/paper-card.html new file mode 100644 index 0000000..128cb8d --- /dev/null +++ b/static/bower_components/paper-card/paper-card.html @@ -0,0 +1,178 @@ + + + + + + + + + + + + + diff --git a/static/bower_components/paper-card/test/basic.html b/static/bower_components/paper-card/test/basic.html new file mode 100644 index 0000000..4869b55 --- /dev/null +++ b/static/bower_components/paper-card/test/basic.html @@ -0,0 +1,57 @@ + + + + + + paper-card a11y tests + + + + + + + + + + + + + + + + + + + + + diff --git a/static/bower_components/paper-card/test/index.html b/static/bower_components/paper-card/test/index.html new file mode 100644 index 0000000..3f65271 --- /dev/null +++ b/static/bower_components/paper-card/test/index.html @@ -0,0 +1,25 @@ + + + + + + + paper-card tests + + + + + + diff --git a/static/bower_components/paper-drawer-panel/.bower.json b/static/bower_components/paper-drawer-panel/.bower.json index e49fa46..cb2759a 100644 --- a/static/bower_components/paper-drawer-panel/.bower.json +++ b/static/bower_components/paper-drawer-panel/.bower.json @@ -1,6 +1,6 @@ { "name": "paper-drawer-panel", - "version": "1.0.2", + "version": "1.0.3", "description": "A responsive drawer panel", "authors": [ "The Polymer Authors" @@ -30,13 +30,13 @@ "web-component-tester": "*", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "_release": "1.0.2", + "_release": "1.0.3", "_resolution": { "type": "version", - "tag": "v1.0.2", - "commit": "691739c877914f7231eaca16b724bdca295dfe8d" + "tag": "v1.0.3", + "commit": "92713b61eb8eec378db63af61b73341453b8180d" }, "_source": "git://github.com/PolymerElements/paper-drawer-panel.git", - "_target": "^1.0.0", + "_target": "*", "_originalSource": "PolymerElements/paper-drawer-panel" } \ No newline at end of file diff --git a/static/bower_components/paper-drawer-panel/bower.json b/static/bower_components/paper-drawer-panel/bower.json index f87cca9..76a2f0c 100644 --- a/static/bower_components/paper-drawer-panel/bower.json +++ b/static/bower_components/paper-drawer-panel/bower.json @@ -1,6 +1,6 @@ { "name": "paper-drawer-panel", - "version": "1.0.2", + "version": "1.0.3", "description": "A responsive drawer panel", "authors": [ "The Polymer Authors" diff --git a/static/bower_components/paper-drawer-panel/demo/index.html b/static/bower_components/paper-drawer-panel/demo/index.html index f69df9f..528129f 100644 --- a/static/bower_components/paper-drawer-panel/demo/index.html +++ b/static/bower_components/paper-drawer-panel/demo/index.html @@ -16,10 +16,8 @@ - - - - + + diff --git a/static/bower_components/paper-drawer-panel/paper-drawer-panel.css b/static/bower_components/paper-drawer-panel/paper-drawer-panel.css index ab7c568..747f0bb 100644 --- a/static/bower_components/paper-drawer-panel/paper-drawer-panel.css +++ b/static/bower_components/paper-drawer-panel/paper-drawer-panel.css @@ -6,8 +6,8 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt - */ + :host { display: block; position: absolute; @@ -24,16 +24,16 @@ iron-selector > #drawer { left: 0; height: 100%; background-color: white; - will-change: transform; - box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; @apply(--paper-drawer-panel-drawer-container); } .transition > #drawer { - transition: -webkit-transform ease-in-out 0.3s, width ease-in-out 0.3s; - transition: transform ease-in-out 0.3s, width ease-in-out 0.3s; + transition: -webkit-transform ease-in-out 0.3s, width ease-in-out 0.3s, visibility 0.3s; + transition: transform ease-in-out 0.3s, width ease-in-out 0.3s, visibility 0.3s; } .left-drawer > #drawer { @@ -88,6 +88,10 @@ iron-selector > #main { background-color: rgba(0, 0, 0, 0.3); } +.narrow-layout > #drawer { + will-change: transform; +} + .narrow-layout > #drawer.iron-selected { box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15); } @@ -107,19 +111,24 @@ iron-selector > #main { .right-drawer.narrow-layout > #drawer:not(.iron-selected) { left: auto; + visibility: hidden; + -webkit-transform: translateX(100%); transform: translateX(100%); } +.right-drawer.narrow-layout.dragging > #drawer:not(.iron-selected), +.right-drawer.narrow-layout.peeking > #drawer:not(.iron-selected) { + visibility: visible; +} + .narrow-layout > #main { - left: 0 !important; padding: 0; } .right-drawer.narrow-layout > #main { left: 0; right: 0; - padding: 0; } .narrow-layout > #main:not(.iron-selected) > #scrim, @@ -133,8 +142,9 @@ iron-selector > #main { min-height: 100%; left: 0; right: 0; - box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; } iron-selector:not(.narrow-layout) #main ::content [paper-drawer-toggle] { diff --git a/static/bower_components/paper-drawer-panel/paper-drawer-panel.html b/static/bower_components/paper-drawer-panel/paper-drawer-panel.html index 148cfeb..f4cb1fb 100644 --- a/static/bower_components/paper-drawer-panel/paper-drawer-panel.html +++ b/static/bower_components/paper-drawer-panel/paper-drawer-panel.html @@ -74,29 +74,31 @@
    Main panel...
    -Styling paper-drawer-panel: +Styling `paper-drawer-panel` To change the main container: - paper-drawer-panel { - --paper-drawer-panel-main-container: { - background-color: gray; - }; - } + + paper-drawer-panel { + --paper-drawer-panel-main-container: { + background-color: gray; + }; + } To change the drawer container when it's in the left side: - paper-drawer-panel { - --paper-drawer-panel-left-drawer-container: { - background-color: white; - }; - } + + paper-drawer-panel { + --paper-drawer-panel-left-drawer-container: { + background-color: white; + }; + } To change the drawer container when it's in the right side: - paper-drawer-panel { - --paper-drawer-panel-right-drawer-container: { - background-color: white; - }; - } + paper-drawer-panel { + --paper-drawer-panel-right-drawer-container: { + background-color: white; + }; + } @group Paper elements @element paper-drawer-panel @@ -116,7 +118,7 @@ @@ -167,17 +169,24 @@ */ /** - * Fired when the selected panel changes. + * Fired when the a panel is selected. * * Listening for this event is an alternative to observing changes in the `selected` attribute. - * This event is fired both when a panel is selected and deselected. - * The `isSelected` detail property contains the selection state. + * This event is fired both when a panel is selected. * - * @event paper-select {{isSelected: boolean, item: Object}} detail - - * isSelected: True for selection and false for deselection. + * @event iron-select {{item: Object}} detail - * item: The panel that the event refers to. */ + /** + * Fired when a panel is deselected. + * + * Listening for this event is an alternative to observing changes in the `selected` attribute. + * This event is fired both when a panel is deselected. + * + * @event iron-deselect {{item: Object}} detail - + * item: The panel that the event refers to. + */ properties: { /** @@ -376,13 +385,14 @@ this.transition = true; }, - _computeIronSelectorClass: function(narrow, transition, dragging, rightDrawer) { + _computeIronSelectorClass: function(narrow, transition, dragging, rightDrawer, peeking) { return classNames({ dragging: dragging, 'narrow-layout': narrow, 'right-drawer': rightDrawer, 'left-drawer': !rightDrawer, - transition: transition + transition: transition, + peeking: peeking }); }, @@ -397,8 +407,6 @@ if (rightDrawer) { style += 'right:' + (narrow ? '' : drawerWidth) + ';'; - } else { - style += 'right:;'; } return style; @@ -412,19 +420,19 @@ return !narrow || disableEdgeSwipe; }, - _onTrack: function(e) { + _onTrack: function(event) { if (sharedPanel && this !== sharedPanel) { return; } - switch (e.detail.state) { + switch (event.detail.state) { case 'start': - this._trackStart(e); + this._trackStart(event); break; case 'track': - this._trackX(e); + this._trackX(event); break; case 'end': - this._trackEnd(e); + this._trackEnd(event); break; } @@ -441,8 +449,8 @@ this.fire('paper-responsive-change', {narrow: this.narrow}); }, - _onQueryMatchesChanged: function(e) { - this._responsiveChange(e.detail.value); + _onQueryMatchesChanged: function(event) { + this._responsiveChange(event.detail.value); }, _forceNarrowChanged: function() { @@ -472,9 +480,11 @@ } }, - _downHandler: function(e) { - if (!this.dragging && this._isMainSelected() && this._isEdgeTouch(e) && !sharedPanel) { + _downHandler: function(event) { + if (!this.dragging && this._isMainSelected() && this._isEdgeTouch(event) && !sharedPanel) { this._startEdgePeek(); + // cancel selection + event.preventDefault(); // grab this panel sharedPanel = this; } @@ -486,8 +496,8 @@ sharedPanel = null; }, - _onTap: function(e) { - var targetElement = Polymer.dom(e).localTarget; + _onTap: function(event) { + var targetElement = Polymer.dom(event).localTarget; var isTargetToggleElement = targetElement && this.drawerToggleAttribute && targetElement.hasAttribute(this.drawerToggleAttribute); @@ -497,8 +507,8 @@ } }, - _isEdgeTouch: function(e) { - var x = e.detail.x; + _isEdgeTouch: function(event) { + var x = event.detail.x; return !this.disableEdgeSwipe && this._swipeAllowed() && (this.rightDrawer ? @@ -532,9 +542,9 @@ } }, - _trackX: function(e) { + _trackX: function(event) { if (this.dragging) { - var dx = e.detail.dx; + var dx = event.detail.dx; if (this.peeking) { if (Math.abs(dx) <= this.edgeSwipeSensitivity) { @@ -548,9 +558,9 @@ } }, - _trackEnd: function(e) { + _trackEnd: function(event) { if (this.dragging) { - var xDirection = e.detail.dx > 0; + var xDirection = event.detail.dx > 0; this._setDragging(false); this.transition = true; @@ -575,13 +585,7 @@ }, _moveDrawer: function(translateX) { - var s = this.$.drawer.style; - - if (this.hasTransform) { - s.transform = this._transformForTranslateX(translateX); - } else { - s.webkitTransform = this._transformForTranslateX(translateX); - } + this.transform(this._transformForTranslateX(translateX), this.$.drawer); } }); diff --git a/static/bower_components/paper-fab/.bower.json b/static/bower_components/paper-fab/.bower.json index 15e922a..52e6c68 100644 --- a/static/bower_components/paper-fab/.bower.json +++ b/static/bower_components/paper-fab/.bower.json @@ -1,6 +1,6 @@ { "name": "paper-fab", - "version": "1.0.2", + "version": "1.0.3", "description": "A material design floating action button", "authors": [ "The Polymer Authors" @@ -36,13 +36,13 @@ "web-component-tester": "*", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "_release": "1.0.2", + "_release": "1.0.3", "_resolution": { "type": "version", - "tag": "v1.0.2", - "commit": "59d2f77f456271f1ae4059b92d83ba7655fb1580" + "tag": "v1.0.3", + "commit": "0371767ba859a842ffd07dfbdf574206c1d7294f" }, "_source": "git://github.com/PolymerElements/paper-fab.git", - "_target": "^1.0.0", + "_target": "*", "_originalSource": "PolymerElements/paper-fab" } \ No newline at end of file diff --git a/static/bower_components/paper-fab/bower.json b/static/bower_components/paper-fab/bower.json index f3738a2..fe8ce02 100644 --- a/static/bower_components/paper-fab/bower.json +++ b/static/bower_components/paper-fab/bower.json @@ -1,6 +1,6 @@ { "name": "paper-fab", - "version": "1.0.2", + "version": "1.0.3", "description": "A material design floating action button", "authors": [ "The Polymer Authors" diff --git a/static/bower_components/paper-fab/demo/index.html b/static/bower_components/paper-fab/demo/index.html index 3bd9935..8f4e615 100644 --- a/static/bower_components/paper-fab/demo/index.html +++ b/static/bower_components/paper-fab/demo/index.html @@ -18,7 +18,7 @@ paper-fab demo - + @@ -58,8 +58,8 @@ - -
    + +

    Enabled

    diff --git a/static/bower_components/paper-header-panel/.bower.json b/static/bower_components/paper-header-panel/.bower.json new file mode 100644 index 0000000..70e807b --- /dev/null +++ b/static/bower_components/paper-header-panel/.bower.json @@ -0,0 +1,44 @@ +{ + "name": "paper-header-panel", + "version": "1.0.5", + "description": "A header and content wrapper for layout with headers", + "authors": [ + "The Polymer Authors" + ], + "keywords": [ + "web-components", + "polymer", + "layout" + ], + "main": [ + "paper-header-panel.html" + ], + "repository": { + "type": "git", + "url": "git://github.com/PolymerElements/paper-header-panel.git" + }, + "private": true, + "license": "http://polymer.github.io/LICENSE.txt", + "homepage": "https://github.com/PolymerElements/paper-header-panel", + "ignore": [], + "dependencies": { + "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", + "polymer": "Polymer/polymer#^1.0.0" + }, + "devDependencies": { + "web-component-tester": "*", + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "test-fixture": "PolymerElements/test-fixture#^1.0.0", + "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", + "paper-styles": "PolymerElements/paper-styles#^1.0.0" + }, + "_release": "1.0.5", + "_resolution": { + "type": "version", + "tag": "v1.0.5", + "commit": "830cb114d6aacac721f9d4365dd6fe1883df39d0" + }, + "_source": "git://github.com/PolymerElements/paper-header-panel.git", + "_target": "*", + "_originalSource": "PolymerElements/paper-header-panel" +} \ No newline at end of file diff --git a/static/bower_components/paper-header-panel/.gitignore b/static/bower_components/paper-header-panel/.gitignore new file mode 100644 index 0000000..fbe05fc --- /dev/null +++ b/static/bower_components/paper-header-panel/.gitignore @@ -0,0 +1 @@ +bower_components/ diff --git a/static/bower_components/paper-header-panel/README.md b/static/bower_components/paper-header-panel/README.md new file mode 100644 index 0000000..90467b2 --- /dev/null +++ b/static/bower_components/paper-header-panel/README.md @@ -0,0 +1,98 @@ +# paper-header-panel + +`paper-header-panel` contains a header section and a content panel section. + +__Important:__ The `paper-header-panel` will not display if its parent does not have a height. + +Using layout classes, you can make the `paper-header-panel` fill the screen + + + + +
    Hello World!
    +
    +
    + + +Special support is provided for scrolling modes when one uses a paper-toolbar or equivalent for the +header section. + +Example: + + + Header +
    Content goes here...
    +
    + + +If you want to use other than `paper-toolbar` for the header, add `paper-header` class to that +element. + +Example: + + +
    Header
    +
    Content goes here...
    +
    + +To have the content fit to the main area, use the `fit` class. + + +
    standard
    +
    content fits 100% below the header
    +
    + +## Modes + +Controls header and scrolling behavior. Options are `standard`, `seamed`, `waterfall`, `waterfall-tall`, `scroll` and `cover`. Default is `standard`. + +Mode | Description +----------------|------------- +`standard` | The header is a step above the panel. The header will consume the panel at the point of entry, preventing it from passing through to the opposite side. +`seamed` | The header is presented as seamed with the panel. +`waterfall` | Similar to standard mode, but header is initially presented as seamed with panel, but then separates to form the step. +`waterfall-tall` | The header is initially taller (`tall` class is added to the header). As the user scrolls, the header separates (forming an edge) while condensing (`tall` class is removed from the header). +`scroll` | The header keeps its seam with the panel, and is pushed off screen. +`cover` | The panel covers the whole `paper-header-panel` including the header. This allows user to style the panel in such a way that the panel is partially covering the header. + +Example: + + +
    standard
    +
    content fits 100% below the header
    +
    + +## Styling header panel: + +To change the shadow that shows up underneath the header: + + paper-header-panel { + --paper-header-panel-shadow: { + height: 6px; + bottom: -6px; + box-shadow: inset 0px 5px 6px -3px rgba(0, 0, 0, 0.4); + }; + } +To change the panel container in different modes: + + paper-slider { + --paper-header-panel-standard-container: { + border: 1px solid gray; + }; + --paper-header-panel-seamed-container: { + border: 1px solid gray; + }; + --paper-header-panel-waterfall-container: { + border: 1px solid gray; + }; + --paper-header-panel-waterfall-tall-container: { + border: 1px solid gray; + }; + --paper-header-panel-scroll-container: { + border: 1px solid gray; + }; + --paper-header-panel-cover-container: { + border: 1px solid gray; + }; + } + diff --git a/static/bower_components/paper-header-panel/bower.json b/static/bower_components/paper-header-panel/bower.json new file mode 100644 index 0000000..5a41482 --- /dev/null +++ b/static/bower_components/paper-header-panel/bower.json @@ -0,0 +1,35 @@ +{ + "name": "paper-header-panel", + "version": "1.0.5", + "description": "A header and content wrapper for layout with headers", + "authors": [ + "The Polymer Authors" + ], + "keywords": [ + "web-components", + "polymer", + "layout" + ], + "main": [ + "paper-header-panel.html" + ], + "repository": { + "type": "git", + "url": "git://github.com/PolymerElements/paper-header-panel.git" + }, + "private": true, + "license": "http://polymer.github.io/LICENSE.txt", + "homepage": "https://github.com/PolymerElements/paper-header-panel", + "ignore": [], + "dependencies": { + "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", + "polymer": "Polymer/polymer#^1.0.0" + }, + "devDependencies": { + "web-component-tester": "*", + "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", + "test-fixture": "PolymerElements/test-fixture#^1.0.0", + "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", + "paper-styles": "PolymerElements/paper-styles#^1.0.0" + } +} diff --git a/static/bower_components/paper-header-panel/demo/index.html b/static/bower_components/paper-header-panel/demo/index.html new file mode 100644 index 0000000..9820ddc --- /dev/null +++ b/static/bower_components/paper-header-panel/demo/index.html @@ -0,0 +1,148 @@ + + + + + + + paper-header-panel demo + + + + + + + + + + +
    + +
    standard
    +
    +
    + + +
    seamed
    +
    +
    + + +
    scroll
    +
    +
    + + +
    waterfall
    +
    +
    + + +
    waterfall-tall
    +
    +
    + + +
    waterfall-tall
    tall-class: medium-tall
    +
    +
    + + +
    cover
    +
    +
    +
    + + + diff --git a/static/bower_components/paper-header-panel/hero.svg b/static/bower_components/paper-header-panel/hero.svg new file mode 100644 index 0000000..60c7488 --- /dev/null +++ b/static/bower_components/paper-header-panel/hero.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/bower_components/paper-header-panel/index.html b/static/bower_components/paper-header-panel/index.html new file mode 100644 index 0000000..8d0771c --- /dev/null +++ b/static/bower_components/paper-header-panel/index.html @@ -0,0 +1,36 @@ + + + + + + + + + paper-header-panel + + + + + + + + + + + + + + + diff --git a/static/bower_components/paper-header-panel/paper-header-panel.css b/static/bower_components/paper-header-panel/paper-header-panel.css new file mode 100644 index 0000000..78ebd0f --- /dev/null +++ b/static/bower_components/paper-header-panel/paper-header-panel.css @@ -0,0 +1,119 @@ +/** +@license +Copyright (c) 2015 The Polymer Project Authors. All rights reserved. +This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE +The complete set of authors may be found at http://polymer.github.io/AUTHORS +The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS +Code distributed by Google as part of the polymer project is also +subject to an additional IP rights grant found at http://polymer.github.io/PATENTS +*/ + +:host { + --paper-header-panel-shadow: { + height: 6px; + bottom: -6px; + box-shadow: inset 0px 5px 6px -3px rgba(0, 0, 0, 0.4); + }; + + @apply(--layout-vertical); + + position: relative; + height: 100%; +} + +#mainContainer { + @apply(--layout-flex); + + position: relative; + overflow-y: auto; + overflow-x: hidden; + -webkit-overflow-scrolling: touch; +} + +#mainPanel { + @apply(--layout-vertical); + @apply(--layout-flex); + + position: relative; +} + +/* + * mode: scroll + */ +:host([mode=scroll]) #mainContainer { + @apply(--paper-header-panel-scroll-container); + + overflow: visible; +} + +:host([mode=scroll]) { + overflow-y: auto; + overflow-x: hidden; + -webkit-overflow-scrolling: touch; +} + +/* + * mode: cover + */ +:host([mode=cover]) #mainContainer { + @apply(--paper-header-panel-cover-container); + + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; +} + +:host([mode=cover]) #mainPanel { + position: static; +} + +/* + * mode: standard + */ +:host([mode=standard]) #mainContainer { + @apply(--paper-header-panel-standard-container); +} + +/* + * mode: seamed + */ +:host([mode=seamed]) #mainContainer { + @apply(--paper-header-panel-seamed-container); +} + + +/* + * mode: waterfall + */ +:host([mode=waterfall]) #mainContainer { + @apply(--paper-header-panel-waterfall-container); +} + +/* + * mode: waterfall-tall + */ +:host([mode=waterfall-tall]) #mainContainer { + @apply(--paper-header-panel-waterfall-tall-container); +} + +#dropShadow { + @apply(--paper-header-panel-shadow); + + position: absolute; + top: 0; + left: 0; + right: 0; + height: 6px; + pointer-events: none; + + -webkit-transition: opacity 0.5s; + transition: opacity 0.5s; + + opacity: 0; +} + +#dropShadow.has-shadow { + opacity: 1; +} diff --git a/static/bower_components/paper-header-panel/paper-header-panel.html b/static/bower_components/paper-header-panel/paper-header-panel.html new file mode 100644 index 0000000..775a4e8 --- /dev/null +++ b/static/bower_components/paper-header-panel/paper-header-panel.html @@ -0,0 +1,390 @@ + + + + + + + + + + + + + + + + diff --git a/static/bower_components/paper-header-panel/test/basic.html b/static/bower_components/paper-header-panel/test/basic.html new file mode 100644 index 0000000..46e6d5a --- /dev/null +++ b/static/bower_components/paper-header-panel/test/basic.html @@ -0,0 +1,156 @@ + + + + + + paper-header-panel tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/bower_components/paper-header-panel/test/index.html b/static/bower_components/paper-header-panel/test/index.html new file mode 100644 index 0000000..ce8727d --- /dev/null +++ b/static/bower_components/paper-header-panel/test/index.html @@ -0,0 +1,34 @@ + + + + + + paper-header-panel tests + + + + + + + + + + + + + + diff --git a/static/bower_components/paper-icon-button/.bower.json b/static/bower_components/paper-icon-button/.bower.json index 71c8d45..b8f8631 100644 --- a/static/bower_components/paper-icon-button/.bower.json +++ b/static/bower_components/paper-icon-button/.bower.json @@ -1,7 +1,7 @@ { "name": "paper-icon-button", "private": true, - "version": "1.0.2", + "version": "1.0.3", "license": "http://polymer.github.io/LICENSE.txt", "description": "A material design icon button", "main": "paper-icon-button.html", @@ -15,6 +15,10 @@ "icon", "control" ], + "repository": { + "type": "git", + "url": "git://github.com/PolymerElements/paper-icon-button.git" + }, "dependencies": { "iron-flex-layout": "polymerelements/iron-flex-layout#^1.0.0", "iron-icon": "polymerelements/iron-icon#^1.0.0", @@ -31,13 +35,13 @@ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, "homepage": "https://github.com/PolymerElements/paper-icon-button", - "_release": "1.0.2", + "_release": "1.0.3", "_resolution": { "type": "version", - "tag": "v1.0.2", - "commit": "b22ade2080f2527760eae41e4700c52d4689a866" + "tag": "v1.0.3", + "commit": "9f183bdae3ff419aeae78a51a05fcc4d0100e5a3" }, "_source": "git://github.com/PolymerElements/paper-icon-button.git", - "_target": "^1.0.0", + "_target": "*", "_originalSource": "PolymerElements/paper-icon-button" } \ No newline at end of file diff --git a/static/bower_components/paper-icon-button/bower.json b/static/bower_components/paper-icon-button/bower.json index 6886757..f7fe35c 100644 --- a/static/bower_components/paper-icon-button/bower.json +++ b/static/bower_components/paper-icon-button/bower.json @@ -1,7 +1,7 @@ { "name": "paper-icon-button", "private": true, - "version": "1.0.2", + "version": "1.0.3", "license": "http://polymer.github.io/LICENSE.txt", "description": "A material design icon button", "main": "paper-icon-button.html", @@ -15,6 +15,10 @@ "icon", "control" ], + "repository": { + "type": "git", + "url": "git://github.com/PolymerElements/paper-icon-button.git" + }, "dependencies": { "iron-flex-layout": "polymerelements/iron-flex-layout#^1.0.0", "iron-icon": "polymerelements/iron-icon#^1.0.0", diff --git a/static/bower_components/paper-icon-button/demo/index.html b/static/bower_components/paper-icon-button/demo/index.html index cbe6795..c71fac6 100644 --- a/static/bower_components/paper-icon-button/demo/index.html +++ b/static/bower_components/paper-icon-button/demo/index.html @@ -15,7 +15,7 @@ - + @@ -86,9 +86,9 @@ - + -
    +

    Enabled

    diff --git a/static/bower_components/paper-icon-button/paper-icon-button.html b/static/bower_components/paper-icon-button/paper-icon-button.html index f4164ce..2da1f5c 100644 --- a/static/bower_components/paper-icon-button/paper-icon-button.html +++ b/static/bower_components/paper-icon-button/paper-icon-button.html @@ -77,6 +77,7 @@ position: relative; padding: 8px; outline: none; + -webkit-tap-highlight-color: rgba(0,0,0,0); -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; diff --git a/static/bower_components/paper-item/.bower.json b/static/bower_components/paper-item/.bower.json index 00391bb..42a599e 100644 --- a/static/bower_components/paper-item/.bower.json +++ b/static/bower_components/paper-item/.bower.json @@ -1,6 +1,6 @@ { "name": "paper-item", - "version": "1.0.1", + "version": "1.0.2", "description": "A material-design styled list item", "authors": [ "The Polymer Authors" @@ -37,13 +37,13 @@ "web-component-tester": "*", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "_release": "1.0.1", + "_release": "1.0.2", "_resolution": { "type": "version", - "tag": "v1.0.1", - "commit": "645ebae475ab4fc28698da253ccc3aa2c48341d7" + "tag": "v1.0.2", + "commit": "209d000bd2e99d9b31cfc996bbc5b0fc554be21d" }, "_source": "git://github.com/PolymerElements/paper-item.git", - "_target": "^1.0.0", + "_target": "*", "_originalSource": "PolymerElements/paper-item" } \ No newline at end of file diff --git a/static/bower_components/paper-item/bower.json b/static/bower_components/paper-item/bower.json index f077268..bbfec78 100644 --- a/static/bower_components/paper-item/bower.json +++ b/static/bower_components/paper-item/bower.json @@ -1,6 +1,6 @@ { "name": "paper-item", - "version": "1.0.1", + "version": "1.0.2", "description": "A material-design styled list item", "authors": [ "The Polymer Authors" diff --git a/static/bower_components/paper-item/demo/index.html b/static/bower_components/paper-item/demo/index.html index cdedb31..88dab60 100644 --- a/static/bower_components/paper-item/demo/index.html +++ b/static/bower_components/paper-item/demo/index.html @@ -73,7 +73,7 @@ } - +

    Single line items

    @@ -127,22 +127,22 @@

    Avatar with text and icon

    Alphonso
    - +
    Andrews
    - +
    Angela
    - +
    Lorem
    - +
    @@ -179,22 +179,22 @@

    Control with text and icon

    Alphonso
    - +
    Andrews
    - +
    Angela
    - +
    Lorem
    - +
    diff --git a/static/bower_components/paper-material/.bower.json b/static/bower_components/paper-material/.bower.json index 1933706..da7b36e 100644 --- a/static/bower_components/paper-material/.bower.json +++ b/static/bower_components/paper-material/.bower.json @@ -1,6 +1,6 @@ { "name": "paper-material", - "version": "1.0.0", + "version": "1.0.2", "description": "A material design container that looks like a lifted sheet of paper", "private": true, "authors": [ @@ -33,11 +33,11 @@ "web-component-tester": "*", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "_release": "1.0.0", + "_release": "1.0.2", "_resolution": { "type": "version", - "tag": "v1.0.0", - "commit": "bd769d2b8c4f9ab000aee22582d76b5935793dc1" + "tag": "v1.0.2", + "commit": "3f41d6dd776cf5bb35d29b44d1cce4981b791188" }, "_source": "git://github.com/polymerelements/paper-material.git", "_target": "^1.0.0", diff --git a/static/bower_components/paper-material/bower.json b/static/bower_components/paper-material/bower.json index e6f78bc..f1051fc 100644 --- a/static/bower_components/paper-material/bower.json +++ b/static/bower_components/paper-material/bower.json @@ -1,6 +1,6 @@ { "name": "paper-material", - "version": "1.0.0", + "version": "1.0.2", "description": "A material design container that looks like a lifted sheet of paper", "private": true, "authors": [ diff --git a/static/bower_components/paper-material/demo/index.html b/static/bower_components/paper-material/demo/index.html index 864f696..cc5bf50 100644 --- a/static/bower_components/paper-material/demo/index.html +++ b/static/bower_components/paper-material/demo/index.html @@ -24,7 +24,7 @@ - +