From 629c3b83d76326127fccb1863b63348f47e12ed0 Mon Sep 17 00:00:00 2001 From: Demian Katz <demian.katz@villanova.edu> Date: Wed, 7 Nov 2012 12:35:33 -0500 Subject: [PATCH] Improved CSS for hierarchies. --- themes/blueprint/css/styles.css | 47 ++++++++++++++++++++++++++++++ themes/jquerymobile/css/styles.css | 25 ++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/themes/blueprint/css/styles.css b/themes/blueprint/css/styles.css index d97a5f6ebc9..023c1c937a6 100644 --- a/themes/blueprint/css/styles.css +++ b/themes/blueprint/css/styles.css @@ -1737,6 +1737,34 @@ div#closeContextHelp:active { display: none; } +#hierarchyTreeHolder { + background-color: #FFF; + border: 1px solid #DCDCDC; + padding: 0.5em; +} + +#hierarchyTree { + padding: 0.5em 0.5em 0.5em 0; + max-height:375px; + min-height:375px; + overflow: hidden; + overflow-y: auto; +} + +#hierarchyTree ul { + list-style-type: none; + margin: 0; + padding: 0; +} + +.tree { + background-image:url(../images/fugue/tree.png); + background-repeat:no-repeat; + background-position: left; + padding:.5em .5em .5em 20px; + margin-right:1em; +} + .currentTree, .hierarchyTreeLinkText { background-image:url(../images/fugue/treeCurrent.png); background-repeat:no-repeat; @@ -1744,3 +1772,22 @@ div#closeContextHelp:active { padding:.5em .5em .5em 20px; margin-right:1em; } + +#hierarchyTree #treeList li { + background-image:url(../images/fugue/treeItem.png); + background-repeat: no-repeat; + padding: 0.25em 0 0 23px; + background-position: 0 0.25em; +} + +#hierarchyTree #treeList li.currentRecord { + background-image:url(../images/fugue/treeItemCurrent.png); + background-repeat: no-repeat; + padding: 0.25em 0 0 23px; + background-position: 0 0.25em; +} + +#hierarchyTree #treeList li.currentHierarchy > a, #hierarchyTree #treeList li.currentRecord > a { + color: #000; + font-weight: bold; +} diff --git a/themes/jquerymobile/css/styles.css b/themes/jquerymobile/css/styles.css index 079f5f7d75a..263a3aae887 100644 --- a/themes/jquerymobile/css/styles.css +++ b/themes/jquerymobile/css/styles.css @@ -246,3 +246,28 @@ p.citationText { padding-left:25px; text-indent:-25px; } + +#hierarchyTree ul { + list-style-type: none; + margin: 0; + padding: 0; +} + +#hierarchyTree #treeList li { + background-image:url(../images/fugue/treeItem.png); + background-repeat: no-repeat; + padding: 0.25em 0 0 23px; + background-position: 0 0.25em; +} + +#hierarchyTree #treeList li.currentRecord { + background-image:url(../images/fugue/treeItemCurrent.png); + background-repeat: no-repeat; + padding: 0.25em 0 0 23px; + background-position: 0 0.25em; +} + +#hierarchyTree #treeList li.currentHierarchy > a, #hierarchyTree #treeList li.currentRecord > a { + color: #000; + font-weight: bold; +} -- GitLab