Skip to content

Commit bf5797b

Browse files
fix: Petro diagram on tech overview will now follow the light/dark mode set by user
1 parent bb24fdd commit bf5797b

2 files changed

Lines changed: 28 additions & 14 deletions

File tree

frontend/src/lib/assets/styles/app.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,14 @@ html {
120120
}
121121
}
122122

123+
/* GN: classes to show element only in light or dark mode */
124+
.light-mode-only {
125+
display: none;
126+
}
127+
.dark-mode-only {
128+
display: none;
129+
}
130+
123131
[data-color-scheme='light'] {
124132
color-scheme: light;
125133

@@ -140,6 +148,10 @@ html {
140148
--focus-color: var(--focus-color-light);
141149

142150
--logo-background: var(--logo-background-light);
151+
152+
.light-mode-only {
153+
display: inherit;
154+
}
143155
}
144156

145157
[data-color-scheme='dark'] {
@@ -162,6 +174,10 @@ html {
162174
--focus-color: var(--focus-color-dark);
163175

164176
--logo-background: var(--logo-background-dark);
177+
178+
.dark-mode-only {
179+
display: inherit;
180+
}
165181
}
166182

167183
.brand {

frontend/src/pages/technical-overview.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,18 @@ For additional technical details, please the [documentation in the github reposi
6565

6666
Petrographic analysis has been undertaken on hundreds of items across the corpus. The dataset includes raw and processed data from (geo)chemical and minero-petrographic analyses on epigraphic supports, supporting the identification of rock types and their provenance. Geology-specific vocabularies ([The BGS Rock Classification Scheme](https://www.bgs.ac.uk/technologies/bgs-rock-classification-scheme/)) are used as reference to update the XML files with material and material provenance data. Materials description has been augmented via a dedicated RSE-supported workflow which aggregates the multi-analytical data collected by the project’s material scientist and supports (pre)processing and analysis of different data by streamlining repetitive tasks and simplifying data interpretation, eventually leading to the identification of the rocks where the texts (in Latin, Greek and other languages) are inscribed, and therefore their provenance. This research workflow is summarised in technical documentation (see diagram below), research dissemination (e.g. [Coccato et al., 2025a](https://gmpca2025.sciencesconf.org/); [Coccato et al., 2025b](https://doi.org/10.3301/ABSGI.2025.03); [Ciula et. al., 2025](https://doi.org/10.5281/zenodo.17967411); [Ciula, 2025](https://kdl.kcl.ac.uk/blog/role-and-responsibilities-rsa/)) and the actual [code used to implement the petrographic research environment](https://github.com/kingsdigitallab/crossreads-petrography).
6767

68-
<picture>
69-
<source
70-
srcset="images/technical_overview/Flowchart01DarkMode.png"
71-
media="(prefers-color-scheme: dark)"
72-
/>
73-
<source
74-
srcset="images/technical_overview/Flowchart01LightMode.png"
75-
media="(prefers-color-scheme: light)"
76-
/>
77-
<img
78-
src="images/technical_overview/Flowchart01LightMode.png"
79-
alt="Flowchart showing the petrographic analysis workflow. An Inscribed Object yields a Sample and Digital Microscopy images. The Sample is divided into Powders and Fragments. Powders undergo pXRF spectral analysis and XRD diffractometry. Fragments are examined via Digital and Optical Microscopy. All four analytical results feed into a decision point: is the material Marble? If no, the workflow proceeds directly to Analysis and Interpretation. If yes, Isotopic Analysis and Maximum Grain Size comparisons are performed before reaching the final Analysis and Interpretation stage."
80-
/>
81-
</picture>
68+
<img
69+
src="images/technical_overview/Flowchart01DarkMode.png"
70+
alt="Flowchart showing the petrographic analysis workflow. An Inscribed Object yields a Sample and Digital Microscopy images. The Sample is divided into Powders and Fragments. Powders undergo pXRF spectral analysis and XRD diffractometry. Fragments are examined via Digital and Optical Microscopy. All four analytical results feed into a decision point: is the material Marble? If no, the workflow proceeds directly to Analysis and Interpretation. If yes, Isotopic Analysis and Maximum Grain Size comparisons are performed before reaching the final Analysis and Interpretation stage."
71+
class="dark-mode-only"
72+
loading="lazy"
73+
/>
74+
<img
75+
src="images/technical_overview/Flowchart01LightMode.png"
76+
alt="Flowchart showing the petrographic analysis workflow. An Inscribed Object yields a Sample and Digital Microscopy images. The Sample is divided into Powders and Fragments. Powders undergo pXRF spectral analysis and XRD diffractometry. Fragments are examined via Digital and Optical Microscopy. All four analytical results feed into a decision point: is the material Marble? If no, the workflow proceeds directly to Analysis and Interpretation. If yes, Isotopic Analysis and Maximum Grain Size comparisons are performed before reaching the final Analysis and Interpretation stage."
77+
class="light-mode-only"
78+
loading="lazy"
79+
/>
8280

8381
<!-- ![Flowchart showing the petrographic analysis workflow. An Inscribed Object yields a Sample and Digital Microscopy images. The Sample is divided into Powders and Fragments. Powders undergo pXRF spectral analysis and XRD diffractometry. Fragments are examined via Digital and Optical Microscopy. All four analytical results feed into a decision point: is the material Marble? If no, the workflow proceeds directly to Analysis and Interpretation. If yes, Isotopic Analysis and Maximum Grain Size comparisons are performed before reaching the final Analysis and Interpretation stage.](images/technical_overview/Flowchart01DarkMode.png) -->
8482

0 commit comments

Comments
 (0)