use scss tokens for counter icon and loading spinner

This commit is contained in:
Alina Beck 2020-01-09 14:47:14 +05:30
parent b71638d29f
commit 70d632e392
3 changed files with 13 additions and 6 deletions

View File

@ -258,6 +258,13 @@ $size-avatar-x-large: 114px;
$size-button-base: 36px;
$size-button-small: 26px;
/**
* @tokens Size Buttons
* @presenter Spacing
*/
$size-icon-base: 16px;
/**
* @tokens Shadow
* @presenter Shadow

View File

@ -33,21 +33,21 @@ export default {
> .count {
position: absolute;
top: -4px;
top: -$space-xx-small;
right: 0;
display: inline-flex;
align-items: center;
justify-content: center;
height: 16px;
min-width: 16px;
padding: 3px;
height: $size-icon-base;
min-width: $size-icon-base;
padding: 3px; // magic number to center count
border-radius: 50%;
transform: translateX(50%);
color: $color-neutral-100;
background-color: $color-primary;
font-size: 10px;
font-size: 10px; // magic number to center count
line-height: 1;
text-align: center;

View File

@ -12,7 +12,7 @@ export default {
<style lang="scss">
.loading-spinner {
height: 36px;
height: $size-button-base;
overflow: hidden;
stroke: currentColor;
animation: rotate 16s linear infinite;