aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen/priv/css
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-11-16 14:53:40 +0100
committerSverker Eriksson <[email protected]>2018-12-11 14:34:21 +0100
commitb56feddd7f53c35a54a2d06dedee2780bb74715e (patch)
tree186b14f48ca202cae0c6a7823f431410952eba00 /lib/erl_docgen/priv/css
parent9e5169ac90db625061e486854729b8279ba46378 (diff)
downloadotp-b56feddd7f53c35a54a2d06dedee2780bb74715e.tar.gz
otp-b56feddd7f53c35a54a2d06dedee2780bb74715e.tar.bz2
otp-b56feddd7f53c35a54a2d06dedee2780bb74715e.zip
erl_docgen: Generate "since" OTP version in html
for <func><name> and <module> with "since" attribute.
Diffstat (limited to 'lib/erl_docgen/priv/css')
-rw-r--r--lib/erl_docgen/priv/css/otp_doc.css33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/erl_docgen/priv/css/otp_doc.css b/lib/erl_docgen/priv/css/otp_doc.css
index 34c6befb0e..89b278215c 100644
--- a/lib/erl_docgen/priv/css/otp_doc.css
+++ b/lib/erl_docgen/priv/css/otp_doc.css
@@ -71,6 +71,33 @@ a:visited { color: #1b6ec2; text-decoration: none }
}
.bold_code { font-family: mono, Courier, monospace; font-weight: bold }
+
+/* Invisible table for function specs,
+ * just to get since-version out in right margin */
+.func-table, .func-tr, .func-td, .func-since-td {
+ width: 200%;
+ border: 0;
+ padding: 0;
+ margin: 0;
+}
+
+.func-tr:nth-child(n) {
+ background: inherit /* turn off zebra striped rows */
+}
+
+.func-td {
+ width: 50%
+}
+
+.func-since-td {
+ width: 50%;
+ padding-left: 1em
+}
+
+.func-td:hover {
+ background-color: #f5f5f5;
+}
+
.code {
font-family: mono, Courier, monospace;
font-weight: normal;
@@ -283,3 +310,9 @@ a > .code {
.func-types-title{
font-size: 1em;
}
+
+.since{
+ color: gray;
+ font-weight: normal;
+ font-size: small;
+} \ No newline at end of file