Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
feat(tabs): changes default state of tabs to be transparent.
Browse files Browse the repository at this point in the history
Closes #1250
  • Loading branch information
Robert Messerle committed Feb 4, 2015
1 parent f1a4bcc commit a0b6e18
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/components/tabs/demoDynamicTabs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<div class="demo-tab tab{{$index%4}}" layout="column" layout-fill layout-align="space-around center">
<div ng-bind="tab.content"></div>
<md-button class="md-warn" ng-click="removeTab( tab )">
<md-button class="md-primary md-raised" ng-click="removeTab( tab )">
Remove Tab
</md-button>
</div>
Expand Down
27 changes: 4 additions & 23 deletions src/components/tabs/demoDynamicTabs/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,21 @@
margin-bottom: 40px;
}

.md-button {
display:block;
}

.demo-tab {
height: 300px;
text-align: center;
}
.tab0, .tab1, .tab2, .tab3 {
background-color: #bbdefb;
}

.md-header {
background-color: #1976D2 !important;
}
md-tab {
color: #90caf9 !important;
}
md-tab.active,
md-tab:focus {
color: white !important;
md-tabs, md-tabs .md-header {
border-bottom: 1px solid #D8D8D8;
}
md-tab[disabled] {
opacity: 0.5;
}
.md-header .md-ripple {
border-color: #FFFF8D !important;
}
md-tabs-ink-bar {
background-color: #FFFF8D !important;
.md-tab-content {
background: white;
}

.title {
Expand All @@ -57,10 +42,6 @@ form > [layout] > * {
width: 264px;
}

.md-button {
max-height: 30px;
}

.md-button.add-tab {
margin-top:20px;
max-height:30px !important;
Expand Down
46 changes: 37 additions & 9 deletions src/components/tabs/tabs-theme.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
md-tabs.md-THEME_NAME-theme {
.md-header {
background-color: '{{primary-color}}';
background-color: transparent;
}

&.md-accent {
Expand All @@ -16,6 +16,34 @@ md-tabs.md-THEME_NAME-theme {
}
}

&.md-primary {
.md-header {
background-color: '{{primary-color}}';
}
md-tab:not([disabled]) {
color: '{{primary-100}}';
&.active {
color: '{{primary-contrast}}';
}
}
md-tab {
color: '{{primary-100}}';
&.active {
color: '{{primary-contrast}}';
}
&[disabled] {
color: '{{foreground-4}}';
}
&:focus {
color: '{{primary-contrast}}';
background-color: '{{primary-contrast-0.1}}';
}
.md-ripple-container {
color: '{{primary-contrast}}';
}
}
}

&.md-warn {
.md-header {
background-color: '{{warn-color}}';
Expand All @@ -31,24 +59,24 @@ md-tabs.md-THEME_NAME-theme {


md-tabs-ink-bar {
color: '{{primary-contrast}}';
background: '{{primary-contrast}}';
color: '{{accent-color}}';
background: '{{accent-color}}';
}

md-tab {
color: '{{primary-100}}';
color: '{{foreground}}';
color: '{{foreground-0.6}}';
&.active {
color: '{{primary-contrast}}';
color: '{{primary-color}}';
}
&[disabled] {
color: '{{foreground-4}}';
color: '{{foreground-0.4}}';
}
&:focus {
color: '{{primary-contrast}}';
background-color: '{{primary-contrast-0.1}}';
color: '{{foreground}}';
}
.md-ripple-container {
color: '{{primary-contrast}}';
color: '{{accent-100}}';
}
}
}

0 comments on commit a0b6e18

Please sign in to comment.