From 0fc3117f393029d30e1384caf9b1db3497ba7fd8 Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Fri, 1 May 2020 11:34:32 -0400 Subject: Various styling changes, especially around media and ttml --- xslt/common/html.xsl | 85 +++++++++++++++++++++--------------- xslt/mallard/html/mal2html-media.xsl | 2 + xslt/mallard/html/mal2html-page.xsl | 42 ++++++++---------- 3 files changed, 71 insertions(+), 58 deletions(-) diff --git a/xslt/common/html.xsl b/xslt/common/html.xsl index d0f2825b..2dc349b1 100644 --- a/xslt/common/html.xsl +++ b/xslt/common/html.xsl @@ -1350,12 +1350,11 @@ section section.links > div.inner > div.hgroup { } h1, h2, h3, h4, h5, h6, h7 { margin: 0; padding: 0; - color: ; - font-weight: bold; + font-weight: normal; } -h1 { font-size: 2em; } -h2 { font-size: 1.44em; } -h3.title, h4.title, h5.title, h6.title, h7.title { font-size: 1.2em; } +h1 { font-size: 2.4em; } +h2 { font-size: 1.72em; } +h3.title, h4.title, h5.title, h6.title, h7.title { font-size: 1.44em; } h3, h4, h5, h6, h7 { font-size: 1em; } p { line-height: 1.44em; } div, pre, p { margin: 0; padding: 0; } @@ -1805,16 +1804,14 @@ div.screen { } ol.steps, ul.steps { padding: 0.5em 1em 0.5em 1em; + border: solid 1px ; border-: solid 4px ; - box-shadow: 0 1px 2px - ; } ol.steps .steps { padding: 0; border: none; background-color: unset; - box-shadow: none; } li.steps { margin-: 1.44em; } li.steps li.steps { margin-: 2.4em; } @@ -1867,12 +1864,17 @@ span.em-bold { font-style: normal; font-weight: bold; color: ; } +a span.em-bold { + color: ; +} pre span.error { color: ; } span.file { font-family: monospace,monospace; font-size: 0.83em; } span.gui, span.guiseq { color: ; } +a span.gui, a span.guiseq { color: + ; } span.input { font-family: monospace,monospace; font-size: 0.83em; } pre span.input { font-weight: bold; @@ -1888,8 +1890,6 @@ kbd { border: solid 1px ; border-radius: 2px; - box-shadow: 1px 1px 2px - ; margin: 0 0.2em 0 0.2em; padding: 0.2em 0.5em 0 0.5em; white-space: nowrap; @@ -1902,7 +1902,7 @@ kbd.key-Fn { span.key a { border-bottom: none; } -a > kbd { +a kbd { color: ; border-color: ; } @@ -1911,6 +1911,8 @@ span.keyseq { ; white-space: nowrap } +a span.keyseq { color: + ; } span.output { font-family: monospace,monospace; font-size: 0.83em; } pre span.output { color: ; @@ -1926,8 +1928,7 @@ span.media-audio, span.media-video { display: inline-block; } audio, video { display: block; margin: 0; } div.media > div.inner { display: inline-block; text-align: center; } .media-controls { - min-width: 24em; - height: 24px; + height: 30px; margin: 0; padding: 0; border-left: solid 1px ; border-right: solid 1px ; @@ -1939,10 +1940,6 @@ div.media > div.inner { display: inline-block; text-align: center; } display: flex; align-items: center; } -.media-audio .media-controls { - border-top-left-radius: 4px; - border-top-right-radius: 4px; -} .media-controls > * { flex: 0 1 auto; } @@ -1989,8 +1986,8 @@ input.media-range::-moz-range-thumb { border-radius: 4px; } button.media-play { - height: 24px; - padding: 0 2px 0 2px; line-height: 0; + height: 30px; + padding: 0 6px 0 6px; line-height: 0; background-color: ; border: none; border-: solid 1px @@ -2007,8 +2004,8 @@ button.media-play-playing .media-pause { display: inline; } .media-time { margin: 0; font-size: 16px; - height: 24px; - line-height: 24px; + height: 30px; + line-height: 30px; } .media-time > span { padding-: 8px; @@ -2018,7 +2015,19 @@ button.media-play-playing .media-pause { display: inline; } color: ; opacity: 0.8; } -div.media-ttml { margin: 0; padding: 0; } +.media-controls-ttml { + min-width: 630px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; +} +div.media-ttml { + margin: 0; padding: 6px 0; + background-color: ; + border: solid 1px ; + min-height: 24px; + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; +} .media-ttml-pre { white-space: pre; } .media-ttml-nopre { white-space: normal; } div.media-ttml-div { @@ -2029,16 +2038,11 @@ div.media-ttml-div { div.media-ttml-p { text-align: ; display: none; - margin: 6px auto 0 auto; - padding: 6px; - max-width: 24em; - border: solid 1px - ; - background-color: - ; - box-shadow: 2px 2px 4px - ; + margin: 0 auto; + max-width: 560px; + line-height: 1.44em; } +div.media-ttml-div > * + * { margin-top: 1em; } div.yelp-data { display: none; } .ui-expander > div.inner > div.title span.title, .ui-expander > div.inner > div.hgroup span.title { @@ -2191,7 +2195,6 @@ section.ui-expander-preview.ui-expander-c > div.inner > div.region > div.content margin-right: 10px; } ol.steps, ul.steps { - box-shadow: none; padding: 0; padding-: 6px; padding-: 10px; @@ -3068,7 +3071,11 @@ It should return a simple language identifier. - + +
+ + media-controls media-controls- + + + media-controls-ttml + +
diff --git a/xslt/mallard/html/mal2html-media.xsl b/xslt/mallard/html/mal2html-media.xsl index 62302c5b..f2daeee0 100644 --- a/xslt/mallard/html/mal2html-media.xsl +++ b/xslt/mallard/html/mal2html-media.xsl @@ -144,6 +144,7 @@ HTML `video` element. + @@ -191,6 +192,7 @@ in the source to the `audio` element's fallback content. If $inline is + diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl index 8d041221..f6f793b7 100644 --- a/xslt/mallard/html/mal2html-page.xsl +++ b/xslt/mallard/html/mal2html-page.xsl @@ -1023,8 +1023,8 @@ div.link-button { 1px 1px 0px; border: solid 1px ; - padding: 0.2em 0.5em 0.2em 0.5em; - border-radius: 2px; + padding: 0.2em 0.83em 0.2em 0.83em; + border-radius: 4px; } .link-button a:visited { color: @@ -1034,8 +1034,12 @@ div.link-button { text-decoration: none; color:
; - box-shadow: 1px 1px 1px - ; + background-color: + + + + + } div.link-button a .desc { display: block; @@ -1133,7 +1137,7 @@ div.ui-overlay { display: none; position: fixed; text-align: center; - top: 20px; + top: 30px; left: 50%; transform: translateX(-50%); z-index: 10; @@ -1151,9 +1155,7 @@ div.ui-overlay > div.inner { display: inline-block; padding: 8px; background-color: ; - border: solid 1px ; - box-shadow: 0 2px 4px ; - border-radius: 6px; + border-radius: 4px; text-align: ; } div.ui-overlay img, div.ui-overlay video { @@ -1164,24 +1166,18 @@ div.ui-overlay > div.inner > div.title { margin-top: -4px; } a.ui-overlay-close { display: block; float: ; - width: 23px; height: 23px; - font-size: 18px; line-height: 23px; + width: 30px; height: 30px; + font-size: 22px; line-height: 30px; font-weight: bold; margin-top: -28px; - margin-: -24px; + margin-: -26px; padding: 1px 2px 3px 2px; text-align: center; border: none; border-radius: 50%; - background-color: ; - background-image: radial-gradient(circle farthest-corner at 50% 30%, , ); - border: 3px solid ; + background-color: ; color: ; - box-shadow: 0 2px 2px ; - text-shadow: 0 2px 2px ; } - - div.links-tiles { display: flex; flex-flow: row wrap; @@ -1203,13 +1199,13 @@ div.links-tile:empty { padding: 0 10px; height: 0; } div.links-tile > a { display: block; vertical-align: top; - padding: 9px; - border-radius: 6px; - border: solid 1px ; + padding: 10px; + border-radius: 4px; + border: none; } div.links-tile > a:hover { - border: solid 1px ; - box-shadow: 0 1px 2px ; + background-color: + ; } div.links-tile > a > span.links-tile-img { display: block; -- cgit v1.2.1