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

Commit

Permalink
fix(ui/button): increase icon size
Browse files Browse the repository at this point in the history
  • Loading branch information
navix committed Oct 27, 2018
1 parent 4701d2f commit d4af6a8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<kit-icon *ngIf="icon && !loading"
[name]="icon"
size="1.5em"
class="icon">
</kit-icon>
<kit-icon *ngIf="loading"
name="loading-7"
size="1.5em"
class="icon">
</kit-icon>
<span class="content">
Expand Down
14 changes: 9 additions & 5 deletions projects/ui/src/lib/ui-button/ui-button/ui-button.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
box-sizing: border-box;
color: var(--color);
cursor: pointer;
display: inline-block;
display: inline-flex;
font-weight: 400;
line-height: 1.42857;
margin-bottom: 0;
Expand All @@ -18,9 +18,16 @@
transition-duration: var(--transition);
transition-property: background, box-shadow;
user-select: none;
vertical-align: middle;
vertical-align: top;
white-space: nowrap;

.content {
line-height: 1.5;
}
.icon + .content:not(:empty) {
padding-left: var(--grid);
}

&:hover {
background: var(--hoverBackground);
box-shadow: var(--shadow);
Expand Down Expand Up @@ -181,7 +188,4 @@
}
}
}
.icon + .content:not(:empty) {
padding-left: var(--grid);
}
}

0 comments on commit d4af6a8

Please sign in to comment.