Skip to content
Snippets Groups Projects
Commit 2fb0b0c0 authored by gnaegi's avatar gnaegi
Browse files

OO-703 add config options to shift menu tree depending on opener size and position

parent e2fb765d
No related branches found
No related tags found
No related merge requests found
...@@ -65,6 +65,8 @@ $main_shadow_color : #D3D3D3 !default; ...@@ -65,6 +65,8 @@ $main_shadow_color : #D3D3D3 !default;
$tree_level_margin : 1em !default; $tree_level_margin : 1em !default;
$tree_padding_steps_px : 0 !default; /* alternate solution to tree_level_margin in case the tree link has block layout */ $tree_padding_steps_px : 0 !default; /* alternate solution to tree_level_margin in case the tree link has block layout */
$tree_padding_opener_px : 13px !default; /* total width of opener image (actual image width + whitespace) */ $tree_padding_opener_px : 13px !default; /* total width of opener image (actual image width + whitespace) */
$tree_padding_opener_left_px : 1px !default; /* left position of opener image */
$tree_padding_opener_top_px : 0px;
/* show or hide tree icons, if yes, width of icons */ /* show or hide tree icons, if yes, width of icons */
$tree_show_icons : true !default; $tree_show_icons : true !default;
$treeicon_width_px : 20px !default; $treeicon_width_px : 20px !default;
......
...@@ -160,8 +160,8 @@ div.b_tree { ...@@ -160,8 +160,8 @@ div.b_tree {
.b_tree_oc_l0 { .b_tree_oc_l0 {
position: absolute; position: absolute;
top: 0px; top: $tree_padding_opener_top_px;
left: 0px; left: $tree_padding_opener_left_px;
z-index: 9; z-index: 9;
} }
...@@ -177,7 +177,7 @@ div.b_tree { ...@@ -177,7 +177,7 @@ div.b_tree {
/* icon positioning */ /* icon positioning */
@for $i from 1 through 11 { @for $i from 1 through 11 {
.b_tree_oc_l#{$i} { .b_tree_oc_l#{$i} {
position:absolute; top:0px; left: 1px + ($i * $tree_padding_steps_px); position:absolute; top:$tree_padding_opener_top_px; left: $tree_padding_opener_left_px + ($i * $tree_padding_steps_px);
z-index:9; z-index:9;
} }
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment