You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2013/06/20 22:27:17 UTC
docs commit: [CB-3937] enable compatibility-table CSS in public UI
Updated Branches:
refs/heads/master 0108032cc -> eb3fecec2
[CB-3937] enable compatibility-table CSS in public UI
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/eb3fecec
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/eb3fecec
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/eb3fecec
Branch: refs/heads/master
Commit: eb3fecec221c9bfe55ddb29b6b8b2d50bdf8dfe1
Parents: 0108032
Author: Mike Sierra <le...@gmail.com>
Authored: Wed Jun 19 16:16:13 2013 -0400
Committer: Michael Brooks <mi...@michaelbrooks.ca>
Committed: Thu Jun 20 13:23:56 2013 -0700
----------------------------------------------------------------------
docs/en/edge/guide/overview/index.md | 17 -----------------
template/docs/default/index.css | 23 +++++++++++++++++++++++
2 files changed, 23 insertions(+), 17 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/eb3fecec/docs/en/edge/guide/overview/index.md
----------------------------------------------------------------------
diff --git a/docs/en/edge/guide/overview/index.md b/docs/en/edge/guide/overview/index.md
index d5379d8..d1e475a 100644
--- a/docs/en/edge/guide/overview/index.md
+++ b/docs/en/edge/guide/overview/index.md
@@ -129,23 +129,6 @@ available for each mobile platform:
<!-- START HTML -->
-<style>
-
-.p { background-color: gold; }
-.p::before { content: "(partial)"; }
-.u { background-color: #dddddd; }
-/* .u::before { content: ""; } */
-.y { background-color: lightgreen; }
-.y::before { content: "\2714"; margin-right: 6px; }
-tr> th:first-of-type { text-align: right }
-td , th[colspan]:first-of-type { text-align: center }
-.n { background-color: pink; }
-.n::before { content: "\2718"; margin-right: 6px; }
-
-/* each cell is classed one of: y=yes; n=no; p=partial; u=unknown */
-
-</style>
-
<table class="compat" width="100%">
<thead>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/eb3fecec/template/docs/default/index.css
----------------------------------------------------------------------
diff --git a/template/docs/default/index.css b/template/docs/default/index.css
index cf10b2b..53d11f8 100644
--- a/template/docs/default/index.css
+++ b/template/docs/default/index.css
@@ -402,3 +402,26 @@ a[href].external:after {
padding:0px 20px;
width:200px;
}
+
+/*
+Class compatability tables "compat";
+Apply nested TD classes "y"/"n", "p" (partial), or "u" (unknown).
+Results in green/red/gold/gray background & auto-inserts check/X char.
+Assumes table is 2D grid, with single TH preceding TDs in body of table.
+*/
+
+.compat .y { background-color: lightgreen; }
+.compat .y::before { content: "\2714"; margin-right: 6px; }
+
+.compat .n { background-color: pink; }
+.compat .n::before { content: "\2718"; margin-right: 6px; }
+
+.compat .p { background-color: gold; }
+.compat .p::before { content: "(partial)"; }
+
+.compat .u { background-color: #dddddd; }
+
+/* center cell & straddled column heads by default */
+
+.compat td , th[colspan]:first-of-type { text-align: center }
+.compat tr>th:first-of-type { text-align: right }