Grid
For the moment a very basic grid is provided.
# Examples
<hy-grid-container>
<hy-grid-row>
<hy-grid-item columns="6" columnsSm="12" columnsLg="4" contentAlign="left"></hy-grid-item>
</hy-grid-row>
</hy-grid-container>
# Grid example
<style lang="scss">
.hy-example-grid {
hy-grid-item {
background-color: var(--grayscale-medium-dark);
color: var(--grayscale-white);
&:nth-child(even) {
background-color: var(--grayscale-medium);
}
}
}
</style>
<hy-docs-container>
<hy-grid-container class="hy-example-grid">
<hy-grid-row>
<hy-grid-item columns="6" columnsSm="12" columnsLg="4" contentAlign="left">
<hy-tiny-text>Content aligned to left</hy-tiny-text>
</hy-grid-item>
<hy-grid-item columns="6" columnsSm="12" columnsLg="4" contentAlign="center">
<hy-tiny-text>Content aligned to center</hy-tiny-text>
</hy-grid-item>
<hy-grid-item columns="6" columnsSm="12" columnsLg="4" contentAlign="right">
<hy-tiny-text>Content aligned to right</hy-tiny-text>
</hy-grid-item>
<hy-grid-item columns="6" columnsSm="12" columnsLg="4" contentAlign="left">
<hy-tiny-text>Content aligned to left</hy-tiny-text>
</hy-grid-item>
<hy-grid-item columns="6" columnsSm="12" columnsLg="4" contentAlign="right">
<hy-tiny-text>Content aligned to right</hy-tiny-text>
</hy-grid-item>
<hy-grid-item columns="6" columnsSm="12" columnsLg="4" contentAlign="center">
<hy-tiny-text>Content aligned to center</hy-tiny-text>
</hy-grid-item>
<hy-grid-item columns="6" columnsSm="12" columnsLg="4" contentAlign="left">
<hy-tiny-text>Content aligned to left</hy-tiny-text>
</hy-grid-item>
<hy-grid-item columns="6" columnsSm="12" columnsLg="4" contentAlign="center">
<hy-tiny-text>Content aligned center</hy-tiny-text>
</hy-grid-item>
<hy-grid-item columns="6" columnsSm="12" columnsLg="4" contentAlign="left">
<hy-tiny-text>Content aligned to left</hy-tiny-text>
</hy-grid-item>
</hy-grid-row>
</hy-grid-container>
</hy-docs-container>
Helsinki University Design System
← Footer info Heading →