mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-17 07:50:12 +01:00
fix(typography): fix typography responsiveness
This commit is contained in:
parent
5eb74be77f
commit
99ce49007a
2 changed files with 95 additions and 90 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-12 col-xl-8">
|
<div class="col-xxxl-8">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-12 col-md-6 col-xxl-7">
|
<div class="col-md-6 col-xxl-7">
|
||||||
<nb-card size="medium">
|
<nb-card size="medium">
|
||||||
<nb-card-header>
|
<nb-card-header>
|
||||||
Used Fonts
|
Used Fonts
|
||||||
|
|
@ -42,8 +42,32 @@
|
||||||
</div>
|
</div>
|
||||||
</nb-card-body>
|
</nb-card-body>
|
||||||
</nb-card>
|
</nb-card>
|
||||||
|
|
||||||
|
<nb-card size="small">
|
||||||
|
<nb-card-header>
|
||||||
|
Article Example
|
||||||
|
</nb-card-header>
|
||||||
|
<nb-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.
|
||||||
|
They live in <strong>Bookmarksgrove</strong>.
|
||||||
|
</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>
|
||||||
|
</nb-card-body>
|
||||||
|
</nb-card>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12 col-md-6 col-xxl-5">
|
<div class="col-md-6 col-xxl-5">
|
||||||
<nb-card size="medium" class="headings-card">
|
<nb-card size="medium" class="headings-card">
|
||||||
<nb-card-header>
|
<nb-card-header>
|
||||||
Headings
|
Headings
|
||||||
|
|
@ -105,34 +129,7 @@
|
||||||
</div>
|
</div>
|
||||||
</nb-card-body>
|
</nb-card-body>
|
||||||
</nb-card>
|
</nb-card>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-sm-12 col-md-6 col-xxl-7">
|
|
||||||
<nb-card size="small">
|
|
||||||
<nb-card-header>
|
|
||||||
Article Example
|
|
||||||
</nb-card-header>
|
|
||||||
<nb-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.
|
|
||||||
They live in <strong>Bookmarksgrove</strong>.
|
|
||||||
</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>
|
|
||||||
</nb-card-body>
|
|
||||||
</nb-card>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-12 col-md-6 col-xxl-5">
|
|
||||||
<nb-card size="small">
|
<nb-card size="small">
|
||||||
<nb-card-header>
|
<nb-card-header>
|
||||||
Blockquotes
|
Blockquotes
|
||||||
|
|
@ -154,8 +151,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-12 col-xl-4">
|
|
||||||
<nb-card size="xxlarge">
|
<div class="col-md-6 col-xxxl-4">
|
||||||
|
<nb-card [size]="breakpoint.width >= breakpoints.xxxl ? 'xxlarge' : 'large'">
|
||||||
<nb-card-header>
|
<nb-card-header>
|
||||||
Font Colors
|
Font Colors
|
||||||
</nb-card-header>
|
</nb-card-header>
|
||||||
|
|
@ -228,13 +226,8 @@
|
||||||
</nb-card-body>
|
</nb-card-body>
|
||||||
</nb-card>
|
</nb-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
|
<div class="col-md-6 col-xxxl-4">
|
||||||
<div class="row">
|
|
||||||
<div class="col-lg-12 col-xl-8">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12 col-md-6 col-xxl-7">
|
|
||||||
<nb-card size="large">
|
<nb-card size="large">
|
||||||
<nb-card-header>
|
<nb-card-header>
|
||||||
Alerts
|
Alerts
|
||||||
|
|
@ -261,7 +254,8 @@
|
||||||
</nb-card-body>
|
</nb-card-body>
|
||||||
</nb-card>
|
</nb-card>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12 col-md-6 col-xxl-5">
|
|
||||||
|
<div class="col-md-6 col-xxxl-4">
|
||||||
<nb-card size="large">
|
<nb-card size="large">
|
||||||
<nb-card-header>
|
<nb-card-header>
|
||||||
Text Types
|
Text Types
|
||||||
|
|
@ -285,9 +279,8 @@
|
||||||
</nb-card-body>
|
</nb-card-body>
|
||||||
</nb-card>
|
</nb-card>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
<div class="col-md-6 col-xxxl-4">
|
||||||
<div class="col-lg-12 col-xl-4">
|
|
||||||
<nb-card size="large">
|
<nb-card size="large">
|
||||||
<nb-card-header>
|
<nb-card-header>
|
||||||
Lists
|
Lists
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
import { NbThemeService, NbMediaBreakpoint, NbMediaBreakpointsService } from '@nebular/theme';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'ngx-typography',
|
selector: 'ngx-typography',
|
||||||
|
|
@ -6,5 +7,16 @@ import { Component } from '@angular/core';
|
||||||
templateUrl: './typography.component.html',
|
templateUrl: './typography.component.html',
|
||||||
})
|
})
|
||||||
export class TypographyComponent {
|
export class TypographyComponent {
|
||||||
|
breakpoint: NbMediaBreakpoint;
|
||||||
|
breakpoints: any;
|
||||||
|
|
||||||
|
constructor(private themeService: NbThemeService,
|
||||||
|
private breakpointService: NbMediaBreakpointsService) {
|
||||||
|
|
||||||
|
this.breakpoints = breakpointService.getBreakpointsMap();
|
||||||
|
themeService.onMediaQueryChange()
|
||||||
|
.subscribe(([oldValue, newValue]) => {
|
||||||
|
this.breakpoint = newValue;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue