-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): adding typography example (#386)
- Loading branch information
1 parent
ee251ca
commit 081bb22
Showing
5 changed files
with
77 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { CommonModule } from '@angular/common'; | ||
import { NgModule } from '@angular/core'; | ||
|
||
import { TypographyOverviewExample } from './typography-overview/typography-overview-example'; | ||
|
||
|
||
const EXAMPLES = [ | ||
TypographyOverviewExample | ||
]; | ||
|
||
@NgModule({ | ||
imports: [ | ||
CommonModule | ||
], | ||
declarations: EXAMPLES, | ||
exports: EXAMPLES | ||
}) | ||
export class TypographyExamplesModule {} |
7 changes: 7 additions & 0 deletions
7
...ges/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.css
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,7 @@ | ||
small { | ||
color: rgba(0, 0, 0, 0.3); | ||
} | ||
|
||
.typography-group { | ||
margin-bottom: 20px; | ||
} |
38 changes: 38 additions & 0 deletions
38
...es/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.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,38 @@ | ||
<div class="typography-group"> | ||
<small>mc-display-3</small> | ||
<div class="mc-display-3">Display 3</div> | ||
<small>mc-display-2</small> | ||
<div class="mc-display-2">Display 2</div> | ||
<small>mc-display-1</small> | ||
<div class="mc-display-1">Display 1</div> | ||
</div> | ||
|
||
<div class="typography-group"> | ||
<small>mc-headline</small> | ||
<div class="mc-headline">Headline</div> | ||
<small>mc-title</small> | ||
<div class="mc-title">Title</div> | ||
<small>mc-subheading</small> | ||
<div class="mc-subheading">Subheading</div> | ||
</div> | ||
|
||
<div class="typography-group"> | ||
<div class="mc-body">Body</div> | ||
</div> | ||
|
||
<div class="typography-group"> | ||
<div class="mc-body_strong">Body strong</div> | ||
<div class="mc-body_caps">BODY CAPS</div> | ||
<div class="mc-body_mono">Body mono</div> | ||
</div> | ||
|
||
<div class="typography-group"> | ||
<div class="mc-caption">Caption</div> | ||
<div class="mc-caption_caps">CAPTION CAPS</div> | ||
<div class="mc-caption_mono">Caption mono</div> | ||
</div> | ||
|
||
<div class="typography-group"> | ||
<div class="mc-small-text">Small text</div> | ||
<div class="mc-extra-small-text">Extra Small text</div> | ||
</div> |
12 changes: 12 additions & 0 deletions
12
...ages/mosaic-examples/mosaic/typography/typography-overview/typography-overview-example.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,12 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
|
||
/** | ||
* @title Basic typography | ||
*/ | ||
@Component({ | ||
selector: 'typography-overview-example', | ||
templateUrl: 'typography-overview-example.html', | ||
styleUrls: ['typography-overview-example.css'] | ||
}) | ||
export class TypographyOverviewExample {} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<!-- example(typography-overview) --> | ||
|
||
### Usage and Override | ||
|
||
```scss | ||
|