-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpx-sass-doc-header.html
77 lines (64 loc) · 2.76 KB
/
px-sass-doc-header.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!--
Copyright (c) 2018, General Electric
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="import" href="../polymer/polymer-element.html"/>
<link rel="import" href="../px-icon-set/px-icon-set-navigation.html"/>
<link rel="import" href="../px-icon-set/px-icon.html"/>
<link rel="import" href="css/px-sass-doc-viewer-styles.html"/>
<link rel="import" href="css/px-demo-styles.html"/>
<!--
Element providing the introductory header information for Sass modules. Is used inside px-sass-doc container element.
##### Usage
<px-sass-doc-header
module-name="px-toggle-design"
module-description="Module providing design for toggles."
</px-sass-doc-header>
@element px-sass-doc-header
@blurb Element providing the introductory header information for px-sass-doc elements.
@homepage index.html
@demo index.html
-->
<dom-module id="px-sass-doc-header">
<template>
<style include="px-sass-doc-viewer-styles"></style>
<style include="px-demo-styles"></style>
<section class="demo-background--base">
<div class="demo-layout--center demo-u-pb+++ u-pt++ text--shadow">
<a class="actionable flex flex--right flex--middle" href="https://github.com/PredixDev/[[moduleName]]" target="_new">
<px-icon class="menu__open u-mr--" icon="px-nav:new-window"></px-icon>View on Github
</a>
<h1 class="delta">[[moduleName]]</h1>
<p class="demo-text-width--max">
[[moduleDescription]]
</p>
<div class="flex">
<img class="u-mr--" src$="https://img.shields.io/github/tag/predixdev/[[moduleName]].svg?style=flat-square&label=bower" alt="Bower" onerror="this.style.display='none'" />
<img class="u-mr--" src$="https://img.shields.io/github/issues-raw/PredixDev/[[moduleName]].svg?style=flat-square" alt="Issues" onerror="this.style.display='none'" />
</div>
</div>
</section>
</template>
</dom-module>
<script>
class PxSassDocHeader extends Polymer.Element {
static get is() { return 'px-sass-doc-header'; }
static get properties() {
return {
/** Name of the Sass module. */
moduleName: String,
/** Description of the Sass module. */
moduleDescription: String
};
}
}
customElements.define('px-sass-doc-header', PxSassDocHeader);
</script>