-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[templates/angular-xmcloud] Fixed sxa components styles
- Loading branch information
1 parent
bcbafbd
commit 242ac69
Showing
20 changed files
with
138 additions
and
108 deletions.
There are no files selected for viewing
13 changes: 4 additions & 9 deletions
13
...mplates/angular-xmcloud/src/app/components/column-splitter/column-splitter.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,5 @@ | ||
<div class="row component column-splitter" [ngClass]="columnSplitterStyles" [attr.id]="id"> | ||
<div *ngFor="let ph of enabledPlaceholders" [ngClass]="getColumnClass(+ph - 1)"> | ||
<div class="row"> | ||
<sc-placeholder | ||
[name]="getPlaceholderName(ph)" | ||
[rendering]="rendering"> | ||
</sc-placeholder> | ||
</div> | ||
</div> | ||
<div *ngFor="let ph of enabledPlaceholders" [ngClass]="getColumnClass(+ph - 1)"> | ||
<div class="row"> | ||
<sc-placeholder [name]="getPlaceholderName(ph)" [rendering]="rendering"> </sc-placeholder> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 15 additions & 17 deletions
32
...e-jss/src/templates/angular-xmcloud/src/app/components/link-list/link-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,15 @@ | ||
<div class="component link-list {{ styles }}" [attr.id]="id"> | ||
<div class="component-content"> | ||
<ng-container *ngIf="title; else defaultTitle"> | ||
<h3 *scText="title"></h3> | ||
</ng-container> | ||
<ul> | ||
<li *ngFor="let fieldLink of fieldLinks;index as i" [ngClass]="getFieldLinkClass(i)" > | ||
<div class="field-link"> | ||
<a *scLink="fieldLink"></a> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
<ng-template #defaultTitle> | ||
<span class="is-empty-hint">Link list</span> | ||
</ng-template> | ||
</div> | ||
<div class="component-content"> | ||
<ng-container *ngIf="title; else defaultTitle"> | ||
<h3 *scText="title"></h3> | ||
</ng-container> | ||
<ul> | ||
<li *ngFor="let fieldLink of fieldLinks; index as i" [ngClass]="getFieldLinkClass(i)"> | ||
<div class="field-link"> | ||
<a *scLink="fieldLink"></a> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
<ng-template #defaultTitle> | ||
<span class="is-empty-hint">Link list</span> | ||
</ng-template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 21 additions & 26 deletions
47
...jss/src/templates/angular-xmcloud/src/app/components/navigation/navigation.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
<div | ||
class="component navigation {{ styles }} {{ this.rendering.params?.GridParameters }}" | ||
[attr.id]="id" | ||
> | ||
<label class="menu-mobile-navigate-wrapper"> | ||
<input | ||
type="checkbox" | ||
class="menu-mobile-navigate" | ||
[checked]="isOpenMenu" | ||
(change)="toggleMenu($event)" | ||
/> | ||
<div class="menu-humburger"></div> | ||
<div class="component-content"> | ||
<nav> | ||
<ul class="clearfix"> | ||
<app-navigation-item | ||
*ngFor="let navItemFields of rendering.fields" | ||
[navItemFields]="navItemFields" | ||
[relativeLevel]="baseLevel" | ||
(childLinkClickEvent)="toggleMenu($event, false)" | ||
></app-navigation-item> | ||
</ul> | ||
</nav> | ||
</div> | ||
</label> | ||
</div> | ||
<label class="menu-mobile-navigate-wrapper"> | ||
<input | ||
type="checkbox" | ||
class="menu-mobile-navigate" | ||
[checked]="isOpenMenu" | ||
(change)="toggleMenu($event)" | ||
/> | ||
<div class="menu-humburger"></div> | ||
<div class="component-content"> | ||
<nav> | ||
<ul class="clearfix"> | ||
<app-navigation-item | ||
*ngFor="let navItemFields of rendering.fields" | ||
[navItemFields]="navItemFields" | ||
[relativeLevel]="baseLevel" | ||
(childLinkClickEvent)="toggleMenu($event, false)" | ||
></app-navigation-item> | ||
</ul> | ||
</nav> | ||
</div> | ||
</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
...src/templates/angular-xmcloud/src/app/components/page-content/page-content.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<div class="component content {{styles}}" [attr.id]="id"> | ||
<div class="component-content"> | ||
<div class="field-content"> | ||
<div *scRichText="content || contextContent"></div> | ||
</div> | ||
<div class="component-content"> | ||
<div class="field-content"> | ||
<div *scRichText="content || contextContent"></div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 14 additions & 16 deletions
30
...-sitecore-jss/src/templates/angular-xmcloud/src/app/components/promo/promo.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 7 additions & 12 deletions
19
...ore-jss/src/templates/angular-xmcloud/src/app/components/richtext/richtext.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
<div | ||
class="component rich-text {{ styles }}" | ||
[attr.id]="id" | ||
> | ||
<div class="component-content"> | ||
<ng-container *ngIf="text; else emptyHint"> | ||
<div *scRichText="text"></div> | ||
</ng-container> | ||
<ng-template #emptyHint> | ||
<span class="is-empty-hint">Rich text</span> | ||
</ng-template> | ||
</div> | ||
<div class="component-content"> | ||
<ng-container *ngIf="text; else emptyHint"> | ||
<div *scRichText="text"></div> | ||
</ng-container> | ||
<ng-template #emptyHint> | ||
<span class="is-empty-hint">Rich text</span> | ||
</ng-template> | ||
</div> |
7 changes: 6 additions & 1 deletion
7
...ecore-jss/src/templates/angular-xmcloud/src/app/components/richtext/richtext.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 9 additions & 8 deletions
17
...src/templates/angular-xmcloud/src/app/components/row-splitter/row-splitter.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
<div class="component row-splitter" [ngClass]="rowSplitterStyles" [attr.id]="id"> | ||
<div *ngFor="let ph of enabledPlaceholders" class="container-fluid" [ngClass]="getRowClass(+ph - 1)"> | ||
<div> | ||
<div class="row"> | ||
<sc-placeholder [name]="getPlaceholderName(ph)" [rendering]="rendering"> | ||
</sc-placeholder> | ||
</div> | ||
<div | ||
*ngFor="let ph of enabledPlaceholders" | ||
class="container-fluid" | ||
[ngClass]="getRowClass(+ph - 1)" | ||
> | ||
<div> | ||
<div class="row"> | ||
<sc-placeholder [name]="getPlaceholderName(ph)" [rendering]="rendering"> </sc-placeholder> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 8 additions & 10 deletions
18
...-sitecore-jss/src/templates/angular-xmcloud/src/app/components/title/title.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
<div class="component title {{ styles }}" [attr.id]="id"> | ||
<div clas="component-content"> | ||
<div class="field-title"> | ||
<ng-container *ngIf="!pageEditing; else textOnly"> | ||
<a *scLink="link"></a> | ||
</ng-container> | ||
</div> | ||
<div clas="component-content"> | ||
<div class="field-title"> | ||
<ng-container *ngIf="!pageEditing; else textOnly"> | ||
<a *scLink="link"></a> | ||
</ng-container> | ||
</div> | ||
<ng-template #textOnly> | ||
<span *scText="text"></span> | ||
</ng-template> | ||
</div> | ||
<ng-template #textOnly> | ||
<span *scText="text"></span> | ||
</ng-template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters