1
0
Fork 0
mirror of synced 2024-10-03 02:27:06 +13:00

Remove margin in BBUI body component

This commit is contained in:
Andrew Kingston 2021-05-19 09:02:51 +01:00
parent 2745506fc9
commit 76cef0b06d

View file

@ -3,27 +3,14 @@
export let size = "M"
export let serif = false
export let noPadding = false
export let weight = 400
export let textAlign = "left"
</script>
<p
style="font-weight:{weight};text-align:{textAlign};"
class:noPadding
class="spectrum-Body spectrum-Body--size{size}"
class:spectrum-Body--serif={serif}
>
<slot />
</p>
<style>
p {
margin-top: 0.75em;
margin-bottom: 0.75em;
}
.noPadding {
padding: 0;
margin: 0;
}
</style>