Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

Commit

Permalink
feat: add link colors to css vars, add uiButton link demo
Browse files Browse the repository at this point in the history
  • Loading branch information
navix committed Oct 13, 2018
1 parent 660d3a1 commit 9fcf063
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Expand Up @@ -11,6 +11,7 @@ <h3>Default state</h3>
<button uiButton color="success">Success color</button>
<button uiButton color="warning">Warning color</button>
<button uiButton color="info">Info color</button>
<button uiButton [link]="true">Link</button>
<h3>Disabled state</h3>
<button uiButton disabled>Default button</button>
<button uiButton color="primary" disabled>Primary color</button>
Expand Down
Expand Up @@ -106,21 +106,21 @@

&.link {
background: none;
color: var(--primaryColor);
color: var(--linkColor);
border: none;
&:hover {
background: none;
box-shadow: none;
border: none;
color: var(--primaryHoverColor);
color: var(--linkHoverColor);
text-decoration: underline;
transform: none;
}
&:active, &.checked {
background: none;
box-shadow: none;
border: none;
color: var(--primaryActiveColor);
color: var(--linkActiveColor);
transform: none;
}
&:disabled {
Expand Down
5 changes: 5 additions & 0 deletions projects/ui/src/themes/main.css
Expand Up @@ -17,6 +17,11 @@
--mainHoverBgColor: #f0f0f0;
--mainHoverTextColor: #24252f;

/* Link colors */
--linkColor: #7288d8;
--linkHoverColor: #6275b9;
--linkActiveColor: #4f5d93;

/* Trans colors */
--toBackgroundColor1: rgba(230, 230, 230, .1);
--toBackgroundColor2: rgba(230, 230, 230, .2);
Expand Down

0 comments on commit 9fcf063

Please sign in to comment.