Skip to content

Commit 117b7a3

Browse files
authored
Visual diff: use default CSS variables for Material for MkDocs (#610)
![Screenshot_2025-06-30_13-51-21](https://github.com/user-attachments/assets/b756fb30-29d1-44b0-9fb0-fdfdd1f13432) Closes #505
1 parent 2178271 commit 117b7a3

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/defaults.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
:root[data-readthedocs-tool="mkdocs-material"] {
99
--readthedocs-font-size: 1.455em;
10+
--readthedocs-filetreediff-icon-width: 0.6rem;
1011
}
1112

1213
:root[data-readthedocs-tool="antora"] {

src/filetreediff.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
--readthedocs-filetreediff-border-color: #ddd;
1111
--readthedocs-filetreediff-label-color: #333;
1212
--readthedocs-filetreediff-chunks-color: #27ae60;
13+
--readthedocs-filetreediff-icon-width: 0.8rem;
1314
}
1415
}
1516

@@ -41,7 +42,6 @@
4142
background-color: var(--readthedocs-filetreediff-background-color);
4243
border-radius: 0.25em;
4344
appearance: revert;
44-
font-size: var(--readthedocs-filetreediff-font-size);
4545
}
4646

4747
:host > div > div > label {
@@ -70,8 +70,8 @@
7070
}
7171

7272
:host > div > div > a {
73-
width: 0.8rem;
74-
color: var(--addons-filetreediff-color);
73+
width: var(--readthedocs-filetreediff-icon-width);
74+
color: var(--readthedocs-filetreediff-color);
7575
}
7676

7777
:host > div > div > a.version {

0 commit comments

Comments
 (0)