pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jahew...@apache.org
Subject svn commit: r1649659 - in /pdfbox/cmssite/trunk: content/css/site.css templates/skeleton.html
Date Mon, 05 Jan 2015 20:54:57 GMT
Author: jahewson
Date: Mon Jan  5 20:54:57 2015
New Revision: 1649659

URL: http://svn.apache.org/r1649659
Log:
Enable collapsing of tree nodes

Modified:
    pdfbox/cmssite/trunk/content/css/site.css
    pdfbox/cmssite/trunk/templates/skeleton.html

Modified: pdfbox/cmssite/trunk/content/css/site.css
URL: http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/css/site.css?rev=1649659&r1=1649658&r2=1649659&view=diff
==============================================================================
--- pdfbox/cmssite/trunk/content/css/site.css (original)
+++ pdfbox/cmssite/trunk/content/css/site.css Mon Jan  5 20:54:57 2015
@@ -132,3 +132,11 @@ table tr:nth-child(even) td, table tr.ev
 .sidebar li.sidebar-node > a {
     padding-left: 0px;
 }
+
+.sidebar-node.collapsed > ul{
+  display: none;
+}
+
+.sidebar-node.collapsed > a::before {
+  content: '\f0da';
+}

Modified: pdfbox/cmssite/trunk/templates/skeleton.html
URL: http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/templates/skeleton.html?rev=1649659&r1=1649658&r2=1649659&view=diff
==============================================================================
--- pdfbox/cmssite/trunk/templates/skeleton.html (original)
+++ pdfbox/cmssite/trunk/templates/skeleton.html Mon Jan  5 20:54:57 2015
@@ -47,6 +47,11 @@
     <!-- Twitter Bootstrap and jQuery after this line. -->
     <script src="//code.jquery.com/jquery-latest.js"></script>
     <script src="/bootstrap/js/bootstrap.min.js"></script>
+    <script type="text/javascript">
+        $('.sidebar-node').click(function() {
+            $(this).toggleClass('collapsed');
+        });
+    </script>
 </head>
 
 <body>
@@ -76,7 +81,7 @@
                     <li><a href="/team.html">Project Team</a></li>
                     
                     <li class="sidebar-header">Documentation</li>
-                    <li class="sidebar-node">
+                    <li class="sidebar-node collapsed">
                         <a href="#">Trunk</a>
                         <ul>
                             <li><a href="/docs/2.0.0-SNAPSHOT/javadocs/">API
Docs</a></li>



Mime
View raw message