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. --- xslt/common/css/core.css.tmpl | 21 ++++++++ xslt/common/css/mallard.css.tmpl | 34 +++++++++++++ xslt/mallard/html/mal2html-links.xsl | 94 ++++++++++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+) (limited to 'xslt') diff --git a/xslt/common/css/core.css.tmpl b/xslt/common/css/core.css.tmpl index bd19c49c..1ed0ff12 100644 --- a/xslt/common/css/core.css.tmpl +++ b/xslt/common/css/core.css.tmpl @@ -226,6 +226,27 @@ dl.compact dt { margin-top: 0.2em; } dl.compact dt:first-child { margin-top: 0; } dl.compact dt + dt { margin-top: 0; } +div.tiles { + display: flex; + flex-flow: row wrap; + align-items: stretch; + justify-content: stretch; + vertical-align: top; + clear: both; + margin: 0 -10px; +} +div.tiles > * { + vertical-align: top; + margin: 0; + padding: 10px; + max-width: none; +} +div.tiles > *:empty { padding: 0 10px; height: 0; } +div.tile4 { flex: 1 0 {{$html.grid.size div 4 - 20}}px; } +div.tile3 { flex: 1 0 {{$html.grid.size div 3 - 20}}px; } +div.tile2 { flex: 1 0 {{$html.grid.size div 2 - 20}}px; } +div.tile1 { flex: 1 0 {{$html.grid.size - 20}}px; } + a { text-decoration: none; color: {{$color.fg.blue}}; diff --git a/xslt/common/css/mallard.css.tmpl b/xslt/common/css/mallard.css.tmpl index 0c533b1d..56c3f786 100644 --- a/xslt/common/css/mallard.css.tmpl +++ b/xslt/common/css/mallard.css.tmpl @@ -166,6 +166,7 @@ a.ui-overlay-close { background-color: {{$color.blue}}; color: {{$color.bg}}; } + 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