Skip to content

Commit 2f4c6fc

Browse files
committed
style: Improve code block typography hierarchy
- Increase UI font size to 1.2rem for more prominent frame titles - Reduce code font size to 1.25rem for better balance and readability - Creates better visual hierarchy between headers and code content
1 parent fcc7f10 commit 2f4c6fc

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

ec.config.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default defineEcConfig({
2222

2323
// Typography - match site's exact monospace stack
2424
codeFontFamily: "Menlo, Monaco, Consolas, 'Courier New', monospace",
25-
codeFontSize: "1.5rem", // 24px - much larger, very readable code size
25+
codeFontSize: "1.25rem", // 20px - readable code size, smaller than before
2626
codeLineHeight: "1.5",
2727

2828
// Borders - subtle gray matching site's container styling
@@ -72,5 +72,8 @@ export default defineEcConfig({
7272
// Ensure clean, minimal appearance throughout
7373
uiSelectionBackground: "var(--nextflow-light-green)",
7474
uiSelectionForeground: "#1f2937", // Dark text for contrast
75+
76+
// Larger UI text for better readability of frame titles
77+
uiFontSize: "1.2rem", // Increased from default 0.9rem for more prominent titles
7578
},
7679
});

src/pages/examples/basic-pipeline/index.mdx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ import terminalOutput from "./_nextflow_run_output.log?raw";
2222
mark={[1, 3, { range: "8-19" }, { range: "24-35" }, { range: "40-44" }]}
2323
/>
2424

25-
<Code lang="ansi" title="Running the pipeline" frame="terminal" code={terminalOutput} />
26-
2725
### Key Concepts
2826

2927
This example demonstrates fundamental Nextflow concepts:
@@ -33,14 +31,6 @@ This example demonstrates fundamental Nextflow concepts:
3331
- **Dataflow Programming**: Output from one process automatically becomes input to the next using the `|` operator
3432
- **Parallel Execution**: Each split file is processed independently by the `reverse` process
3533

36-
### Running the Example
37-
38-
```bash
39-
# Use default input file
40-
nextflow run main.nf
41-
42-
# Override input file
43-
nextflow run main.nf --in /path/to/your/sequences.fa
44-
```
34+
<Code lang="ansi" title="Running the Example" frame="terminal" code={terminalOutput} />
4535

4636
The pipeline will split your FASTA file into individual sequences, reverse each one, and print the results.

0 commit comments

Comments
 (0)