diff --git a/docs/app/blocks/components/components-overview-block/components-overview-block.component.scss b/docs/app/blocks/components/components-overview-block/components-overview-block.component.scss index 1ee6230428..9a22a099ab 100644 --- a/docs/app/blocks/components/components-overview-block/components-overview-block.component.scss +++ b/docs/app/blocks/components/components-overview-block/components-overview-block.component.scss @@ -23,8 +23,8 @@ .component-icon { margin-bottom: 1rem; - width: 4rem; height: 4rem; + width: auto; } .component-name { diff --git a/src/playground/styles/example-helpers.scss b/src/playground/styles/example-helpers.scss index 3f38224bcf..cb603dd7e8 100644 --- a/src/playground/styles/example-helpers.scss +++ b/src/playground/styles/example-helpers.scss @@ -17,26 +17,26 @@ justify-content: space-around; } - .example-items-row { - margin-top: -1rem; + .example-items-rows { display: flex; - flex-direction: row; + flex-wrap: wrap; align-items: flex-start; + margin: -0.5rem; > * { - margin-top: 1rem; - margin-right: 1rem; - - &:last-child { - margin-right: 0; - } + margin: 0.5rem; } } + .example-last-child-no-b-margin > :last-child { + margin-bottom: 0; + } + .example-items-col { display: flex; flex-direction: column; align-items: flex-start; + & > * { margin-bottom: 1rem; diff --git a/src/playground/with-layout/alert/alert-accents.component.html b/src/playground/with-layout/alert/alert-accents.component.html index af384d0772..7bda1e6691 100644 --- a/src/playground/with-layout/alert/alert-accents.component.html +++ b/src/playground/with-layout/alert/alert-accents.component.html @@ -1,5 +1,5 @@ - + Primary. You have been successfully authenticated! Success. You have been successfully authenticated! Info. You have been successfully authenticated! diff --git a/src/playground/with-layout/alert/alert-colors.component.html b/src/playground/with-layout/alert/alert-colors.component.html index a536924635..3bc9c782c6 100644 --- a/src/playground/with-layout/alert/alert-colors.component.html +++ b/src/playground/with-layout/alert/alert-colors.component.html @@ -1,5 +1,5 @@ - + Primary. You have been successfully authenticated! Success. You have been successfully authenticated! Info. You have been successfully authenticated! diff --git a/src/playground/with-layout/alert/alert-outline.component.html b/src/playground/with-layout/alert/alert-outline.component.html index fcccc3ddea..a2b2d16da5 100644 --- a/src/playground/with-layout/alert/alert-outline.component.html +++ b/src/playground/with-layout/alert/alert-outline.component.html @@ -1,5 +1,5 @@ - + Primary. You have been successfully authenticated! Success. You have been successfully authenticated! Info. You have been successfully authenticated! diff --git a/src/playground/with-layout/alert/alert-showcase.component.html b/src/playground/with-layout/alert/alert-showcase.component.html index fff247868e..1825b81207 100644 --- a/src/playground/with-layout/alert/alert-showcase.component.html +++ b/src/playground/with-layout/alert/alert-showcase.component.html @@ -1,5 +1,5 @@ - + You have been successfully authenticated! diff --git a/src/playground/with-layout/alert/alert-sizes.component.html b/src/playground/with-layout/alert/alert-sizes.component.html index 9b49f6387e..02367aff10 100644 --- a/src/playground/with-layout/alert/alert-sizes.component.html +++ b/src/playground/with-layout/alert/alert-sizes.component.html @@ -1,5 +1,5 @@ - + Tiny. You have been successfully authenticated! Small. You have been successfully authenticated! Medium. You have been successfully authenticated! diff --git a/src/playground/with-layout/button/button-colors.component.html b/src/playground/with-layout/button/button-colors.component.html index 1635e1746d..3122bf001c 100644 --- a/src/playground/with-layout/button/button-colors.component.html +++ b/src/playground/with-layout/button/button-colors.component.html @@ -1,6 +1,6 @@ Button Colors - + diff --git a/src/playground/with-layout/button/button-full-width.component.html b/src/playground/with-layout/button/button-full-width.component.html index 0652b095e7..32c03eed52 100644 --- a/src/playground/with-layout/button/button-full-width.component.html +++ b/src/playground/with-layout/button/button-full-width.component.html @@ -1,6 +1,6 @@ Button Full Width - + diff --git a/src/playground/with-layout/button/button-hero.component.html b/src/playground/with-layout/button/button-hero.component.html index 81cde2cd95..ef89c14280 100644 --- a/src/playground/with-layout/button/button-hero.component.html +++ b/src/playground/with-layout/button/button-hero.component.html @@ -1,6 +1,6 @@ Button Hero - + diff --git a/src/playground/with-layout/button/button-icon.component.html b/src/playground/with-layout/button/button-icon.component.html index eef0585556..97e482f515 100644 --- a/src/playground/with-layout/button/button-icon.component.html +++ b/src/playground/with-layout/button/button-icon.component.html @@ -1,6 +1,6 @@ Button with Icon - + diff --git a/src/playground/with-layout/button/button-outline.component.html b/src/playground/with-layout/button/button-outline.component.html index 7e950ea432..7fb4ba6abe 100644 --- a/src/playground/with-layout/button/button-outline.component.html +++ b/src/playground/with-layout/button/button-outline.component.html @@ -1,6 +1,6 @@ Button Outline - + diff --git a/src/playground/with-layout/button/button-shapes.component.html b/src/playground/with-layout/button/button-shapes.component.html index b14c93528d..2f29a35444 100644 --- a/src/playground/with-layout/button/button-shapes.component.html +++ b/src/playground/with-layout/button/button-shapes.component.html @@ -1,6 +1,6 @@ Button Shapes - + diff --git a/src/playground/with-layout/button/button-showcase.component.html b/src/playground/with-layout/button/button-showcase.component.html index 8d8a8c4f57..cefb41fb46 100644 --- a/src/playground/with-layout/button/button-showcase.component.html +++ b/src/playground/with-layout/button/button-showcase.component.html @@ -1,6 +1,6 @@ Button - + diff --git a/src/playground/with-layout/button/button-sizes.component.html b/src/playground/with-layout/button/button-sizes.component.html index 98d8cab4fa..d35636ec8b 100644 --- a/src/playground/with-layout/button/button-sizes.component.html +++ b/src/playground/with-layout/button/button-sizes.component.html @@ -1,6 +1,6 @@ Button Sizes - + diff --git a/src/playground/with-layout/button/button-types.component.html b/src/playground/with-layout/button/button-types.component.html index 5ab43708ef..3067fed249 100644 --- a/src/playground/with-layout/button/button-types.component.html +++ b/src/playground/with-layout/button/button-types.component.html @@ -1,6 +1,6 @@ Button Elements - + diff --git a/src/playground/with-layout/button/button-types.component.ts b/src/playground/with-layout/button/button-types.component.ts index 3236ac0fe7..c1609ac5b0 100644 --- a/src/playground/with-layout/button/button-types.component.ts +++ b/src/playground/with-layout/button/button-types.component.ts @@ -12,8 +12,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'; templateUrl: './button-types.component.html', }) export class ButtonTypesComponent { - - onClick() { return false; } diff --git a/src/playground/with-layout/icon/icon-colors.component.html b/src/playground/with-layout/icon/icon-colors.component.html index aa3e78839b..2ebd99cb30 100644 --- a/src/playground/with-layout/icon/icon-colors.component.html +++ b/src/playground/with-layout/icon/icon-colors.component.html @@ -1,5 +1,5 @@ - + diff --git a/src/playground/with-layout/icon/icon-showcase.component.html b/src/playground/with-layout/icon/icon-showcase.component.html index 9033bceb67..8c59c4c9ec 100644 --- a/src/playground/with-layout/icon/icon-showcase.component.html +++ b/src/playground/with-layout/icon/icon-showcase.component.html @@ -1,5 +1,5 @@ - + diff --git a/src/playground/with-layout/input/input-showcase.component.ts b/src/playground/with-layout/input/input-showcase.component.ts index 8a4de3bcc0..96c2794683 100644 --- a/src/playground/with-layout/input/input-showcase.component.ts +++ b/src/playground/with-layout/input/input-showcase.component.ts @@ -9,7 +9,7 @@ import { Component } from '@angular/core'; @Component({ template: ` - + diff --git a/src/playground/with-layout/progress-bar/progress-bar-interactive.component.html b/src/playground/with-layout/progress-bar/progress-bar-interactive.component.html index 7482b19370..eb79f3bf33 100644 --- a/src/playground/with-layout/progress-bar/progress-bar-interactive.component.html +++ b/src/playground/with-layout/progress-bar/progress-bar-interactive.component.html @@ -2,11 +2,11 @@
- + - +
diff --git a/src/playground/with-layout/spinner/spinner-button.component.ts b/src/playground/with-layout/spinner/spinner-button.component.ts index 385dca3b63..987334ee6a 100644 --- a/src/playground/with-layout/spinner/spinner-button.component.ts +++ b/src/playground/with-layout/spinner/spinner-button.component.ts @@ -10,7 +10,7 @@ import { Component } from '@angular/core'; selector: 'nb-app-spinner-button', template: ` - +