This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +51
-15
lines changed Expand file tree Collapse file tree 5 files changed +51
-15
lines changed Original file line number Diff line number Diff line change 22
22
data.selectedIndex = 2;
23
23
</ md-tab-body >
24
24
</ md-tab >
25
+ < md-tab id ="tab4 ">
26
+ < md-tab-label > < md-icon md-svg-icon ="communication:phone "> </ md-icon > </ md-tab-label >
27
+ < md-tab-body >
28
+ View for Item #4 < br />
29
+ data.selectedIndex = 3;
30
+ </ md-tab-body >
31
+ </ md-tab >
32
+ < md-tab id ="tab5 ">
33
+ < md-tab-label > < md-icon md-svg-icon ="favorite "> </ md-icon > </ md-tab-label >
34
+ < md-tab-body >
35
+ View for Item #5 < br />
36
+ data.selectedIndex = 4;
37
+ </ md-tab-body >
38
+ </ md-tab >
25
39
</ md-tabs >
26
40
</ md-content >
27
41
Original file line number Diff line number Diff line change 1
- < p > The Static Tabs demo how to disable and bottom-align tabs:</ p >
1
+ < p > The Static Tabs demo shows how to disable and bottom-align tabs:</ p >
Original file line number Diff line number Diff line change 2
2
'use strict' ;
3
3
4
4
angular
5
- . module ( 'tabsDemoStaticTabs' , [ 'ngMaterial' ] )
5
+ . module ( 'tabsDemoIconTabs' , [ 'ngMaterial' ] )
6
+ . config ( function ( $mdIconProvider ) {
7
+ $mdIconProvider
8
+ . iconSet ( 'communication' , 'img/icons/sets/communication-icons.svg' )
9
+ . icon ( 'favorite' , 'img/icons/favorite.svg' ) ;
10
+ } )
6
11
. controller ( 'AppCtrl' , AppCtrl ) ;
7
12
8
13
function AppCtrl ( $scope ) {
Original file line number Diff line number Diff line change 1
- md-tab-content {
2
- padding : 25px ;
3
- & :nth-child (1 ) {
4
- background-color : #42A5F5 ;
5
- }
6
- & :nth-child (2 ) {
7
- background-color : #689F38 ;
8
- }
9
- & :nth-child (3 ) {
10
- background-color : #26C6DA ;
1
+ md-content {
2
+ md-tabs {
3
+ border : 1px solid #e1e1e1 ;
4
+ md-tab-content {
5
+ padding : 25px ;
6
+ & :nth-child (1 ) {
7
+ background-color : #cfd8dc ;
8
+ }
9
+ & :nth-child (2 ) {
10
+ background-color : #ffb74d ;
11
+ }
12
+ & :nth-child (3 ) {
13
+ background-color : #ffd54f ;
14
+ }
15
+ & :nth-child (4 ) {
16
+ background-color : #aed581 ;
17
+ }
18
+ & :nth-child (5 ) {
19
+ background-color : #00897b ;
20
+ }
21
+ }
11
22
}
12
23
}
13
24
.after-tabs-area {
Original file line number Diff line number Diff line change 4
4
> md-tabs-canvas {
5
5
> md-pagination-wrapper {
6
6
> md-tab-item :not ([disabled ]) {
7
- color : ' {{primary-100}}' ;
7
+ & , md-icon {
8
+ color : ' {{primary-100}}' ;
9
+ }
8
10
& .md-active , & .md-focused {
9
11
& , md-icon {
10
12
color : ' {{primary-contrast}}' ;
24
26
> md-tabs-canvas {
25
27
> md-pagination-wrapper {
26
28
> md-tab-item :not ([disabled ]) {
27
- color : ' {{warn-100}}' ;
29
+ & , md-icon {
30
+ color : ' {{warn-100}}' ;
31
+ }
28
32
& .md-active , & .md-focused {
29
33
& , md-icon {
30
34
color : ' {{warn-contrast}}' ;
44
48
> md-tabs-canvas {
45
49
> md-pagination-wrapper {
46
50
> md-tab-item :not ([disabled ]) {
47
- color : ' {{accent-A100}}' ;
51
+ & , md-icon {
52
+ color : ' {{accent-A100}}' ;
53
+ }
48
54
& .md-active , & .md-focused {
49
55
& , md-icon {
50
56
color : ' {{accent-contrast}}' ;
You can’t perform that action at this time.
0 commit comments