Template:Quantum book backlink/styles.css: Difference between revisions

From ScholarlyWiki
Jump to navigation Jump to search
Make visible backlink button area use anchor href
Simplify backlink button CSS to style only real anchors
 
Line 7: Line 7:
}
}


/* Shared yellow backlink button/box */
/* The visible yellow backlink button must be the actual anchor. */
.quantum-parent-box,
.quantum-book-backlink > a {
.quantum-book-backlink-button {
   display: inline-block;
   display: inline-block;
   border: 1px solid #e0d890;
   border: 1px solid #e0d890;
Line 20: Line 19:
}
}


/* Parent book fallback */
/* Legacy wrappers/pseudo-labels are disabled; templates now render real link text. */
.quantum-parent-book-link:before {
.quantum-book-backlink-button,
   content: "← Back to Book:Quantum Collection";
.quantum-book-backlink-text {
   all: unset;
}
}


/* Flexible version used by the original B template */
.quantum-book-backlink-button::before,
.quantum-book-backlink-text::before {
.quantum-book-backlink-button::after,
   content: attr(data-label);
.quantum-book-backlink-text::before,
.quantum-book-backlink-text::after,
.quantum-parent-book-link::before {
   content: none;
}
}


/* B: Main Quantum Collection fixed-label classes */
.quantum-parent-box {
 
.qb-back-foundations::before {
  content: "← Back to Foundations";
}
 
.qb-back-conceptual::before {
  content: "← Back to Conceptual and interpretations";
}
 
.qb-back-mathematical::before {
  content: "← Back to Mathematical structure and systems";
}
 
.qb-back-atomic::before {
  content: "← Back to Atomic and spectroscopy";
}
 
.qb-back-wavefunctions::before {
  content: "← Back to Wavefunctions and modes";
}
 
.qb-back-dynamics::before {
  content: "← Back to Quantum dynamics and evolution";
}
 
.qb-back-measurement::before {
  content: "← Back to Measurement and information";
}
 
.qb-back-information::before {
  content: "← Back to Quantum information and computing";
}
 
.qb-back-optics::before {
  content: "← Back to Quantum optics and experiments";
}
 
.qb-back-open::before {
  content: "← Back to Open quantum systems";
}
 
.qb-back-field::before {
  content: "← Back to Quantum field theory";
}
 
.qb-back-statistical::before {
  content: "← Back to Statistical mechanics and kinetic theory";
}
 
.qb-back-condensed::before {
  content: "← Back to Condensed matter and solid-state physics";
}
 
.qb-back-plasma::before {
  content: "← Back to Plasma and fusion physics";
}
 
.qb-back-timeline::before {
  content: "← Back to Timeline";
}
 
.qb-back-advanced::before {
  content: "← Back to Advanced and frontier topics";
}
 
.qb-back-top::before {
  content: "← Back to Book:Quantum Collection";
}
 
/* BM: Matter by scale fixed-label classes */
 
.qm-back-materials::before {
  content: "← Back to Materials";
}
 
.qm-back-matter::before {
  content: "← Back to Matter";
}
 
.qm-back-molecules::before {
  content: "← Back to Molecules";
}
 
.qm-back-atoms::before {
  content: "← Back to Atoms";
}
 
.qm-back-particles::before {
  content: "← Back to Particles";
}
 
.qm-back-fields::before {
  content: "← Back to Fields";
}
 
.qm-back-top::before {
  content: "← Back to Matter by scale";
}
 
/* BT: Methods and tools fixed-label classes */
 
.qt-back-mathematical::before {
  content: "← Back to Mathematical methods";
}
 
.qt-back-measurement::before {
  content: "← Back to Measurement techniques";
}
 
.qt-back-experimental::before {
  content: "← Back to Experimental methods";
}
 
.qt-back-computational::before {
  content: "← Back to Computational methods";
}
 
.qt-back-statistical::before {
  content: "← Back to Statistical and thermodynamic methods";
}
 
.qt-back-field::before {
  content: "← Back to Field and many-body methods";
}
 
.qt-back-top::before {
  content: "← Back to Methods and tools";
}
 
/* BD: Data Analysis Techniques in Particle Physics fixed-label classes */
 
.qd-back-introduction::before {
  content: "← Back to Introduction to particle-physics data";
}
 
.qd-back-collision::before {
  content: "← Back to Collision experiments and kinematics";
}
 
.qd-back-detectors::before {
  content: "← Back to Detectors and data acquisition";
}
 
.qd-back-reconstruction::before {
  content: "← Back to Event reconstruction and simulation";
}
 
.qd-back-statistics::before {
  content: "← Back to Statistical methods and visualisation";
}
 
.qd-back-standard-model::before {
  content: "← Back to Standard Model measurements";
}
 
.qd-back-searches::before {
  content: "← Back to Searches and optimisation";
}
 
.qd-back-machine-learning::before {
  content: "← Back to Machine learning and advanced comprehension";
}
 
.qd-back-top::before {
  content: "← Back to Data Analysis Techniques";
}
.qt-back-plasma-kinetic::before {
  content: "← Back to Plasma and kinetic methods";
}
 
/* Ensure the visible yellow backlink button is the actual clickable anchor. */
.quantum-book-backlink-button {
  border: 0;
  background: transparent;
  padding: 0;
}
 
.quantum-book-backlink-button > a,
a.quantum-book-backlink-button {
   display: inline-block;
   display: inline-block;
   border: 1px solid #e0d890;
   border: 1px solid #e0d890;

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;
}