Skip to content

Commit 46a022c

Browse files
committed
docs: 4.0 fixes (#1465)
1 parent f722a48 commit 46a022c

32 files changed

+89
-152
lines changed

docs/app/blocks/components/components-overview-block/components-overview-block.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474

7575
@include media-breakpoint-up(md) {
7676
.components-list {
77+
margin: 0 -1.5rem;
7778

7879
.component-card-wrapper {
7980
flex: 1 0 auto;

docs/app/blocks/components/live-example-block/live-example-block.component.scss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
// colors
77
$action-bg: white;
88
$action-fg: nb-theme(color-fg-heading-light);
9-
$block-bg-default: #ebeff5;
10-
$block-bg-cosmic: #2f296b;
11-
$block-fg-cosmic: #7d838b;
12-
$block-bg-corporate: #f1f5f8;
9+
$block-bg-default: #f7f8fa;
10+
$block-bg-cosmic: #292766;
11+
$block-bg-corporate: #f7f8fa;
12+
$block-fg-cosmic: #e8e9fa;
1313

1414
display: flex;
1515
flex-direction: column;

docs/app/home/home.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</div>
88
<svg class="concave" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 222" preserveAspectRatio="xMidYMin slice">
99
<g>
10-
<path fill="#fff" d="M1920,0c-248.44,93.45-587.33,151.09-960.52,151.09S248.44,93.45,0,0V222H1920Z"/>
10+
<path d="M1920,0c-248.44,93.45-587.33,151.09-960.52,151.09S248.44,93.45,0,0V222H1920Z"/>
1111
</g>
1212
</svg>
1313
</section>

docs/app/home/home.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
margin-top: -5rem;
3434
margin-left: -20%;
3535
margin-right: -20%;
36+
fill: nb-theme(layout-background-color);
3637

3738
@include media-breakpoint-up(md) {
3839
margin-top: -7rem;

src/playground/with-layout/dialog/components/auto-focus-dialog.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { Component, Input } from '@angular/core';
22
import { NbDialogRef } from '@nebular/theme';
33

44
@Component({
5-
selector: 'nb-dialog',
65
template: `
7-
<nb-card [style.width.px]="600" [style.height.px]="500">
6+
<nb-card class="dialog-card">
87
<nb-card-header>{{ title }}</nb-card-header>
98
<nb-card-body>
109
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras convallis tincidunt tincidunt.

src/playground/with-layout/dialog/components/backdrop-click-dialog.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { Component, Input } from '@angular/core';
22
import { NbDialogRef } from '@nebular/theme';
33

44
@Component({
5-
selector: 'nb-dialog',
65
template: `
7-
<nb-card [style.width.px]="600" [style.height.px]="500">
6+
<nb-card class="dialog-card">
87
<nb-card-header>{{ title }}</nb-card-header>
98
<nb-card-body>
109
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras convallis tincidunt tincidunt.

src/playground/with-layout/dialog/components/esc-dialog.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { Component, Input } from '@angular/core';
22
import { NbDialogRef } from '@nebular/theme';
33

44
@Component({
5-
selector: 'nb-dialog',
65
template: `
7-
<nb-card [style.width.px]="600" [style.height.px]="500">
6+
<nb-card class="dialog-card">
87
<nb-card-header>{{ title }}</nb-card-header>
98
<nb-card-body>
109
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras convallis tincidunt tincidunt.

src/playground/with-layout/dialog/components/has-backdrop-dialog.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { Component, Input } from '@angular/core';
22
import { NbDialogRef } from '@nebular/theme';
33

44
@Component({
5-
selector: 'nb-dialog',
65
template: `
7-
<nb-card [style.width.px]="600" [style.height.px]="500">
6+
<nb-card class="dialog-card">
87
<nb-card-header>{{ title }}</nb-card-header>
98
<nb-card-body>
109
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras convallis tincidunt tincidunt.

src/playground/with-layout/dialog/components/name-prompt-dialog.component.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ import { NbDialogRef } from '@nebular/theme';
1515
</nb-card-footer>
1616
</nb-card>
1717
`,
18-
styles: [`
19-
button {
20-
margin: 1rem;
21-
}
22-
`],
2318
})
2419
export class DialogNamePromptComponent {
2520
constructor(protected dialogRef: NbDialogRef<DialogNamePromptComponent>) {

src/playground/with-layout/dialog/components/scroll-dialog.component.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import { Component, Input } from '@angular/core';
22
import { NbDialogRef } from '@nebular/theme';
33

44
@Component({
5-
selector: 'nb-dialog',
65
template: `
7-
<nb-card [style.width.px]="600" [style.height.px]="500">
6+
<nb-card class="dialog-card">
87
<nb-card-header>{{ title }}</nb-card-header>
98
<nb-card-body>
109
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras convallis tincidunt tincidunt.

0 commit comments

Comments
 (0)