[153047] trunk/doc-new/guide/resources/docbook.css

cal at macports.org cal at macports.org
Thu Sep 22 14:34:58 PDT 2016


Revision: 153047
          https://trac.macports.org/changeset/153047
Author:   cal at macports.org
Date:     2016-09-22 14:34:58 -0700 (Thu, 22 Sep 2016)
Log Message:
-----------
guide: use modern admonitions CSS, add .tip

Our styles for the flyout boxes generated by docbook started to look
old-fashioned. Add a little more color to improve them.

Additionally, add some styles for the <tip> admonition to be used in the next
commit.

Ticket: #52331

Modified Paths:
--------------
    trunk/doc-new/guide/resources/docbook.css

Modified: trunk/doc-new/guide/resources/docbook.css
===================================================================
--- trunk/doc-new/guide/resources/docbook.css	2016-09-22 20:21:54 UTC (rev 153046)
+++ trunk/doc-new/guide/resources/docbook.css	2016-09-22 21:34:58 UTC (rev 153047)
@@ -215,31 +215,6 @@
 	margin: 6px 0;
 }
 
-div.note {
-	margin: .2in .3in;
-	padding: 0 15px 0;
-	border-color: #8b1a1a;
-	border-width: 0 3px;
-	border-style: solid;
-}
-
-div.note h3.title {
-	color: #8B1A1A;
-}
-
-div.warning {
-	margin: .2in .3in;
-	padding: 10px 15px 5px;
-	border-color: #8b1a1a;
-	border-width: 5px;
-	border-style: double;
-}
-
-div.warning h3.title {
-	color: #8b1a1a;
-	margin: 0;
-}
-
 div.screenshot div.mediaobject {
 	text-align: center;
 	margin: 12px 0;
@@ -361,3 +336,63 @@
 	display: none;
 	height: 20px; /* some arbitrary value that's probably not == 100vh */
 }
+
+div.note {
+    background: #ffedcc;
+    border-left: 8px solid #ffa500;
+    padding: 10px;
+	margin: .2in .3in;
+}
+div.note h3.title {
+	color: #ffa500;
+	margin: 0 0 10px;
+}
+
+div.warning {
+	background: #f3e8e8;
+	border-left: 8px solid #8b1a1a;
+	padding: 10px;
+	margin: .2in .3in;
+}
+div.warning h3.title {
+	color: #8b1a1a;
+	margin: 0 0 10px;;
+}
+
+div.tip {
+    background: #e5ede5;
+    border-left: 8px solid #00b200;
+    padding: 10px;
+}
+div.tip h3.title {
+	color: #00b200;
+	margin: 0 0 10px;
+}
+div.tip table {
+    border-collapse: collapse;
+}
+div.tip table tr td,
+div.tip table tr th {
+    border-bottom: 1px solid #999;
+    margin: 0;
+    padding: 4px 6px;
+    vertical-align: top;
+}
+.tip table thead tr th {
+    border-bottom: 3px double #333;
+    text-align: left;
+}
+.tip table tr td table tr td {
+    border: none;
+    padding: 1px 4px;
+}
+div.tip table tr td p {
+    margin: 0;
+    padding: 0.05ex 0;
+}
+div.tip table tr:nth-child(odd) {
+    background: #e5ede5;
+}
+div.tip table tr:nth-child(even) {
+    background: #eff4ef;
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160922/942b3d52/attachment.html>


More information about the macports-changes mailing list