You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by da...@apache.org on 2018/11/20 15:16:37 UTC

[27/31] lucene-solr:jira/http2: SOLR-12746: Fix formatting for callout list numbers and preamble sections

SOLR-12746: Fix formatting for callout list numbers and preamble sections


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/4efaecac
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/4efaecac
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/4efaecac

Branch: refs/heads/jira/http2
Commit: 4efaecac34159ee1b718c548530d20d80c1fb4bf
Parents: eb80104
Author: Cassandra Targett <ct...@apache.org>
Authored: Mon Nov 19 14:53:05 2018 -0600
Committer: Cassandra Targett <ct...@apache.org>
Committed: Mon Nov 19 14:53:05 2018 -0600

----------------------------------------------------------------------
 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(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4efaecac/solr/solr-ref-guide/src/_templates/colist.html.slim
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/_templates/colist.html.slim b/solr/solr-ref-guide/src/_templates/colist.html.slim
index 41276d2..0e5c7b7 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

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4efaecac/solr/solr-ref-guide/src/css/ref-guide.css
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/css/ref-guide.css b/solr/solr-ref-guide/src/css/ref-guide.css
index 1005ab9..6ea3085 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);
 }