This repository has been archived by the owner on Mar 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vm-logs): align fab content (#1438)
* fix(vm-logs): align fab content * vm logs key mock * refactor fab styles * remove duplicated css * Revert "vm logs key mock" This reverts commit b5a757a. * refactor mat fab styles
- Loading branch information
Vladimir Shakhov
committed
Nov 27, 2018
1 parent
7902994
commit a188931
Showing
3 changed files
with
45 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/deep/ .mat-fab { | ||
// original fab size = 56px | ||
// original padding = 16px | ||
// original line height = 24px | ||
// new fab size = 50px | ||
// set new values to (50 * 56 / original_size) to scale down | ||
|
||
$mat-fab-ratio: 50 / 56; | ||
|
||
width: 50px; | ||
height: 50px; | ||
|
||
& .mat-button-wrapper { | ||
padding: $mat-fab-ratio * 16px 0; | ||
line-height: $mat-fab-ratio * 24px; | ||
} | ||
|
||
& .mat-icon { | ||
width: $mat-fab-ratio * 24px; | ||
height: $mat-fab-ratio * 24px; | ||
line-height: $mat-fab-ratio * 24px; | ||
font-size: $mat-fab-ratio * 24px; | ||
} | ||
} | ||
|
||
/deep/ .mat-mini-fab { | ||
$mat-mini-fab-ratio: 36 / 40; | ||
|
||
width: 36px; | ||
height: 36px; | ||
|
||
& .mat-button-wrapper { | ||
padding: $mat-mini-fab-ratio * 8px 0; | ||
line-height: $mat-mini-fab-ratio * 24px; | ||
} | ||
|
||
& .mat-icon { | ||
width: $mat-mini-fab-ratio * 24px; | ||
height: $mat-mini-fab-ratio * 24px; | ||
line-height: $mat-mini-fab-ratio * 24px; | ||
font-size: $mat-mini-fab-ratio * 24px; | ||
} | ||
} |