From 5e378213f3b8acbb45488693474acab2fbf5908f Mon Sep 17 00:00:00 2001 From: Mark Caron Date: Wed, 7 Aug 2024 13:53:16 -0400 Subject: [PATCH] feat(tile): accented tile CSS pattern demo (#1721) * feat(tile): add accented tile CSS pattern demo * feat(tile): add accented tile CSS pattern demo * feat(tile) unnesting CSS * feat(tile) adding border-width token to accented tile demo * feat(tile) removing nested CSS on custom props demo * docs(tile): adding accented tile pattern docs * feat(tile) moving accent tile pattern cta --------- Co-authored-by: Steven Spriggs --- docs/patterns/tile/index.md | 89 +++++++++++++++++++++++ docs/patterns/video-thumbnail/index.md | 2 +- elements/rh-tile/demo/accented-tiles.html | 66 +++++++++++++++++ 3 files changed, 156 insertions(+), 1 deletion(-) create mode 100644 docs/patterns/tile/index.md create mode 100644 elements/rh-tile/demo/accented-tiles.html diff --git a/docs/patterns/tile/index.md b/docs/patterns/tile/index.md new file mode 100644 index 0000000000..c6881dd784 --- /dev/null +++ b/docs/patterns/tile/index.md @@ -0,0 +1,89 @@ +--- +title: Tile +layout: layouts/pages/basic.njk +hasToc: true +order: 120 +tags: + - pattern +importElements: + - rh-tile + - rh-cta + - rh-surface + - rh-code-block +--- + + + + + + +## Overview + +Tiles are flexible layouts with clickable and contained surfaces. + + +## Accented tile + +The accented tile pattern should be used to draw attention to a specifc tile or set of tiles. Be careful not to apply the accented tile pattern to all tiles within a page, otherwise the accent effect will be lost. After all, "if everything is special, then nothing is special." + +
+
+

Example

+ + +

Link

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
+
+
+
+

CSS

+ + + +
+
+View accented tile demo diff --git a/docs/patterns/video-thumbnail/index.md b/docs/patterns/video-thumbnail/index.md index 3077808df2..b80fb5483c 100644 --- a/docs/patterns/video-thumbnail/index.md +++ b/docs/patterns/video-thumbnail/index.md @@ -1,6 +1,6 @@ --- title: Video thumbnail -order: 120 +order: 130 hasToc: true tags: - pattern diff --git a/elements/rh-tile/demo/accented-tiles.html b/elements/rh-tile/demo/accented-tiles.html new file mode 100644 index 0000000000..48e017ea8e --- /dev/null +++ b/elements/rh-tile/demo/accented-tiles.html @@ -0,0 +1,66 @@ + + + +

Link

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
+ + +

Link 2

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
+ + +

Link 2

+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. +
+
+
+ + + + + +