-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a71045c
commit 567ff15
Showing
7 changed files
with
165 additions
and
1 deletion.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<igx-tabs> | ||
<igx-tabs-group label="My Albums" icon="library_music"> | ||
<div style="margin: 10px 3px 3px 1px"> | ||
<igx-card [horizontal]="true"> | ||
<div igxLayout igxLayoutDir="column" igxFlex igxFlexGrow="1"> | ||
<igx-card-header> | ||
<igx-avatar [src]="card.avatarUrl"></igx-avatar> | ||
<h5 igxCardHeaderTitle>{{card.title}}</h5> | ||
<h5 igxCardHeaderSubtitle>{{card.subtitle}}</h5> | ||
</igx-card-header> | ||
<igx-card-content> | ||
<p>{{card.content}}</p> | ||
</igx-card-content> | ||
<igx-card-actions [vertical]="false"> | ||
<button *ngFor="let button of card.buttons;" igxButton="flat" igxRipple> | ||
{{button}} | ||
</button> | ||
</igx-card-actions> | ||
</div> | ||
<igx-card-media width="96px"> | ||
<img [src]="card.imageUrl"> | ||
</igx-card-media> | ||
</igx-card> | ||
</div> | ||
</igx-tabs-group> | ||
<igx-tabs-group label="Favourites" icon="favorite"> | ||
<div style="margin: 3px"> | ||
<h5 igxCardHeaderSubtitle> | ||
Add your favourite songs here. | ||
</h5> | ||
</div> | ||
</igx-tabs-group> | ||
<igx-tabs-group label="Info" icon="info"> | ||
<div style="margin: 3px"> | ||
<h5 igxCardHeaderSubtitle> | ||
"Here" is the sixth studio album by American singer and songwriter Melow D. | ||
</h5> | ||
</div> | ||
</igx-tabs-group> | ||
</igx-tabs> |
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 |
---|---|---|
@@ -0,0 +1,80 @@ | ||
@import '~igniteui-angular/lib/core/styles/themes/index'; | ||
|
||
/*BASIC THEMING*/ | ||
|
||
$dark-tabs: igx-tabs-theme( | ||
$item-text-color: #F4D45C, | ||
$item-background: #292826, | ||
$item-hover-background: #F4D45C, | ||
$item-hover-color: #292826, | ||
$item-active-color: #F4D45C, | ||
$item-active-icon-color: #F4D45C, | ||
$indicator-color: #F4D45C, | ||
$tab-ripple-color: #F4D45C | ||
); | ||
|
||
/*ENHANCED APPROACHES*/ | ||
|
||
// $yellow-color: #F4D45C; | ||
// $black-color: #292826; | ||
// $dark-palette: igx-palette($primary: $black-color, $secondary: $yellow-color); | ||
|
||
// $dark-tabs: igx-tabs-theme( | ||
// $palette: $dark-palette, | ||
// $item-text-color: igx-color($dark-palette, "secondary", 400), | ||
// $item-background: igx-color($dark-palette, "primary", 400), | ||
// $item-hover-background: igx-color($dark-palette, "secondary", 400), | ||
// $item-hover-color: igx-color($dark-palette, "primary", 400), | ||
// $item-active-color: igx-color($dark-palette, "secondary", 400), | ||
// $item-active-icon-color: igx-color($dark-palette, "secondary", 400), | ||
// $indicator-color: igx-color($dark-palette, "secondary", 400), | ||
// $tab-ripple-color: igx-color($dark-palette, "secondary", 400) | ||
// ); | ||
|
||
/*SCHEMAS*/ | ||
|
||
// $dark-tabs-schema: extend($_dark-tabs, | ||
// ( | ||
// item-text-color: ( | ||
// igx-color: ("secondary", 400) | ||
// ), | ||
// item-background: ( | ||
// igx-color: ("primary", 400) | ||
// ), | ||
// item-hover-background: ( | ||
// igx-color: ("secondary", 400) | ||
// ), | ||
// item-hover-color: ( | ||
// igx-color: ("primary", 400) | ||
// ), | ||
// item-active-color: ( | ||
// igx-color: ("secondary", 400) | ||
// ), | ||
// item-active-icon-color: ( | ||
// igx-color: ("secondary", 400) | ||
// ), | ||
// indicator-color: ( | ||
// igx-color: ("secondary", 400) | ||
// ), | ||
// tab-ripple-color: ( | ||
// igx-color: ("secondary", 400) | ||
// ) | ||
// ) | ||
// ); | ||
|
||
// $custom-dark-schema: extend($dark-schema,( | ||
// igx-tabs: $dark-tabs-schema | ||
// )); | ||
|
||
// $dark-tabs: igx-tabs-theme( | ||
// $palette: $dark-palette, | ||
// $schema: $custom-dark-schema | ||
// ); | ||
|
||
/*INCLUSION by DEFAULT ViewEncapsulation strategy*/ | ||
|
||
:host { | ||
::ng-deep { | ||
@include igx-tabs($dark-tabs); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { Component, OnInit } from "@angular/core"; | ||
|
||
@Component({ | ||
selector: "app-tabs-style", | ||
styleUrls: ["./tabs-style.component.scss"], | ||
templateUrl: "./tabs-style.component.html" | ||
}) | ||
export class TabsStyleComponent implements OnInit { | ||
|
||
public card = { | ||
avatarUrl: "assets/images/card/avatars/mellow_d.jpg", | ||
buttons: ["play album"], | ||
content: `Far far away, behind the word mountains, | ||
far from the countries Vokalia and Consonantia, | ||
there live the blind texts.`, | ||
imageUrl: "assets/images/card/media/here_media.jpg", | ||
subtitle: "by Mellow D", | ||
title: "HERE" | ||
}; | ||
|
||
constructor() { } | ||
|
||
public ngOnInit() { } | ||
} |