浏览代码

docs: CSS style for compact table and description list

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@68597 15284696-431f-4ddb-bdfa-cd5b030d7da7
Vaclav Petras 9 年之前
父节点
当前提交
c802161cbd
共有 1 个文件被更改,包括 30 次插入0 次删除
  1. 30 0
      man/grassdocs.css

+ 30 - 0
man/grassdocs.css

@@ -199,3 +199,33 @@ div.toc:hover {
 div.toc {
   background-color: rgba(255, 255, 255, 0.7);
 }
+
+/* This is for a more detailed equivalent of option->descriptions
+ * (perhaps it can be used more generally as well).
+ * Creates a description list with highlighted items titles
+ * but not too visible in the overall text flow. */
+.option_descriptions dt {
+    font-weight: bold;
+    color: #222;
+}
+
+table.compact {
+    font-size: 80%;
+}
+
+/* default style is too spread out */
+table.compact td, table.compact th {
+    padding-left: 0.5em;
+    padding-right: 0.2em;
+    padding-top: 0.2em;
+    padding-bottom: 0.2em;
+}
+
+/* do table using alternate colors of rows */
+table.compact tr:nth-child(odd) {
+    background: #EEE;
+}
+
+table.compact tr:nth-child(even) {
+    background: #FFF;
+}