From 863ebf4cbc776498e84d51d4bd81742242287756 Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Tue, 9 Feb 2021 19:27:51 -0500 Subject: Adding experimental-gnome-tiles links style I'm trying to be very, very explicit about style hints that are experimental and currently only intended for a single use, because I really want to be able to drop these styles when we're done with them. --- test/mallard/source/banner-help.svg | 82 +++++++++++++++++++++++++++++++ test/mallard/source/credit1.page | 1 + test/mallard/source/index.page | 4 ++ test/mallard/source/note1.page | 1 + test/mallard/source/task1.page | 1 + xslt/common/css/core.css.tmpl | 21 ++++++++ xslt/common/css/mallard.css.tmpl | 34 +++++++++++++ xslt/mallard/html/mal2html-links.xsl | 94 ++++++++++++++++++++++++++++++++++++ 8 files changed, 238 insertions(+) create mode 100644 test/mallard/source/banner-help.svg diff --git a/test/mallard/source/banner-help.svg b/test/mallard/source/banner-help.svg new file mode 100644 index 00000000..9638c51e --- /dev/null +++ b/test/mallard/source/banner-help.svg @@ -0,0 +1,82 @@ + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/test/mallard/source/credit1.page b/test/mallard/source/credit1.page index 292da97b..c7ff118c 100644 --- a/test/mallard/source/credit1.page +++ b/test/mallard/source/credit1.page @@ -32,6 +32,7 @@ Clicky clicky the about expander at the bottom. + diff --git a/test/mallard/source/index.page b/test/mallard/source/index.page index 1505644f..e428033f 100644 --- a/test/mallard/source/index.page +++ b/test/mallard/source/index.page @@ -34,6 +34,10 @@ so uncomment whatever you want to test. div.links-tiles { display: flex; flex-flow: row wrap; @@ -214,6 +215,39 @@ div.links-tile > a > span.links-tile-text > span.desc { color: {{$color.fg.dark}}; } + +a.ex-gnome-tile { + display: block; + border: solid 1px {{$color.gray}}; + transition: box-shadow 0.5s linear; +} +a.ex-gnome-tile:hover { + box-shadow: 0px 2px 4px {{$color.gray}}; +} +span.ex-gnome-tile-banner { + display: block; + height: 112px; + background: {{$color.fg.blue}}; + overflow: hidden; +} +span.ex-gnome-tile-banner img { + width: 128px; height: 128px; + margin-{{$left}}: 64px; + margin-top: -8px; + transform: rotate(-10deg); +} +span.ex-gnome-tile-title { + color: {{$color.fg}}; + display: block; + margin: 10px 20px; + font-size: 1.2em; +} +span.ex-gnome-tile-desc { + color: {{$color.fg.gray}}; + display: block; + margin: 10px 20px; +} + div.links-grid-container { margin-left: -10px; diff --git a/xslt/mallard/html/mal2html-links.xsl b/xslt/mallard/html/mal2html-links.xsl index 7b63b4db..f15d17f9 100644 --- a/xslt/mallard/html/mal2html-links.xsl +++ b/xslt/mallard/html/mal2html-links.xsl @@ -145,6 +145,7 @@ parameter will be used if provided. + @@ -152,6 +153,7 @@ parameter will be used if provided. + @@ -159,12 +161,20 @@ parameter will be used if provided. + + + + + + + + @@ -172,6 +182,7 @@ parameter will be used if provided. + @@ -1236,6 +1247,89 @@ when determining which links to output. + + + + + + + + + -- cgit v1.2.1