This repository has been archived by the owner on Feb 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(tabs): add dynamic height example
- fix styles for dynamic height
- Loading branch information
1 parent
cf40976
commit 877a3ef
Showing
7 changed files
with
112 additions
and
72 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
tabs-dynamic-height { | ||
background-color: transparent !important; | ||
md-tabs { | ||
background: #f6f6f6; | ||
border: 1px solid #e1e1e1; | ||
md-tabs-wrapper { | ||
background: white; | ||
} | ||
md-content { | ||
background-color: transparent; | ||
} | ||
} | ||
h1:first-child { | ||
margin-top: 0; | ||
} | ||
} |
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,11 +1,13 @@ | ||
import {View, Component} from 'angular2/core'; | ||
import {MATERIAL_DIRECTIVES} from '../../base'; | ||
import {ViewEncapsulation} from "angular2/core"; | ||
|
||
@Component({selector: 'tabs-dynamic-height'}) | ||
@View({ | ||
templateUrl: 'examples/components/tabs/dynamic_height.html', | ||
//styleUrls: ['examples/components/tabs/dynamic_height.scss'], | ||
directives: [MATERIAL_DIRECTIVES] | ||
styleUrls: ['examples/components/tabs/dynamic_height.css'], | ||
directives: [MATERIAL_DIRECTIVES], | ||
encapsulation: ViewEncapsulation.None | ||
}) | ||
export default class TabsDynamicHeight { | ||
} |
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,45 +1,61 @@ | ||
form { | ||
h2.md-subhead { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
margin: 0; | ||
font-weight: 500; | ||
text-transform: uppercase; | ||
line-height: 35px; | ||
white-space: nowrap; | ||
} | ||
} | ||
tabs-dynamic-tabs { | ||
|
||
form { | ||
h2.md-subhead { | ||
position: absolute; | ||
bottom: 0; | ||
left: 0; | ||
margin: 0; | ||
font-weight: 500; | ||
text-transform: uppercase; | ||
line-height: 35px; | ||
white-space: nowrap; | ||
} | ||
} | ||
|
||
// | ||
md-content { | ||
background-color: transparent !important; | ||
md-tabs { | ||
border: 1px solid #e1e1e1; | ||
md-tab-content { | ||
background-color: #f6f6f6 !important; | ||
} | ||
md-tabs-wrapper { | ||
background: white; | ||
} | ||
} | ||
h1:first-child { | ||
margin-top: 0; | ||
} | ||
} | ||
md-input-container { | ||
padding-bottom: 0; | ||
} | ||
.remove-tab { | ||
margin-bottom: 40px; | ||
} | ||
.demo-tab > div > div { | ||
padding: 25px; | ||
box-sizing: border-box; | ||
} | ||
.edit-form input { | ||
width: 100%; | ||
} | ||
md-tabs { | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.12); | ||
} | ||
md-tab[disabled] { | ||
opacity: 0.5; | ||
} | ||
label { | ||
text-align: left; | ||
} | ||
|
||
md-input-container { | ||
padding-bottom: 0; | ||
} | ||
.remove-tab { | ||
margin-bottom: 40px; | ||
} | ||
.demo-tab > div > div { | ||
padding: 25px; | ||
box-sizing: border-box; | ||
} | ||
.edit-form input { | ||
width: 100%; | ||
} | ||
md-tabs { | ||
border-bottom: 1px solid rgba(0,0,0,0.12); | ||
} | ||
md-tab[disabled] { | ||
opacity: 0.5; | ||
} | ||
label { | ||
text-align: left; | ||
} | ||
.long > input { | ||
width: 264px; | ||
} | ||
.md-button.add-tab { | ||
transform: translateY(5px); | ||
} | ||
|
||
.long > input { | ||
width: 264px; | ||
} | ||
.md-button.add-tab { | ||
transform: translateY(5px); | ||
} |
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