lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ctarg...@apache.org
Subject lucene-solr:branch_7x: SOLR-12746: Fix formatting for callout list numbers and preamble sections
Date Mon, 19 Nov 2018 20:55:02 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 58ec5ef72 -> d37554e88


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/d37554e8
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/d37554e8
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/d37554e8

Branch: refs/heads/branch_7x
Commit: d37554e88ecfab2c274bbfd185856b8f737ea350
Parents: 58ec5ef
Author: Cassandra Targett <ctargett@apache.org>
Authored: Mon Nov 19 14:53:05 2018 -0600
Committer: Cassandra Targett <ctargett@apache.org>
Committed: Mon Nov 19 14:54:55 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/d37554e8/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/d37554e8/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);
 }


Mime
View raw message