Update section edit buttons

This commit is contained in:
2026-03-17 10:51:30 +01:00
parent b81e5cf6e4
commit e1e89b40fb
3 changed files with 113 additions and 5 deletions

View File

@@ -105,8 +105,6 @@ div.picker button.toolbutton {
margin-right: 0;
margin-left: 1em;
}
.dokuwiki .editBar .editButtons button {
}
/* summary input and minor changes checkbox */
.dokuwiki .editBar .summary {
@@ -140,9 +138,67 @@ div.picker button.toolbutton {
/* section edit buttons
********************************************************************/
/* Hidden for now - positioning was problematic */
.dokuwiki .secedit {
display: none;
.dokuwiki .section-heading-row {
position: relative;
}
.dokuwiki .section-heading-row > h1,
.dokuwiki .section-heading-row > h2,
.dokuwiki .section-heading-row > h3,
.dokuwiki .section-heading-row > h4,
.dokuwiki .section-heading-row > h5,
.dokuwiki .section-heading-row > h6 {
padding-right: 1.75em;
}
[dir=rtl] .dokuwiki .section-heading-row > h1,
[dir=rtl] .dokuwiki .section-heading-row > h2,
[dir=rtl] .dokuwiki .section-heading-row > h3,
[dir=rtl] .dokuwiki .section-heading-row > h4,
[dir=rtl] .dokuwiki .section-heading-row > h5,
[dir=rtl] .dokuwiki .section-heading-row > h6 {
padding-right: 0;
padding-left: 1.75em;
}
.dokuwiki .section-heading-row > .secedit {
display: block;
position: absolute;
top: 50%;
right: 0;
transform: translateY(-50%);
}
[dir=rtl] .dokuwiki .section-heading-row > .secedit {
right: auto;
left: 0;
}
.dokuwiki .section-heading-row > .secedit form {
margin: 0;
}
.dokuwiki .section-heading-row > .secedit button {
border: 0;
padding: .15em;
min-width: 1.25em;
background: transparent;
color: @ini_icons;
font-size: 0;
line-height: 1;
cursor: pointer;
}
.dokuwiki .section-heading-row > .secedit button::before {
content: '\270E edit';
opacity: 0.75;
font-style: italic;
font-size: .95rem;
}
.dokuwiki .section-heading-row > .secedit button:hover,
.dokuwiki .section-heading-row > .secedit button:focus {
color: @ini_link;
}
/* Sidebar should never show section edit buttons */