Skip to content
Snippets Groups Projects
Commit 0bcaeef4 authored by gnaegi's avatar gnaegi
Browse files

OO-371 various css optimizations

parent 27b110ed
No related branches found
No related tags found
No related merge requests found
...@@ -48,16 +48,14 @@ $main_shadow_color : #D3D3D3 !default; ...@@ -48,16 +48,14 @@ $main_shadow_color : #D3D3D3 !default;
/* menu navigation */ /* menu navigation */
$tree_level_margin : 1em !default; $tree_level_margin : 1em !default;
$tree_padding_steps_px : 10px !default; $tree_padding_steps_px : 0 !default; /* alternate solution to tree_level_margin in case the tree link has block layout */
$tree_padding_opener_px : 6px !default; $tree_padding_opener_px : 13px !default; /* total width of opener image (actual image width + whitespace) */
/* 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;
/* here you can define the two small icons used in trees: + and - */ /* here you can define the two small icons used in trees: + and - */
$tree_opener_spread_px : 6px !default; $ico_plus : '../openolat/images/tree_parent_closed.png' !default;
$tree_opener_width_px : 8px !default; $ico_minus : '../openolat/images/tree_parent_open.png' !default;
$ico_plus : '../openolat/images/toggle-small-expand.png' !default;
$ico_minus : '../openolat/images/toggle-small.png' !default;
/* the defaultfont used in : text, main content, etc. */ /* the defaultfont used in : text, main content, etc. */
$defaultfont : 'Helvetica Neue', Helvetica, Arial, sans-serif !default; $defaultfont : 'Helvetica Neue', Helvetica, Arial, sans-serif !default;
......
...@@ -165,7 +165,7 @@ div.b_tree { ...@@ -165,7 +165,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} { position:absolute; top:0px; left: 1px + ( ($i - 1) * $tree_padding_steps_px); z-index:9; } .b_tree_oc_l#{$i} { position:absolute; top:0px; left: 1px + ($i * $tree_padding_steps_px); z-index:9; }
} }
@for $i from 0 through 11 { @for $i from 0 through 11 {
...@@ -193,7 +193,7 @@ div.b_tree { ...@@ -193,7 +193,7 @@ div.b_tree {
/* link to select the item with icon */ /* link to select the item with icon */
@for $i from 0 through 11 { @for $i from 0 through 11 {
&.b_tree_l#{$i} a.b_tree_icon { padding-left: ($tree_opener_spread_px + $treeicon_width_px + $tree_padding_steps_px * $i); background-position:($tree_opener_spread_px + 2px + $tree_padding_steps_px * $i) 50%; } &.b_tree_l#{$i} a.b_tree_icon { padding-left: ($tree_padding_opener_px + $treeicon_width_px + $tree_padding_steps_px * $i); background-position:($tree_padding_opener_px + 2px + $tree_padding_steps_px * $i) 50%; }
} }
}// end ul }// end ul
...@@ -202,8 +202,8 @@ div.b_tree { ...@@ -202,8 +202,8 @@ div.b_tree {
/* the open/close node icons */ /* the open/close node icons */
a.b_tree_level_close {background:transparent ! important;} /* override link hover colors */ a.b_tree_level_close {background:transparent ! important;} /* override link hover colors */
a.b_tree_level_open {background:transparent ! important;} a.b_tree_level_open {background:transparent ! important;}
a.b_tree_level_close span { background: url($ico_minus) no-repeat $tree_opener_spread_px 50%; padding-right:$tree_opener_width_px;} a.b_tree_level_close span { background: url($ico_minus) no-repeat 0 50%; padding-right:$tree_padding_opener_px;}
a.b_tree_level_open span { background: url($ico_plus) no-repeat $tree_opener_spread_px 50%; padding-right:$tree_opener_width_px;} a.b_tree_level_open span { background: url($ico_plus) no-repeat 0 50%; padding-right:$tree_padding_opener_px;}
a.b_tree_level_close:hover,a.b_tree_level_open:hover {text-decoration:none;} a.b_tree_level_close:hover,a.b_tree_level_open:hover {text-decoration:none;}
......
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
div.b_pagination li .b_disabled { color: black; font-weight: normal; padding: 5px 8px; } div.b_pagination li .b_disabled { color: black; font-weight: normal; padding: 5px 8px; }
div.b_pagination li a { padding: 1em; padding: 5px 8px; } div.b_pagination li a { padding: 1em; padding: 5px 8px; }
div.b_eportfolio_page, div.b_portfolio_toc, div.b_eportfolio_edit { background-image: none; } div.b_eportfolio_page, div.b_portfolio_toc, div.b_eportfolio_edit { background-image: none; }
div.b_pagination li.b_changelog {float:right;}
} }
@mixin epmst-actualpage($bg1,$bg2){ @mixin epmst-actualpage($bg1,$bg2){
......
src/main/webapp/static/themes/openolat/images/tree_parent_closed.png

1.08 KiB

src/main/webapp/static/themes/openolat/images/tree_parent_open.png

1.08 KiB

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