diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2014-05-25 18:31:17 -0300 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2014-05-25 18:31:17 -0300 |
commit | 05007f1011de8ea352ee23725ae46c51f5d67338 (patch) | |
tree | 2a3b044adfadf0caa5fcc4c3de84c2fe8baf97ef /site/src/main/jekyll/assets | |
parent | bcba7829a885813b0f67e396faf044cda14a798f (diff) | |
download | Kamon-05007f1011de8ea352ee23725ae46c51f5d67338.tar.gz Kamon-05007f1011de8ea352ee23725ae46c51f5d67338.tar.bz2 Kamon-05007f1011de8ea352ee23725ae46c51f5d67338.zip |
! site: introduce a navigation tree on documentation pages and reorder the site structure accordingly
Diffstat (limited to 'site/src/main/jekyll/assets')
-rw-r--r-- | site/src/main/jekyll/assets/css/kamon.css | 67 | ||||
-rw-r--r-- | site/src/main/jekyll/assets/js/kamon.js | 5 |
2 files changed, 71 insertions, 1 deletions
diff --git a/site/src/main/jekyll/assets/css/kamon.css b/site/src/main/jekyll/assets/css/kamon.css index 7a5577da..cc0da027 100644 --- a/site/src/main/jekyll/assets/css/kamon.css +++ b/site/src/main/jekyll/assets/css/kamon.css @@ -73,4 +73,69 @@ img[alt=statsD] { width: 100%; } width: 700px ; margin-left: auto ; margin-right: auto ; -}
\ No newline at end of file +} + + +#doc-tree ul { + list-style: none outside none; + margin-left: 0px; + padding-left: 6px; +} + +.divider { + *width: 100%; + height: 1px; + margin: 9px 1px; + *margin: -5px 0 5px; + overflow: hidden; + background-color: #e5e5e5; + border-bottom:1px solid #e5e5e5; + } + +.dropdown-submenu { + position: relative; +} + +.dropdown-submenu>.dropdown-menu { + top: 0; + left: 100%; + margin-top: -6px; + margin-left: -1px; + -webkit-border-radius: 0 6px 6px 6px; + -moz-border-radius: 0 6px 6px; + border-radius: 0 6px 6px 6px; +} + +.dropdown-submenu:hover>.dropdown-menu { + display: block; +} + +.dropdown-submenu>a:after { + display: block; + content: " "; + float: right; + width: 0; + height: 0; + border-color: transparent; + border-style: solid; + border-width: 5px 0 5px 5px; + border-left-color: #ccc; + margin-top: 5px; + margin-right: -10px; +} + +.dropdown-submenu:hover>a:after { + border-left-color: #fff; +} + +.dropdown-submenu.pull-left { + float: none; +} + +.dropdown-submenu.pull-left>.dropdown-menu { + left: -100%; + margin-left: 10px; + -webkit-border-radius: 6px 0 6px 6px; + -moz-border-radius: 6px 0 6px 6px; + border-radius: 6px 0 6px 6px; +} diff --git a/site/src/main/jekyll/assets/js/kamon.js b/site/src/main/jekyll/assets/js/kamon.js new file mode 100644 index 00000000..14a81e36 --- /dev/null +++ b/site/src/main/jekyll/assets/js/kamon.js @@ -0,0 +1,5 @@ +$(document).ready(function () { + $('label.tree-toggler').click(function () { + $(this).parent().children('ul.tree').toggle(300); + }); +});
\ No newline at end of file |