forked from NationalBankBelgium/stark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(stark-demo): add \
styleguid/layout\
page for documenting the u…
…se of Angular Flex-layout ISSUES CLOSED: NationalBankBelgium#668
- Loading branch information
1 parent
051f1a8
commit 2e51cca
Showing
12 changed files
with
96 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
showcase/src/app/styleguide/pages/layout/styleguide-layout-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<h1 class="mat-display-3" translate>SHOWCASE.DEMO.LAYOUT.TITLE</h1> | ||
<h2 class="mat-display-2" translate>SHOWCASE.DEMO.LAYOUT.ANGULAR_FLEX_LAYOUT</h2> | ||
<p [innerHTML]="'SHOWCASE.DEMO.LAYOUT.INTRO' | translate"></p> | ||
|
||
<example-viewer filesPath="flex-layout/flex-layout" | ||
[extensions]="['HTML','SCSS']" | ||
exampleTitle="SHOWCASE.DEMO.LAYOUT.ANGULAR_FLEX_LAYOUT"> | ||
<div class="flex-layout-demo" | ||
fxLayout="column" | ||
fxLayout.gt-sm="row wrap" | ||
fxLayoutGap="10px"> | ||
<div fxFlex>1</div> | ||
<div class="accent" fxFlex fxFlex.gt-md="75%">2</div> | ||
<div fxFlex>3</div> | ||
<div fxFlex>4</div> | ||
</div> | ||
</example-viewer> |
13 changes: 13 additions & 0 deletions
13
showcase/src/app/styleguide/pages/layout/styleguide-layout-page.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.flex-layout-demo { | ||
> * { | ||
text-align: center; | ||
padding: 10px; | ||
|
||
background-color: mat-color($primary-palette, 500); | ||
color: mat-contrast($primary-palette, 500); | ||
&.accent { | ||
background-color: mat-color($accent-palette, 500); | ||
color: mat-contrast($accent-palette, 500); | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
showcase/src/app/styleguide/pages/layout/styleguide-layout-page.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component, Inject } from "@angular/core"; | ||
import { STARK_LOGGING_SERVICE, StarkLoggingService } from "@nationalbankbelgium/stark-core"; | ||
|
||
@Component({ | ||
selector: "demo-layout", | ||
templateUrl: "./styleguide-layout-page.component.html" | ||
}) | ||
export class StyleguideLayoutPageComponent { | ||
public constructor(@Inject(STARK_LOGGING_SERVICE) public logger: StarkLoggingService) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div class="flex-layout-demo" | ||
fxLayout="column" | ||
fxLayout.gt-sm="row wrap" | ||
fxLayoutGap="10px"> | ||
<div fxFlex>1</div> | ||
<div class="accent" fxFlex fxFlex.gt-md="75%">2</div> | ||
<div fxFlex>3</div> | ||
<div fxFlex>4</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.flex-layout-demo { | ||
> * { | ||
text-align: center; | ||
padding: 10px; | ||
|
||
background-color: mat-color($primary-palette, 500); | ||
color: mat-contrast($primary-palette, 500); | ||
&.accent { | ||
background-color: mat-color($accent-palette, 500); | ||
color: mat-contrast($accent-palette, 500); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters