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

feat(a): support theme colors #7472

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}}';
}
}
}