Mam kawałek kodu do tworzenia elementu 1 i 2 w menu kolorowe na unosi się z CSS. Jaki jest kod HTML dla 0. Element "VCM Panopto" (rodzic)? Jeśli piszę dziecko: 0 To nie działa Wpisz opis obrazu tutaj

div.o_tree.o_tree_root_visible.o_course_menu ul.o_tree_l0 li.active_parent ul.o_tree_l1 li:nth-Child(1) span.o_tree_link.o_tree_l1.o_tree_level_label_leaf.active, 
div.o_tree.o_tree_root_visible.o_course_menu ul.o_tree_l0 li.active_parent ul.o_tree_l1 li:nth-Child(1) span.o_tree_link.o_tree_l1.o_tree_level_label_leaf.focus,
div.o_tree.o_tree_root_visible.o_course_menu ul.o_tree_l0 li.active_parent ul.o_tree_l1 li:nth-Child(1) span.o_tree_link.o_tree_l1.o_tree_level_label_leaf:hover, 
div.o_tree.o_tree_root_visible.o_course_menu ul.o_tree_l0 li.active_parent ul.o_tree_l1 li:nth-Child(1) span.o_tree_link.o_tree_l1.o_tree_level_label_leaf a:hover
{
    background-color: #2f7ca6;     /* BLUE */
    /*color: #fff;*/
}

div.o_tree.o_tree_root_visible.o_course_menu ul.o_tree_l0 li.active_parent ul.o_tree_l1 li:nth-Child(2) span.o_tree_link.o_tree_l1.o_tree_level_label_leaf.active, 
div.o_tree.o_tree_root_visible.o_course_menu ul.o_tree_l0 li.active_parent ul.o_tree_l1 li:nth-Child(2) span.o_tree_link.o_tree_l1.o_tree_level_label_leaf.focus,
div.o_tree.o_tree_root_visible.o_course_menu ul.o_tree_l0 li.active_parent ul.o_tree_l1 li:nth-Child(2) span.o_tree_link.o_tree_l1.o_tree_level_label_leaf:hover, 
div.o_tree.o_tree_root_visible.o_course_menu ul.o_tree_l0 li.active_parent ul.o_tree_l1 li:nth-Child(2) span.o_tree_link.o_tree_l1.o_tree_level_label_leaf a:hover
{
    background-color: #b10058;     /* FUCHSIA */
    /*color: #fff;*/
}
0
Artem Kuzmin 28 lipiec 2020, 11:59

1 odpowiedź

Najlepsza odpowiedź

Ten kod pracował

 #dd102071742529541 > .o_tree_link:hover {
 background-color: green !important;
 }
0
Artem Kuzmin 30 lipiec 2020, 20:07