From 4efaecac34159ee1b718c548530d20d80c1fb4bf Mon Sep 17 00:00:00 2001 From: Cassandra Targett Date: Mon, 19 Nov 2018 14:53:05 -0600 Subject: [PATCH] SOLR-12746: Fix formatting for callout list numbers and preamble sections --- solr/solr-ref-guide/src/_templates/colist.html.slim | 12 ++++++++---- solr/solr-ref-guide/src/css/ref-guide.css | 8 ++++++-- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/solr/solr-ref-guide/src/_templates/colist.html.slim b/solr/solr-ref-guide/src/_templates/colist.html.slim index 41276d257f2..0e5c7b7a681 100644 --- a/solr/solr-ref-guide/src/_templates/colist.html.slim +++ b/solr/solr-ref-guide/src/_templates/colist.html.slim @@ -1,4 +1,8 @@ -/ Note: We ignore title on callout list here. -ol.callout-list id=id class=[style, role] - - items.each do |item| - li =item.text += block_with_title class: ['colist', style] + table + - items.to_enum.with_index 1 do |item, num| + tr + td + i.conum data-value=num + b =num + td =item.text diff --git a/solr/solr-ref-guide/src/css/ref-guide.css b/solr/solr-ref-guide/src/css/ref-guide.css index 1005ab900a9..6ea3085b508 100644 --- a/solr/solr-ref-guide/src/css/ref-guide.css +++ b/solr/solr-ref-guide/src/css/ref-guide.css @@ -433,9 +433,11 @@ select width: 100%; } +/* Defines size and line height for "lead" type sections, the first sentence of a page. */ #preamble > .sectionbody > .paragraph:first-of-type p, .paragraph.lead > p, -p.lead +p.lead, +#preamble > p:first-of-type { font-size: 1.21875em; line-height: 1.6; @@ -1454,8 +1456,10 @@ table.tableblock > caption.title white-space: nowrap; } +/* Defines color for "lead" type sections, the first text on a page. */ #preamble > .sectionbody > .paragraph:first-of-type p, -.paragraph.lead > p +.paragraph.lead > p, +#preamble > p:first-of-type { color: rgba(0,0,0,.85); }