mirror of https://github.com/Budibase/budibase.git
committed by
GitHub
8 changed files with 79 additions and 30 deletions
@ -0,0 +1,23 @@ |
|||
<script> |
|||
import {buildStyle} from "./helpers.js" |
|||
|
|||
export let backgroundSize = "10px" |
|||
export let borderRadius = "" |
|||
export let height = "" |
|||
export let width = "" |
|||
|
|||
$: style = buildStyle({backgroundSize, borderRadius, height, width}) |
|||
|
|||
</script> |
|||
|
|||
<style> |
|||
div { |
|||
background-image: url('data:image/svg+xml;utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2 2"><path fill="white" d="M1,0H2V1H1V0ZM0,1H1V2H0V1Z"/><path fill="gray" d="M0,0H1V1H0V0ZM1,1H2V2H1V1Z"/></svg>'); |
|||
height: fit-content; |
|||
width: fit-content; |
|||
} |
|||
</style> |
|||
|
|||
<div {style}> |
|||
<slot /> |
|||
</div> |
|||
Loading…
Reference in new issue