Skip to content

Commit 51488a6

Browse files
committed
#3484 homepage: improve styling and functionality
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent bb8d77a commit 51488a6

File tree

2 files changed

+210
-136
lines changed

2 files changed

+210
-136
lines changed

docs/homepage/custom.css

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,38 @@
1-
/*
2-
Visual marker for QOwnNotes suggestion rows.
3-
4-
The class is added by docs/homepage/custom.js when a suggestion text
5-
contains the configured QON_LABEL prefix.
6-
*/
7-
81
button.qon-suggestion {
9-
border-left: 3px solid #2f855a;
2+
border-left: 3px solid #2f855a;
3+
align-items: flex-start;
4+
text-align: left;
105
}
116

127
button.qon-suggestion span {
13-
color: #2f855a;
8+
color: #2f855a;
9+
}
10+
11+
/* Extra bottom padding on the <li> makes room for the URL hint div. */
12+
li.qon-li-has-url {
13+
position: relative;
14+
padding-bottom: 1.45rem;
15+
}
16+
17+
/* The URL hint div is appended to the <li> by custom.js and sits below the
18+
button text. It is attached to the <li> (not the <button>) so that it
19+
survives React replacing the button node when the item becomes active. */
20+
li.qon-li-has-url .qon-url-hint {
21+
position: absolute;
22+
left: 1rem;
23+
right: 8.5rem;
24+
bottom: 0.25rem;
25+
font-size: 0.72em;
26+
line-height: 1.2;
27+
color: rgba(47, 133, 90, 0.82);
28+
opacity: 0.95;
29+
text-align: left;
30+
white-space: nowrap;
31+
overflow: hidden;
32+
text-overflow: ellipsis;
33+
pointer-events: none;
34+
}
35+
36+
html.qon-keyboard-nav div[role="dialog"] dialog ul li > button {
37+
pointer-events: none;
1438
}

0 commit comments

Comments
 (0)