mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02:00
feat(typography): first bunch of typography
This commit is contained in:
parent
fe7ef91ada
commit
009e5788ac
5 changed files with 773 additions and 3651 deletions
3985
package-lock.json
generated
3985
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -57,7 +57,7 @@
|
|||
"ng2-smart-table": "1.1.0",
|
||||
"ng2-tree": "2.0.0-alpha.5",
|
||||
"normalize.css": "6.0.0",
|
||||
"roboto-fontface": "0.7.0",
|
||||
"open-sans-fontface": "^1.4.0",
|
||||
"rxjs": "5.4.0",
|
||||
"tether": "1.4.0",
|
||||
"tinymce": "4.5.7",
|
||||
|
|
|
@ -1,157 +1,229 @@
|
|||
<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>
|
||||
Text size
|
||||
Used Fonts
|
||||
</nga-card-header>
|
||||
<nga-card-body>
|
||||
<div>
|
||||
<h1>H1. Heading 1</h1>
|
||||
<div class="font-row font-secondary">
|
||||
<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
|
||||
eleifend pellentesque.</p>
|
||||
<div class="variants">
|
||||
<span class="font-w-bold">Bold</span>
|
||||
<span class="font-w-regular">Regular</span>
|
||||
<span class="font-w-light">Light</span>
|
||||
</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>
|
||||
<h3>H3. Heading 3</h3>
|
||||
|
||||
<p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra, placerat vestibulum
|
||||
eleifend pellentesque.</p>
|
||||
<p>
|
||||
Far far away, behind the word mountains, far from the countries Vokalia and Consonantia,
|
||||
there live the blind texts.
|
||||
Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.
|
||||
</p>
|
||||
</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>
|
||||
<h5>H5. Heading 5</h5>
|
||||
|
||||
<p>Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra.</p>
|
||||
</div>
|
||||
<p>
|
||||
Far far away, behind the word mountains, far from the countries Vokalia and Consonantia,
|
||||
there live the blind texts.
|
||||
Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.
|
||||
</p>
|
||||
</div>
|
||||
</nga-card-body>
|
||||
<nga-card-footer></nga-card-footer>
|
||||
</nga-card>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<nga-card>
|
||||
<div class="col-md-5">
|
||||
<nga-card size="large">
|
||||
<nga-card-header>
|
||||
Some more text
|
||||
Headings
|
||||
</nga-card-header>
|
||||
<nga-card-body>
|
||||
<div class="font-italic">
|
||||
<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. Nullam quis risus
|
||||
eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis.
|
||||
</p>
|
||||
<div class="header">
|
||||
<div>
|
||||
<h1>H1. Heading</h1>
|
||||
</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>
|
||||
</nga-card-body>
|
||||
<nga-card-footer></nga-card-footer>
|
||||
</nga-card>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<nga-card>
|
||||
<nga-card-header>
|
||||
Lists
|
||||
</nga-card-header>
|
||||
<nga-card-body>
|
||||
<div>
|
||||
<h5>Unordered list:</h5>
|
||||
<ul class="theme">
|
||||
<li>Lorem ipsum dolor sit amet</li>
|
||||
<li>Сlacinia scelerisque pharetra
|
||||
<ul>
|
||||
<li>Dui rhoncus quisque integer lorem
|
||||
<ul>
|
||||
<li>Libero iaculis vestibulum eu vitae</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>Nisl lectus nibh habitasse suspendisse ut</li>
|
||||
<li><span>Posuere cursus hac, vestibulum wisi nulla bibendum</span></li>
|
||||
</ul>
|
||||
<h5>Ordered Lists:</h5>
|
||||
<ol class="theme">
|
||||
<li><span>Eu non nec cursus quis mollis, amet quam nec</span></li>
|
||||
<li><span>Et suspendisse, adipiscing fringilla ornare sit ligula sed</span>
|
||||
<ol>
|
||||
<li><span>Interdum et justo nulla</span>
|
||||
<ol>
|
||||
<li><span>Magna amet, suscipit suscipit non amet</span></li>
|
||||
</ol>
|
||||
</li>
|
||||
</ol>
|
||||
</li>
|
||||
<li><span>Metus duis eu non eu ridiculus turpis</span></li>
|
||||
<li>
|
||||
<span>Neque egestas id fringilla consectetuer justo curabitur, wisi magna neque commodo volutpat</span>
|
||||
</li>
|
||||
</ol>
|
||||
<div>Important text fragment. Lorem ipsum dolor sit amet, id mollis iaculis mi nisl pulvinar, lacinia scelerisque pharetra.
|
||||
</div>
|
||||
</div>
|
||||
</nga-card-body>
|
||||
<nga-card-footer></nga-card-footer>
|
||||
</nga-card>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<nga-card>
|
||||
<nga-card-header>
|
||||
Text color
|
||||
</nga-card-header>
|
||||
<nga-card-body>
|
||||
<div class="text-danger">
|
||||
<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. Nullam quis risus
|
||||
eget urna mollis ornare vel eu leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus
|
||||
mus.
|
||||
</p>
|
||||
</div>
|
||||
<div class="text-warning">
|
||||
<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 nibh ultricies vehicula ut id elit. In sed ornare nulla.
|
||||
</p>
|
||||
</div>
|
||||
<div class="links">
|
||||
<p>Lorem ipsum <a href>dolor</a> sit amet, consectetur adipiscing elit. Curabitur bibendum ornare dolor, quis
|
||||
<a href>ullamcorper</a> ligula sodales at. Nulla tellus elit, varius non commodo eget, <a href>mattis</a> vel
|
||||
eros. In sed ornare nulla.
|
||||
</p>
|
||||
</div>
|
||||
<div class="links">
|
||||
<p><a href>Active link — #209e91</a></p>
|
||||
|
||||
<p class="hovered"><a href>Hover link — #17857a</a></p>
|
||||
<div class="detail font-w-light">
|
||||
Demibold 2rem (32px)
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div>
|
||||
<h3>H3. Heading</h3>
|
||||
</div>
|
||||
|
||||
<div class="detail font-w-light">
|
||||
Demibold 1.75rem (28px)
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div>
|
||||
<h4>H4. Heading</h4>
|
||||
</div>
|
||||
|
||||
<div class="detail font-w-light">
|
||||
Demibold 1.5rem (24px)
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div>
|
||||
<h5>H5. Heading</h5>
|
||||
</div>
|
||||
|
||||
<div class="detail font-w-light">
|
||||
Demibold 1.25rem (20px)
|
||||
</div>
|
||||
</div>
|
||||
<div class="header">
|
||||
<div>
|
||||
<h6>H6. Heading</h6>
|
||||
</div>
|
||||
|
||||
<div class="detail font-w-light">
|
||||
Demibold 1rem (16px)
|
||||
</div>
|
||||
</div>
|
||||
</nga-card-body>
|
||||
<nga-card-footer></nga-card-footer>
|
||||
</nga-card>
|
||||
</div>
|
||||
|
||||
<div class="col-md-7">
|
||||
<nga-card size="medium">
|
||||
<nga-card-header>
|
||||
Article Example
|
||||
</nga-card-header>
|
||||
<nga-card-body>
|
||||
<h4>So what's About the grammar?</h4>
|
||||
<p class="text-indent">
|
||||
Far far away, behind the word mountains, far from the countries <strong>Vokalia</strong> and <strong>Consonantia</strong>,
|
||||
there live the blind texts.
|
||||
Separated they live in <strong>Bookmarksgrove</strong>
|
||||
right at the coast of the Semantics, a large language ocean.
|
||||
</p>
|
||||
<p class="text-indent">
|
||||
A small <strong>river named Duden</strong> flows by their place and supplies it with the
|
||||
necessary regelialia. It is a paradisematic country, in which roasted parts of sentences fly
|
||||
into your mouth.
|
||||
Even the all-powerful Pointing has no control about the blind texts it is an almost
|
||||
unorthographic life One day however a small
|
||||
line of blind text by the name of
|
||||
<a href="http://google.com" target="_blank">Lorem Ipsum</a> decided to leave for
|
||||
the far <strong>World of Grammar</strong>.
|
||||
</p>
|
||||
</nga-card-body>
|
||||
<nga-card-footer></nga-card-footer>
|
||||
</nga-card>
|
||||
</div>
|
||||
|
||||
<div class="col-md-5">
|
||||
<nga-card size="medium">
|
||||
<nga-card-header>
|
||||
Blockquotes
|
||||
</nga-card-header>
|
||||
<nga-card-body>
|
||||
<blockquote class="blockquote">
|
||||
<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>
|
||||
<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>
|
||||
</nga-card-body>
|
||||
<nga-card-footer></nga-card-footer>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -2,6 +2,7 @@ import { Component } from '@angular/core';
|
|||
|
||||
@Component({
|
||||
selector: 'ngx-typography',
|
||||
styleUrls: ['./typography.component.scss'],
|
||||
templateUrl: './typography.component.html',
|
||||
})
|
||||
export class TypographyComponent {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue