feat(typography): first bunch of typography

This commit is contained in:
Dmitry Nehaychik 2017-07-13 11:36:59 +03:00
parent fe7ef91ada
commit 009e5788ac
5 changed files with 773 additions and 3651 deletions

3985
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -57,7 +57,7 @@
"ng2-smart-table": "1.1.0", "ng2-smart-table": "1.1.0",
"ng2-tree": "2.0.0-alpha.5", "ng2-tree": "2.0.0-alpha.5",
"normalize.css": "6.0.0", "normalize.css": "6.0.0",
"roboto-fontface": "0.7.0", "open-sans-fontface": "^1.4.0",
"rxjs": "5.4.0", "rxjs": "5.4.0",
"tether": "1.4.0", "tether": "1.4.0",
"tinymce": "4.5.7", "tinymce": "4.5.7",

View file

@ -1,157 +1,229 @@
<div class="row"> <div class="row">
<div class="col-md-6">
<nga-card> <div class="col-md-9">
<div class="row">
<div class="col-md-7">
<nga-card size="large">
<nga-card-header> <nga-card-header>
Text size Used Fonts
</nga-card-header> </nga-card-header>
<nga-card-body> <nga-card-body>
<div> <div class="font-row font-secondary">
<h1>H1. Heading 1</h1> <div class="header">
<div class="name bold">Exo</div>
<p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra, placerat vestibulum <div class="variants">
eleifend pellentesque.</p> <span class="font-w-bold">Bold</span>
<span class="font-w-regular">Regular</span>
<span class="font-w-light">Light</span>
</div> </div>
<div>
<h2>H2. Heading 2</h2>
<p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra, placerat vestibulum
eleifend pellentesque.</p>
</div> </div>
<div> <p>
<h3>H3. Heading 3</h3> Far far away, behind the word mountains, far from the countries Vokalia and Consonantia,
there live the blind texts.
<p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra, placerat vestibulum Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.
eleifend pellentesque.</p> </p>
</div> </div>
<div>
<h4>H4. Heading 4</h4>
<p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra,.</p> <div class="font-row font-main">
<div class="header">
<div class="name bold">Open Sans</div>
<div class="variants">
<span class="bold">Bold</span>
<span class="regular">Regular</span>
<span class="light">Light</span>
</div> </div>
<div> </div>
<h5>H5. Heading 5</h5> <p>
Far far away, behind the word mountains, far from the countries Vokalia and Consonantia,
<p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra.</p> there live the blind texts.
Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.
</p>
</div> </div>
</nga-card-body> </nga-card-body>
<nga-card-footer></nga-card-footer> <nga-card-footer></nga-card-footer>
</nga-card> </nga-card>
</div> </div>
<div class="col-md-6"> <div class="col-md-5">
<nga-card> <nga-card size="large">
<nga-card-header> <nga-card-header>
Some more text Headings
</nga-card-header> </nga-card-header>
<nga-card-body> <nga-card-body>
<div class="font-italic"> <div class="header">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula <div>
sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Nullam quis risus <h1>H1. Heading</h1>
eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis.
</p>
</div> </div>
<div class="font-weight-normal">
<p>Curabitur bibendum ornare dolor, quis ullamcorper ligula dfgz`zzsodales at. Nullam quis risus eget urna mollis
ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam
id dolor id.
</p>
</div>
<div class="text-uppercase font-weight-bold">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula
sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. </p>
</div>
<div class="font-weight-bold">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullam-corper ligula
sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla.
</p>
</div>
<div class="small">
<p>Secondary text. Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar,</p>
<p>lacinia scelerisque pharetra, placerat vestibulum eleifend</p> <div class="detail font-w-light">
Demibold 2.5rem (40px)
</div>
</div>
<div class="header">
<div>
<h2>H2. Heading</h2>
</div>
<p> pellentesque, mi nam.</p> <div class="detail font-w-light">
</div> Demibold 2rem (32px)
</nga-card-body> </div>
<nga-card-footer></nga-card-footer> </div>
</nga-card> <div class="header">
</div> <div>
</div> <h3>H3. Heading</h3>
<div class="row"> </div>
<div class="col-md-6">
<nga-card> <div class="detail font-w-light">
<nga-card-header> Demibold 1.75rem (28px)
Lists </div>
</nga-card-header> </div>
<nga-card-body> <div class="header">
<div> <div>
<h5>Unordered list:</h5> <h4>H4. Heading</h4>
<ul class="theme"> </div>
<li>Lorem ipsum dolor sit amet</li>
<li>Сlacinia scelerisque pharetra <div class="detail font-w-light">
<ul> Demibold 1.5rem (24px)
<li>Dui rhoncus quisque integer lorem </div>
<ul> </div>
<li>Libero iaculis vestibulum eu vitae</li> <div class="header">
</ul> <div>
</li> <h5>H5. Heading</h5>
</ul> </div>
</li>
<li>Nisl lectus nibh habitasse suspendisse ut</li> <div class="detail font-w-light">
<li><span>Posuere cursus hac, vestibulum wisi nulla bibendum</span></li> Demibold 1.25rem (20px)
</ul> </div>
<h5>Ordered Lists:</h5> </div>
<ol class="theme"> <div class="header">
<li><span>Eu non nec cursus quis mollis, amet quam nec</span></li> <div>
<li><span>Et suspendisse, adipiscing fringilla ornare sit ligula sed</span> <h6>H6. Heading</h6>
<ol> </div>
<li><span>Interdum et justo nulla</span>
<ol> <div class="detail font-w-light">
<li><span>Magna amet, suscipit suscipit non amet</span></li> Demibold 1rem (16px)
</ol> </div>
</li> </div>
</ol> </nga-card-body>
</li> <nga-card-footer></nga-card-footer>
<li><span>Metus duis eu non eu ridiculus turpis</span></li> </nga-card>
<li> </div>
<span>Neque egestas id fringilla consectetuer justo curabitur, wisi magna neque commodo volutpat</span>
</li> <div class="col-md-7">
</ol> <nga-card size="medium">
<div>Important text fragment. Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra. <nga-card-header>
</div> Article Example
</div> </nga-card-header>
</nga-card-body> <nga-card-body>
<nga-card-footer></nga-card-footer> <h4>So what's About the grammar?</h4>
</nga-card> <p class="text-indent">
</div> Far far away, behind the word mountains, far from the countries <strong>Vokalia</strong> and <strong>Consonantia</strong>,
<div class="col-md-6"> there live the blind texts.
<nga-card> Separated they live in <strong>Bookmarksgrove</strong>
<nga-card-header> right at the coast of the Semantics, a large language ocean.
Text color </p>
</nga-card-header> <p class="text-indent">
<nga-card-body> A small <strong>river named Duden</strong> flows by their place and supplies it with the
<div class="text-danger"> necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis ullamcorper ligula into your mouth.
sodales at. Nulla tellus elit, varius non commodo eget, mattis vel eros. In sed ornare nulla. Nullam quis risus Even the all-powerful Pointing has no control about the blind texts it is an almost
eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus unorthographic life One day however a small
mus. line of blind text by the name of
</p> <a href="http://google.com" target="_blank">Lorem Ipsum</a> decided to leave for
</div> the far <strong>World of Grammar</strong>.
<div class="text-warning"> </p>
<p>Curabitur bibendum ornare dolor, quis ullamcorper ligula dfgz`zzsodales at. Nullam quis risus eget urna mollis </nga-card-body>
ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam <nga-card-footer></nga-card-footer>
id dolor id nibh ultricies vehicula ut id elit. In sed ornare nulla. </nga-card>
</p> </div>
</div>
<div class="links"> <div class="col-md-5">
<p>Lorem ipsum <a href>dolor</a> sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis <nga-card size="medium">
<a href>ullamcorper</a> ligula sodales at. Nulla tellus elit, varius non commodo eget, <a href>mattis</a> vel <nga-card-header>
eros. In sed ornare nulla. Blockquotes
</p> </nga-card-header>
</div> <nga-card-body>
<div class="links"> <blockquote class="blockquote">
<p><a href>Active link — #209e91</a></p> <p class="mb-0">Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove.</p>
</blockquote>
<p class="hovered"><a href>Hover link — #17857a</a></p> <blockquote class="blockquote">
<p class="mb-0">Far far away, behind the word mountains, far from the countries.</p>
<footer class="blockquote-footer">Vladimir Lugovsky</footer>
</blockquote>
<blockquote class="blockquote-reverse">
<p class="mb-0">Far far away, behind the word mountains, far from the countries.</p>
<footer class="blockquote-footer">Vladimir Lugovsky</footer>
</blockquote>
</nga-card-body>
<nga-card-footer></nga-card-footer>
</nga-card>
</div>
</div>
</div>
<div class="col-md-3">
<nga-card size="xxlarge">
<nga-card-header>
Font Colors
</nga-card-header>
<nga-card-body>
<div class="colors">
<div class="item text-heading">
<div class="color bg-heading"></div>
<div class="color-name">
<h5 class="text-heading">Heading Text</h5>
Far far away, behind the your awesomeness.
</div>
</div>
<div class="item text-body">
<div class="color bg-body"></div>
<div class="color-name">
<h5 class="text-body">Body Text</h5>
Far far away, behind the your awesomeness.
</div>
</div>
<div class="item text-hint">
<div class="color bg-hint"></div>
<div class="color-name">
<h5 class="text-hint">Hint Text</h5>
Far far away, behind the your awesomeness.
</div>
</div>
<div class="item text-primary">
<div class="color bg-primary"></div>
<div class="color-name">
<h5 class="text-primary">Primary Text</h5>
Far far away, behind the your awesomeness.
</div>
</div>
<div class="item text-success">
<div class="color bg-success"></div>
<div class="color-name">
<h5 class="text-success">Link/Hightlight Text</h5>
Far far away, behind the your awesomeness.
</div>
</div>
<div class="item text-info">
<div class="color bg-info"></div>
<div class="color-name">
<h5 class="text-info">Info Text</h5>
Far far away, behind the your awesomeness.
</div>
</div>
<div class="item text-warning">
<div class="color bg-warning"></div>
<div class="color-name">
<h5 class="text-warning">Warning Text</h5>
Far far away, behind the your awesomeness.
</div>
</div>
<div class="item text-danger">
<div class="color bg-danger"></div>
<div class="color-name">
<h5 class="text-danger">Danger Text</h5>
Far far away, behind the your awesomeness.
</div>
</div>
</div> </div>
</nga-card-body> </nga-card-body>
<nga-card-footer></nga-card-footer> <nga-card-footer></nga-card-footer>

View file

@ -0,0 +1,80 @@
@import '../../../@theme/styles/variables';
@include nga-install-component() {
.font-secondary .header .name {
font-size: 4.5rem;
}
.font-main .header .name {
font-size: 2.5rem;
}
.font-row {
margin-bottom: 3rem;
}
.header {
display: flex;
padding-bottom: 1rem;
margin-bottom: 1rem;
border-bottom: 1px solid rgba(nga-theme(color-fg), 0.1);
color: nga-theme(color-fg-heading);
&:last-child {
border-bottom: none;
}
div:first-child {
flex-basis: 50%;
line-height: 1;
align-items: flex-end;
h1 {
margin-bottom: 0;
}
}
.variants {
flex: 1;
display: flex;
justify-content: space-between;
align-items: flex-end;
span {
padding-left: 1rem;
font-size: 1.5rem;
}
}
.detail {
flex: 1;
display: flex;
justify-content: flex-end;
align-items: flex-end;
color: nga-theme(color-fg);
}
}
.colors {
display: flex;
flex-direction: column;
.item {
display: flex;
align-items: center;
margin-bottom: 1.5rem;
&:last-child {
margin-bottom: 0;
}
}
.color {
width: 86px;
height: 60px;
border-top-right-radius: 1rem;
border-bottom-left-radius: 1rem;
margin-right: 1rem;
}
}
}

View file

@ -2,6 +2,7 @@ import { Component } from '@angular/core';
@Component({ @Component({
selector: 'ngx-typography', selector: 'ngx-typography',
styleUrls: ['./typography.component.scss'],
templateUrl: './typography.component.html', templateUrl: './typography.component.html',
}) })
export class TypographyComponent { export class TypographyComponent {