feat(aio): add footer background
This commit is contained in:
parent
9d37d86223
commit
7c2ce296d3
@ -9,7 +9,7 @@ export class AppComponent {
|
|||||||
wolves = 0;
|
wolves = 0;
|
||||||
gender = 'f';
|
gender = 'f';
|
||||||
fly = true;
|
fly = true;
|
||||||
logo = 'https://angular.io/resources/images/logos/angular2/angular.png';
|
logo = 'https://angular.io/resources/images/logos/angular/angular.png';
|
||||||
inc(i: number) {
|
inc(i: number) {
|
||||||
this.wolves = Math.min(5, Math.max(0, this.wolves + i));
|
this.wolves = Math.min(5, Math.max(0, this.wolves + i));
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
(click)="sidenav.toggle()" title="Docs menu">
|
(click)="sidenav.toggle()" title="Docs menu">
|
||||||
<md-icon>menu</md-icon>
|
<md-icon>menu</md-icon>
|
||||||
</button>
|
</button>
|
||||||
<a class="nav-link home" href="/"><img class="home-logo-link" src="{{ homeImageUrl }}" title="Home" alt="Home"></a>
|
<a class="nav-link home" href="/"><img src="{{ homeImageUrl }}" title="Home" alt="Home"></a>
|
||||||
<aio-top-menu *ngIf="isSideBySide" [nodes]="topMenuNodes"></aio-top-menu>
|
<aio-top-menu *ngIf="isSideBySide" [nodes]="topMenuNodes"></aio-top-menu>
|
||||||
<aio-search-box class="search-container" #searchBox></aio-search-box>
|
<aio-search-box class="search-container" #searchBox></aio-search-box>
|
||||||
<span class="fill-remaining-space"></span>
|
<span class="fill-remaining-space"></span>
|
||||||
@ -24,4 +24,6 @@
|
|||||||
|
|
||||||
<aio-search-results #searchResults></aio-search-results>
|
<aio-search-results #searchResults></aio-search-results>
|
||||||
|
|
||||||
|
<footer>
|
||||||
<aio-footer [nodes]="footerNodes" [versionInfo]="versionInfo" ></aio-footer>
|
<aio-footer [nodes]="footerNodes" [versionInfo]="versionInfo" ></aio-footer>
|
||||||
|
</footer>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<footer>
|
|
||||||
<div class="grid-fluid">
|
<div class="grid-fluid">
|
||||||
<div *ngFor="let node of nodes">
|
<div class="footer-block" *ngFor="let node of nodes">
|
||||||
<h3>{{node.title}}</h3>
|
<h3>{{node.title}}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li *ngFor="let item of node.children">
|
<li *ngFor="let item of node.children">
|
||||||
@ -16,7 +16,8 @@
|
|||||||
Code licensed under an <a href="license" title="License text" >MIT-style License</a>.
|
Code licensed under an <a href="license" title="License text" >MIT-style License</a>.
|
||||||
Documentation licensed under
|
Documentation licensed under
|
||||||
<a href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
|
<a href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
Version {{versionInfo?.full}}.
|
Version {{versionInfo?.full}}.
|
||||||
</p>
|
</p>
|
||||||
<!-- TODO: twitter widget (but only on pages that use twitter) -->
|
<!-- TODO: twitter widget (but only on pages that use twitter) -->
|
||||||
</footer>
|
|
||||||
|
@ -2,15 +2,27 @@ footer {
|
|||||||
position: relative;
|
position: relative;
|
||||||
line-height: 24px;
|
line-height: 24px;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
padding: 20px;
|
padding: 48px;
|
||||||
z-index: 10;
|
z-index: 0;
|
||||||
background-color: $blue;
|
background-color: $blue;
|
||||||
color: $offwhite;
|
color: $offwhite;
|
||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
|
|
||||||
|
aio-footer {
|
||||||
|
position: relative;
|
||||||
|
z-index: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-block {
|
||||||
|
margin: 0 24px;
|
||||||
|
vertical-align: top;
|
||||||
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: $offwhite;
|
color: $offwhite;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
z-index: 20;
|
||||||
|
position: relative;
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
@ -22,7 +34,10 @@ footer {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
h3 {
|
h3 {
|
||||||
font-size: 130%;
|
font-size: 16px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-weight: 400;
|
||||||
|
margin: 0 0 16px;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -34,23 +49,10 @@ footer {
|
|||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
-webkit-flex-direction: row;
|
justify-content: center;
|
||||||
-ms-flex-direction: row;
|
|
||||||
flex-direction: row;
|
|
||||||
|
|
||||||
-webkit-justify-content: space-around;
|
|
||||||
-ms-flex-pack: distribute;
|
|
||||||
justify-content: space-around;
|
|
||||||
|
|
||||||
-webkit-align-items: flex-start;
|
|
||||||
-ms-flex-align: start;
|
|
||||||
align-items: flex-start;
|
|
||||||
|
|
||||||
-webkit-align-content: flex-start;
|
|
||||||
-ms-flex-line-pack: start;
|
|
||||||
align-content: flex-start;
|
|
||||||
|
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
margin: 0 0 40px;
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style-position: inside;
|
list-style-position: inside;
|
||||||
@ -78,7 +80,7 @@ footer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
footer::after {
|
footer::after {
|
||||||
// content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -98,6 +100,6 @@ footer::after {
|
|||||||
url('../src/assets/images/logos/angular/angular_whiteTransparent.png') top 80px left 1512px repeat-y,
|
url('../src/assets/images/logos/angular/angular_whiteTransparent.png') top 80px left 1512px repeat-y,
|
||||||
url('../src/assets/images/logos/angular/angular_whiteTransparent.png') top left 1680px repeat-y,
|
url('../src/assets/images/logos/angular/angular_whiteTransparent.png') top left 1680px repeat-y,
|
||||||
url('../src/assets/images/logos/angular/angular_whiteTransparent.png') top 80px left 1848px repeat-y;
|
url('../src/assets/images/logos/angular/angular_whiteTransparent.png') top 80px left 1848px repeat-y;
|
||||||
opacity: 0.1;
|
opacity: 0.05;
|
||||||
background-size: 160px auto;
|
background-size: 160px auto;
|
||||||
}
|
}
|
||||||
|
@ -17,11 +17,6 @@
|
|||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.home-logo-link {
|
|
||||||
height: 40px;
|
|
||||||
margin-right: 20px;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 700px) {
|
@media (max-width: 700px) {
|
||||||
.nav-link {
|
.nav-link {
|
||||||
font-size: 80%;
|
font-size: 80%;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user