Skip to content

Commit edc2831

Browse files
Sereza7michitux
authored andcommitted
XWIKI-23413: Separators in navigation tree dropdown (#4403)
* Reverted generic changes from XWIKI-22485 to make them more specific and added them in the Livedata CSS. (cherry picked from commit 4a209c2)
1 parent 56428a6 commit edc2831

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

xwiki-platform-core/xwiki-platform-bootstrap/src/main/less/dropdowns.less

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@
5959
.nav-divider(@dropdown-divider-bg);
6060
}
6161

62-
// Dividers within the dropdown with an improved semantic representation
63-
li:has(> ul) + li:has(> ul) {
64-
padding-top: ((@line-height-computed / 2) - 1);
65-
border-top: solid 1px @dropdown-divider-bg;
66-
}
67-
li:has(> ul):has(+ li > ul) {
68-
margin-bottom: ((@line-height-computed / 2) - 1);
69-
}
70-
7162
// Links within the dropdown menu and submenus
7263
/* stylelint-disable selector-max-compound-selectors */
7364
> li > a,

xwiki-platform-core/xwiki-platform-livedata/xwiki-platform-livedata-webjar/src/main/vue/src/components/LivedataDropdownMenu.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,16 @@ export default {
171171
text-align: center;
172172
}
173173
174+
.livedata-dropdown-menu .dropdown-menu {
175+
/* Dividers within the dropdown with an improved semantic representation */
176+
li:has(> ul) + li:has(> ul) {
177+
padding-top: calc(.5lh - 1px);
178+
border-top: solid 1px var(--dropdown-divider-bg);
179+
}
180+
181+
li:has(> ul):has(+ li > ul) {
182+
margin-bottom: calc(.5lh - 1px);
183+
}
184+
}
185+
174186
</style>

0 commit comments

Comments
 (0)