Template:Quantum book backlink/styles.css: Difference between revisions
From HandWiki Test
Created page with ".quantum-backlink { display: block; margin: 0.2em 0 0.8em 0; font-size: 90%; } .quantum-backlink::before { content: "← Back"; } .quantum-methods-backlink-mathematical::before { content: "← Back to Mathematical methods"; }" |
Simplify backlink button CSS to style only real anchors |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
.quantum-backlink { | /* Quantum Collection backlink shared style */ | ||
.quantum-book-backlink { | |||
margin: 0 0 0.8em 0; | |||
font-size: 90%; | |||
line-height: 1.4; | |||
} | |||
/* The visible yellow backlink button must be the actual anchor. */ | |||
.quantum-book-backlink > a { | |||
display: inline-block; | |||
border: 1px solid #e0d890; | |||
background: #fff8cc; | |||
padding: 4px 8px; | |||
margin: 0 0 1em 0; | |||
text-align: left; | |||
font-size: 90%; | |||
border-radius: 4px; | |||
} | |||
/* Legacy wrappers/pseudo-labels are disabled; templates now render real link text. */ | |||
.quantum-book-backlink-button, | |||
.quantum-book-backlink-text { | |||
all: unset; | |||
} | } | ||
.quantum-backlink::before { | .quantum-book-backlink-button::before, | ||
.quantum-book-backlink-button::after, | |||
.quantum-book-backlink-text::before, | |||
.quantum-book-backlink-text::after, | |||
.quantum-parent-book-link::before { | |||
content: none; | |||
} | } | ||
.quantum- | .quantum-parent-box { | ||
display: inline-block; | |||
border: 1px solid #e0d890; | |||
background: #fff8cc; | |||
padding: 4px 8px; | |||
margin: 0 0 1em 0; | |||
text-align: left; | |||
font-size: 90%; | |||
border-radius: 4px; | |||
} | } | ||
Latest revision as of 21:04, 16 May 2026
/* Quantum Collection backlink shared style */
.quantum-book-backlink {
margin: 0 0 0.8em 0;
font-size: 90%;
line-height: 1.4;
}
/* The visible yellow backlink button must be the actual anchor. */
.quantum-book-backlink > a {
display: inline-block;
border: 1px solid #e0d890;
background: #fff8cc;
padding: 4px 8px;
margin: 0 0 1em 0;
text-align: left;
font-size: 90%;
border-radius: 4px;
}
/* Legacy wrappers/pseudo-labels are disabled; templates now render real link text. */
.quantum-book-backlink-button,
.quantum-book-backlink-text {
all: unset;
}
.quantum-book-backlink-button::before,
.quantum-book-backlink-button::after,
.quantum-book-backlink-text::before,
.quantum-book-backlink-text::after,
.quantum-parent-book-link::before {
content: none;
}
.quantum-parent-box {
display: inline-block;
border: 1px solid #e0d890;
background: #fff8cc;
padding: 4px 8px;
margin: 0 0 1em 0;
text-align: left;
font-size: 90%;
border-radius: 4px;
}
