From 1ed5da6b117e109230a07924a2d9cedc86348a10 Mon Sep 17 00:00:00 2001 From: seanaaronkearney Date: Tue, 10 May 2022 09:16:52 +0000 Subject: [PATCH] GitBook: [#34] No subject --- SUMMARY.md | 3 ++- themes/available-attributes.md | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 themes/available-attributes.md diff --git a/SUMMARY.md b/SUMMARY.md index d15044c..2242845 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -12,6 +12,7 @@ * [Creating a theme](themes/theme-stylesheets.md) * [Theme definitions (theme.json)](themes/theme-definitions-theme.json.md) +* [Available Attributes](themes/available-attributes.md) * [Using Resources in Themes](themes/using-resources-in-themes.md) * [Publishing to GitHub](themes/publishing-to-github.md) @@ -37,4 +38,4 @@ ## ✋ Support * [Troubleshooting](support/troubleshooting.md) -* [FAQ](support/faqs.md) \ No newline at end of file +* [FAQ](support/faqs.md) diff --git a/themes/available-attributes.md b/themes/available-attributes.md new file mode 100644 index 0000000..051de5f --- /dev/null +++ b/themes/available-attributes.md @@ -0,0 +1,10 @@ +# Available Attributes + +Attributes are applied to elements to expose app state information to CSS + +| Attribute Pattern | Values | Description | +| --------------------- | ------------------------------------------------------------------------------------------ | ------------------------- | +| body\[video-playing] | | Is a music video playing? | +| body\[focus-state] | | Focus state of the window | +| body\[playback-state] | | Current playback state | +| #app\[window-style] | | Window Layout Style |