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

Commit

Permalink
Revert "fix(tabs): not selected tab text color as spec"
Browse files Browse the repository at this point in the history
This reverts commit ccfef92.
  • Loading branch information
ThomasBurleson committed Apr 8, 2016
1 parent 877551c commit 6a480fd
Showing 1 changed file with 56 additions and 22 deletions.
78 changes: 56 additions & 22 deletions src/components/tabs/tabs-theme.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,68 @@
@mixin md-tab-theme($theme) {
@mixin md-tab-primary {
> md-tabs-wrapper {
background-color: '{{#{$theme}-color}}';
background-color: '{{primary-color}}';
> md-tabs-canvas {
> md-pagination-wrapper {
> md-tab-item:not([disabled]) {
color: '{{primary-100}}';
&.md-active, &.md-focused {
&, md-icon {
color: '{{#{$theme}-contrast}}';
color: '{{primary-contrast}}';
}
}
&.md-focused {
background: '{{#{$theme}-contrast-0.1}}';
background: '{{primary-contrast-0.1}}';
}
}
}
}
}
}
@mixin md-tab-warn {
> md-tabs-wrapper {
background-color: '{{warn-color}}';
> md-tabs-canvas {
> md-pagination-wrapper {
> md-tab-item:not([disabled]) {
color: '{{warn-100}}';
&.md-active, &.md-focused {
&, md-icon {
color: '{{warn-contrast}}';
}
}
&.md-focused {
background: '{{warn-contrast-0.1}}';
}
}
}
}
}
}
@mixin md-tab-accent {
> md-tabs-wrapper {
background-color: '{{accent-color}}';
> md-tabs-canvas {
> md-pagination-wrapper {
> md-tab-item:not([disabled]) {
color: '{{accent-A100}}';
&.md-active, &.md-focused {
&, md-icon {
color: '{{accent-contrast}}';
}
}
&.md-focused {
background: '{{accent-contrast-0.1}}';
}
}
> md-ink-bar {
color: '{{primary-600-1}}';
background: '{{primary-600-1}}';
}
}
}
}

}
md-tabs.md-THEME_NAME-theme {
md-tabs-wrapper {
background-color: transparent;
Expand Down Expand Up @@ -51,37 +97,25 @@ md-tabs.md-THEME_NAME-theme {
}
}

&.md-accent, &.md-primary, &.md-warn{
> md-tabs-wrapper {
> md-tabs-canvas {
> md-pagination-wrapper {
> md-tab-item:not([disabled]) {
color: rgba(255, 255, 255, 0.7);
}
}
}
}
}

&.md-accent {
@include md-tab-theme('accent');
@include md-tab-accent();
}

&.md-primary {
@include md-tab-theme('primary');
@include md-tab-primary();
}

&.md-warn {
@include md-tab-theme('warn');
@include md-tab-warn();
}
}

md-toolbar > md-tabs.md-THEME_NAME-theme {
@include md-tab-theme('primary');
@include md-tab-primary();
}
md-toolbar.md-accent > md-tabs.md-THEME_NAME-theme {
@include md-tab-theme('accent');
@include md-tab-accent();
}
md-toolbar.md-warn > md-tabs.md-THEME_NAME-theme {
@include md-tab-theme('warn');
@include md-tab-warn();
}

0 comments on commit 6a480fd

Please sign in to comment.