Skip to content

Commit

Permalink
fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
ABBAPOH committed Aug 12, 2024
1 parent 2d376d5 commit 128326d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 12 deletions.
12 changes: 0 additions & 12 deletions scripts/adjust.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,6 @@ Promise.all(args.map(async (arg) => {

it.setAttribute("src", attr)
})
elm.querySelectorAll(".qmlproto").forEach((it) => {
const readOnly = it.querySelector(".qmlreadonly") !== null

const name = it.querySelector(".name")
let type = it.querySelector(".type a")
if (!type) {
type = {outerHTML: it.querySelector(".type").textContent}
} else {
type = type.outerHTML
}
it.outerHTML = `<h3 class="qmlproto">${readOnly ? `<span class="opacity-50">readonly </span>` : ""}${name.textContent}: ${type.outerHTML}</h3>`
})
if (elm.querySelector(".sidebar")?.innerText === "") {
elm.querySelector(".sidebar")?.remove()
}
Expand Down
49 changes: 49 additions & 0 deletions themes/qbs/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,52 @@ main article {
.centre-inner.docs .sidebar li.level3 {
margin-left: 2rem;
}

.qmlitem {
padding: 0;
}

.qmlname {
white-space: nowrap;
font-weight: bold;
font-size: 125%;
}

.qmltype {
font-weight: bold;
font-size: 125%;
}

.qmlproto, .qmldoc {
/* border-top: 1px solid #84b0c7;*/
}

.qmlproto {
padding: 0;
/*background-color: #e4e4e4;//#d5e1e8;
//font-weight: bold;
//-webkit-border-top-left-radius: 8px;
//-webkit-border-top-right-radius: 8px;
//-moz-border-radius-topleft: 8px;
//-moz-border-radius-topright: 8px;*/
}

.qmldoc {
border-top: 1px solid #e4e4e4;
/*padding: 2px 5px;
//background-color: #eef3f5;
//border-top-width: 0;
//-webkit-border-bottom-left-radius: 8px;
//-webkit-border-bottom-right-radius: 8px;
//-moz-border-radius-bottomleft: 8px;
//-moz-border-radius-bottomright: 8px;*/
}

.qmldoc p, .qmldoc dl, .qmldoc ul {
/*margin: 6px 0;*/
}

*.qmlitem p {
/*margin-top: 0px;
//margin-bottom: 0px;*/
}

0 comments on commit 128326d

Please sign in to comment.