Skip to content

Commit

Permalink
Visual fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Jun 23, 2021
1 parent a4d06d2 commit 722a441
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
7 changes: 7 additions & 0 deletions src/assets/mixins/utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
flex-direction: column;
}

@mixin flexBoxWidth($width) {
-webkit-box-flex: 0;
-ms-flex: 0 0 $width;
flex: 0 0 $width;
max-width: $width;
}

@mixin box-shadow($shadow...) {
-webkit-box-shadow: $shadow; // iOS <4.3 & Android <4.1
box-shadow: $shadow;
Expand Down
15 changes: 9 additions & 6 deletions src/components/ui/FbIconWithChild/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
&[data-size="lg"] {
padding-right: 5px;
padding-bottom: 2px;
line-height: $main-icon-size-lg;

.fb-ui-icon-with-child {
&__icon {
Expand All @@ -36,15 +37,16 @@

&__child-icon {
font-size: $child-icon-size-lg - (0.1rem * 6);
height: $child-icon-size-lg - (0.1rem * 2);
width: $child-icon-size-lg - (0.1rem * 2);
height: $child-icon-size-lg;
width: $child-icon-size-lg;
}
}
}

&[data-size="md"] {
padding-right: 4px;
padding-bottom: 2px;
line-height: $main-icon-size-md;

.fb-ui-icon-with-child {
&__icon {
Expand All @@ -54,15 +56,16 @@

&__child-icon {
font-size: $child-icon-size-md - (0.1rem * 6);
height: $child-icon-size-md - (0.1rem * 2);
width: $child-icon-size-md - (0.1rem * 2);
height: $child-icon-size-md;
width: $child-icon-size-md;
}
}
}

&[data-size="sm"] {
padding-right: 3px;
padding-bottom: 2px;
line-height: $main-icon-size-sm;

.fb-ui-icon-with-child {
&__icon {
Expand All @@ -72,8 +75,8 @@

&__child-icon {
font-size: $child-icon-size-sm - (0.1rem * 6);
height: $child-icon-size-sm - (0.1rem * 2);
width: $child-icon-size-sm - (0.1rem * 2);
height: $child-icon-size-sm;
width: $child-icon-size-sm;
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion src/components/ui/FbModalForm/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
>
<slot name="form" />

<div class="fb-ui-modal-form__result">
<div
v-if="[resultTypes.WORKING, resultTypes.OK, resultTypes.ERROR].includes(state)"
class="fb-ui-modal-form__result"
>
<fb-ui-spinner v-if="state === resultTypes.WORKING" />
<fb-ui-result-ok v-if="state === resultTypes.OK" />
<fb-ui-result-err v-if="state === resultTypes.ERROR" />
Expand Down

0 comments on commit 722a441

Please sign in to comment.