Skip to content

Commit 1874755

Browse files
CopilotBornToBeRoot
andcommitted
Add CSS variable for content max-width to eliminate duplication
Co-authored-by: BornToBeRoot <[email protected]>
1 parent 0d3a9b4 commit 1874755

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Website/src/css/custom.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919

2020
/* Custom color variables */
2121
--ifm-background-dark: #2b3137;
22+
23+
/* Custom layout variables */
24+
--content-max-width: 1060px;
2225
}
2326

2427
/* For readability concerns, you should choose a lighter palette in dark mode. */
@@ -42,5 +45,5 @@
4245
.image {
4346
display: block;
4447
margin: auto;
45-
max-width: 1060px;
48+
max-width: var(--content-max-width);
4649
}

Website/src/pages/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ table {
9797
.imageScreenshot {
9898
display: block;
9999
margin: auto;
100-
max-width: 1060px;
100+
max-width: var(--content-max-width);
101101
width: 100%;
102102
height: auto;
103103
}

0 commit comments

Comments
 (0)