Skip to content

Commit 3ee3c39

Browse files
committed
Add "powered by" to footer
1 parent daa3b6a commit 3ee3c39

File tree

5 files changed

+63
-25
lines changed

5 files changed

+63
-25
lines changed

addon/components/docs-svg-icon/component.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import layout from './template';
44
export default Component.extend({
55
layout,
66

7-
classNames: 'docs-svg-icon'
7+
tagName: '',
8+
height: 16,
9+
width: 16,
10+
811

912
}).reopenClass({
1013

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
.docs-svg-icon {
2-
display: inline-flex;
3-
align-self: center;
4-
position: relative;
5-
height: 1em;
6-
width: 1em;
7-
8-
svg {
9-
height: 100%;
10-
width: 100%;
11-
12-
// align with the baseline
13-
bottom: -0.125em;
14-
position: absolute;
15-
16-
&, * {
17-
fill: currentColor;
18-
}
2+
&, * {
3+
fill: currentColor;
194
}
205
}
6+
7+
// .docs-svg-icon {
8+
// display: inline-flex;
9+
// align-self: center;
10+
// position: relative;
11+
// height: 1em;
12+
// width: 1em;
13+
//
14+
// svg {
15+
// height: 100%;
16+
// width: 100%;
17+
//
18+
// // align with the baseline
19+
// bottom: -0.125em;
20+
// position: absolute;
21+
//
22+
// &, * {
23+
// fill: currentColor;
24+
// }
25+
// }
26+
// }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{{svg-jar icon}}
1+
{{svg-jar icon height=height width=width class='docs-svg-icon'}}

addon/components/docs-viewer/x-nav/styles.scss

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,36 @@
5555
}
5656

5757
&-footer {
58-
padding: 20px;
58+
padding: 14px;
5959
text-align: center;
60-
box-shadow: 0 0px 6px 3px rgba(0, 0, 0, 0.1);
60+
box-shadow: 0 0px 6px 1px rgba(0, 0, 0, 0.1);
6161
}
6262

6363
&-footer-link {
64-
opacity: 0.4;
64+
opacity: 0.25;
65+
color: inherit;
66+
text-decoration: none;
6567

6668
&:hover {
6769
opacity: 1;
6870
}
6971
}
72+
73+
&-footer-powered-by {
74+
font-size: 11px;
75+
margin-top: 6px;
76+
margin-bottom: 0;
77+
color: #bbb;
78+
font-weight: 500;
79+
}
80+
81+
&-footer-powered-by-link {
82+
color: inherit;
83+
text-decoration: none;
84+
transition: opacity 0.15s;
85+
86+
&:hover {
87+
color: #444;
88+
}
89+
}
7090
}

addon/components/docs-viewer/x-nav/template.hbs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,16 @@
3636
</div>
3737

3838
<div class='docs-viewer__nav-footer'>
39-
<a href={{packageJson.repository}} class='docs-viewer__nav-footer-link'>
40-
{{svg-jar 'github' width=20 height=20}}
41-
</a>
39+
<div>
40+
<a href={{packageJson.repository}} class='docs-viewer__nav-footer-link'>
41+
{{svg-jar 'github' width=28 height=28}}
42+
</a>
43+
</div>
44+
<div>
45+
<p class='docs-viewer__nav-footer-powered-by'>Powered by
46+
<a class='docs-viewer__nav-footer-powered-by-link' href="https://github.com/ember-learn/ember-cli-addon-docs">
47+
AddonDocs
48+
</a>
49+
</p>
50+
</div>
4251
</div>

0 commit comments

Comments
 (0)