Revision 99a137ea
Added by Andreas Kohlbecker about 3 years ago
modules/cdm_dataportal/classes/DerivationTreeComposer.php | ||
---|---|---|
193 | 193 |
* @return string |
194 | 194 |
*/ |
195 | 195 |
function derived_units_tree_node_header($sob_dto) { |
196 |
$link = cdm_internal_link(path_to_specimen($sob_dto->uuid), null); |
|
197 |
$link_markup = '<span class="page-link">' . $link . '</span>'; |
|
196 |
$link = ''; |
|
198 | 197 |
$focused_attribute = ''; |
199 |
if(is_uuid($this->getFocusedUnitUuid()) & $sob_dto->uuid == $this->getFocusedUnitUuid()){ |
|
198 |
$hover_effect_attribute = ''; |
|
199 |
if(is_uuid($this->getFocusedUnitUuid()) & $sob_dto->uuid == $this->getFocusedUnitUuid()) { |
|
200 | 200 |
$focused_attribute = " focused_item"; |
201 |
$link_markup = ''; |
|
201 |
} else { |
|
202 |
$link = cdm_internal_link(path_to_specimen($sob_dto->uuid), NULL); |
|
202 | 203 |
} |
203 |
return '<div class="unit-header ' . $focused_attribute .'"><div class="unit-label">' . $sob_dto->label . $link_markup . '</div></div>'; |
|
204 |
if($this->isWithDetails()){ |
|
205 |
$hover_effect_attribute = ' unit-label-hover-effect'; |
|
206 |
} |
|
207 |
$icon_link_markup = ''; |
|
208 |
if($link) { |
|
209 |
$icon_link_markup = '<span class="page-link">' . $link . '</span>'; |
|
210 |
} |
|
211 |
return '<div class="unit-header ' . $focused_attribute .'"><div class="unit-label' . $hover_effect_attribute .' ">' . $sob_dto->label . $icon_link_markup . '</div></div>'; |
|
204 | 212 |
} |
205 | 213 |
|
206 | 214 |
} |
themes/zen_dataportal/css/cdm.css | ||
---|---|---|
336 | 336 |
div.derived-unit-tree .unit-header .unit-label, |
337 | 337 |
ul.derived-unit-sub-tree .unit-header .unit-label, |
338 | 338 |
ul.derived-unit-sub-tree ul .unit-header .unit-label { |
339 |
cursor: pointer; |
|
340 | 339 |
background-color: #dedede; |
341 | 340 |
padding-left: 5px; |
342 | 341 |
} |
343 |
/* line 256, ../sass/cdm.scss */
|
|
342 |
/* line 255, ../sass/cdm.scss */
|
|
344 | 343 |
div.derived-unit-tree .unit-header .unit-label .page-link, |
345 | 344 |
ul.derived-unit-sub-tree .unit-header .unit-label .page-link, |
346 | 345 |
ul.derived-unit-sub-tree ul .unit-header .unit-label .page-link { |
347 | 346 |
float: right; |
348 | 347 |
} |
349 |
/* line 260, ../sass/cdm.scss */ |
|
350 |
div.derived-unit-tree .unit-header .unit-label:hover, |
|
351 |
ul.derived-unit-sub-tree .unit-header .unit-label:hover, |
|
352 |
ul.derived-unit-sub-tree ul .unit-header .unit-label:hover { |
|
348 |
/* line 259, ../sass/cdm.scss */ |
|
349 |
div.derived-unit-tree .unit-header .unit-label-hover-effect:hover, |
|
350 |
ul.derived-unit-sub-tree .unit-header .unit-label-hover-effect:hover, |
|
351 |
ul.derived-unit-sub-tree ul .unit-header .unit-label-hover-effect:hover { |
|
352 |
cursor: pointer; |
|
353 | 353 |
background-color: #f8f8f8; |
354 | 354 |
} |
355 | 355 |
/* line 264, ../sass/cdm.scss */ |
themes/zen_dataportal/css/styles.css | ||
---|---|---|
2397 | 2397 |
div.derived-unit-tree .unit-header .unit-label, |
2398 | 2398 |
ul.derived-unit-sub-tree .unit-header .unit-label, |
2399 | 2399 |
ul.derived-unit-sub-tree ul .unit-header .unit-label { |
2400 |
cursor: pointer; |
|
2401 | 2400 |
background-color: #dedede; |
2402 | 2401 |
padding-left: 5px; |
2403 | 2402 |
} |
2404 |
/* line 256, ../sass/cdm.scss */
|
|
2403 |
/* line 255, ../sass/cdm.scss */
|
|
2405 | 2404 |
div.derived-unit-tree .unit-header .unit-label .page-link, |
2406 | 2405 |
ul.derived-unit-sub-tree .unit-header .unit-label .page-link, |
2407 | 2406 |
ul.derived-unit-sub-tree ul .unit-header .unit-label .page-link { |
2408 | 2407 |
float: right; |
2409 | 2408 |
} |
2410 |
/* line 260, ../sass/cdm.scss */ |
|
2411 |
div.derived-unit-tree .unit-header .unit-label:hover, |
|
2412 |
ul.derived-unit-sub-tree .unit-header .unit-label:hover, |
|
2413 |
ul.derived-unit-sub-tree ul .unit-header .unit-label:hover { |
|
2409 |
/* line 259, ../sass/cdm.scss */ |
|
2410 |
div.derived-unit-tree .unit-header .unit-label-hover-effect:hover, |
|
2411 |
ul.derived-unit-sub-tree .unit-header .unit-label-hover-effect:hover, |
|
2412 |
ul.derived-unit-sub-tree ul .unit-header .unit-label-hover-effect:hover { |
|
2413 |
cursor: pointer; |
|
2414 | 2414 |
background-color: #f8f8f8; |
2415 | 2415 |
} |
2416 | 2416 |
/* line 264, ../sass/cdm.scss */ |
themes/zen_dataportal/sass/cdm.scss | ||
---|---|---|
250 | 250 |
.unit-header { |
251 | 251 |
padding-top: $tree-entry-vspace; |
252 | 252 |
.unit-label { |
253 |
cursor: pointer; |
|
254 | 253 |
background-color: $menu-bar-background-color; |
255 | 254 |
padding-left: 5px; |
256 | 255 |
.page-link { |
257 | 256 |
float: right; |
258 | 257 |
} |
259 | 258 |
} |
260 |
.unit-label:hover { |
|
259 |
.unit-label-hover-effect:hover { |
|
260 |
cursor: pointer; |
|
261 | 261 |
background-color: lighten($menu-bar-background-color, 10%) |
262 | 262 |
} |
263 | 263 |
} |
Also available in: Unified diff
ref #6866 no hover effect of derivate tree headers on specimen page