Skip to content

Commit

Permalink
fix division
Browse files Browse the repository at this point in the history
  • Loading branch information
vikdiesel committed Dec 2, 2021
1 parent 6cefda0 commit 5714e54
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 2 deletions.
39 changes: 39 additions & 0 deletions src/components/Icon.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<template>
<span class="icon">
<svg
viewBox="0 0 24 24"
:width="size"
:height="size"
class="inline-block"
>
<path
fill="currentColor"
:d="path"
/>
</svg>
</span>
</template>

<script>
export default {
name: 'Icon',
props: {
path: {
type: String,
required: true
},
w: {
type: String,
default: 'w-6'
},
h: {
type: String,
default: 'h-6'
},
size: {
type: [String, Number],
default: 16
}
}
}
</script>
4 changes: 3 additions & 1 deletion src/scss/_aside.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math";

aside.aside {
@include transition(left);
width: $aside-mobile-width;
Expand Down Expand Up @@ -117,7 +119,7 @@ aside.aside {
display: none;

.aside-tools {
padding-left: $default-padding / 6;
padding-left: math.div($default-padding, 6);
}
}
html.has-aside-desktop-only-visible {
Expand Down
2 changes: 1 addition & 1 deletion src/scss/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
width: $icon-base-width;

&.has-update-mark:after {
right: ($icon-base-width / 2) - .85;
right: ($icon-base-width * .5) - .85;
}
}
}

0 comments on commit 5714e54

Please sign in to comment.