Jekyll use kramdown as the default markdown processor. kramdown can adding attributes to block and span-level elements throw ALDs1 feature. with the help of ALDs, we can defined class names to an element by {:.class-name1.class-name-2}
.
TeXt offer some class names that you can use in the post.
Alert
Class Names |
---|
success |
info |
warning |
error |
Success Text.
Info Text.
Warning Text.
Error Text.
markdown:
Success Text.
{:.success}
Info Text.
{:.info}
Warning Text.
{:.warning}
Error Text.
{:.error}
Photo Frame
Class Names |
---|
border |
shadow |
rounded |
circle |
Border | Shadow |
---|---|
![Lenna](path-to-image.jpg){:.border} |
![Lenna](path-to-image.jpg){:.shadow} |
Rounded | Circle |
---|---|
![Lenna](path-to-image.jpg){:.rounded} |
![Lenna](path-to-image.jpg){:.circle} |
Border + Rounded | Circle + Shadow |
---|---|
![Lenna](path-to-image.jpg){:.border.rounded} |
![Lenna](path-to-image.jpg){:.circle.shadow} |
Button
Type | Class Names |
---|---|
base | button |
type | button--primary, button--secondary, button--success, button--info, button--warning, button--error |
shape | button--pill, button--rounded, button--circle |
size | button--md(default), button--sm, button--lg |
[BUTTON](#){:.button.button--primary.button--pill}
[BUTTON](#){:.button.button--secondary.button--pill}
[BUTTON](#){:.button.button--primary.button--rounded}
[X](#){:.button.button--primary.button--circle}
[BUTTON](#){:.button.button--secondary.button--rounded.button--sm}
[BUTTON](#){:.button.button--secondary.button--rounded.button--lg}