Skip to content

Commit bca3360

Browse files
committed
Last improvements for Dark Mode and bigger Screens
1 parent 6b058b3 commit bca3360

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

doc/userguide/src/userguide.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ customize this style sheet.
3838

3939
@media (prefers-color-scheme: dark) {
4040
:root {
41+
color-scheme: dark;
4142
--background-color: #1c2227;
4243
--text-color: #e2e1d7;
4344
--border-color: #4e4e4e;
@@ -123,6 +124,17 @@ body {
123124

124125
}
125126

127+
@media (min-width: 1400px) {
128+
body > * {
129+
padding-left: calc(min(600px, 100vw - 1000px));
130+
}
131+
132+
#table-of-contents{
133+
width: max(25%, 100vw - 1020px);
134+
max-width: 580px;
135+
}
136+
}
137+
126138
a {
127139
color: var(--link-color);
128140
}

src/robot/htmldata/libdoc/libdoc.css

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

1313
@media (prefers-color-scheme: dark) {
1414
:root {
15+
color-scheme: dark;
1516
--background-color: #1c2227;
1617
--text-color: #e2e1d7;
1718
--border-color: #4e4e4e;

0 commit comments

Comments
 (0)