mirror of
https://github.com/phuoc-ng/csslayout.git
synced 2025-10-24 11:16:27 +02:00
feat: Fixed at corner
This commit is contained in:
@@ -54,8 +54,9 @@ module.exports = function(eleventyConfig) {
|
||||
return `<div class="square"></div>`;
|
||||
});
|
||||
// `corner` can be one of `t`, `r`, `b`, `l`, `tr`, `br`, `tl`, `bl`
|
||||
eleventyConfig.addShortcode('triangle', function(corner) {
|
||||
return `<div class="triangle triangle--${corner}"></div>`;
|
||||
eleventyConfig.addShortcode('triangle', function(corner, size) {
|
||||
const s = size || 'sm';
|
||||
return `<div class="triangle triangle--${corner} triangle--${s}"></div>`;
|
||||
});
|
||||
|
||||
// Get the first `n` elements of a collection.
|
||||
|
||||
Reference in New Issue
Block a user