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

Commit

Permalink
feat(a): support theme colors
Browse files Browse the repository at this point in the history
- default is set to accent according the spec
- supporting primary and warn colors as well

> breaking

fixing #6815

Closes #7472
  • Loading branch information
EladBezalel authored and ThomasBurleson committed Mar 8, 2016
1 parent 91ec2bf commit 3177e66
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/app/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,14 @@ body.docs-body {
* TYPE DEFAULTS
***************/
a {
color: #106CC8;
text-decoration: none;
font-weight: 400;
border-bottom: 1px solid rgba(64, 84, 178, 0.25);
-webkit-transition: border-bottom 0.35s;
-moz-transition: border-bottom 0.35s;
-ms-transition: border-bottom 0.35s;
-o-transition: border-bottom 0.35s;
transition: border-bottom 0.35s;
}
a:hover, a:focus {
border-bottom: 1px solid #4054B2;
}
a.md-button {
border-bottom: none;
}
h1, h2, h3, h4, h5, h6 {
margin-bottom: 1rem;
margin-top: 1rem;
Expand Down
24 changes: 24 additions & 0 deletions src/components/button/button-theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,27 @@ a.md-button.md-THEME_NAME-theme,
background-color: transparent;
}
}

a.md-THEME_NAME-theme:not(.md-button) {
color: '{{accent-color}}';

&:hover {
color: '{{accent-700}}';
}

&.md-primary {
color: '{{primary-color}}';

&:hover {
color: '{{primary-700}}';
}
}

&.md-warn {
color: '{{warn-color}}';

&:hover {
color: '{{warn-700}}';
}
}
}

0 comments on commit 3177e66

Please sign in to comment.