Skip to content

Commit b759b91

Browse files
authored
improve docs footer layout on smaller screens (#4717)
1 parent b0d355f commit b759b91

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

website/src/css/customTheme.scss

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1221,22 +1221,30 @@ button[class*="tocCollapsibleButton"] {
12211221
.theme-last-updated {
12221222
line-height: 18px;
12231223
}
1224+
1225+
.theme-doc-footer-edit-meta-row {
1226+
padding: 0 var(--ifm-spacing-horizontal);
1227+
grid-row-gap: 8px;
1228+
}
12241229
}
12251230

1226-
@media only screen and (min-width: 540px) and (max-width: 996px) {
1227-
.theme-doc-footer .col {
1228-
flex-basis: 50% !important;
1229-
max-width: 50% !important;
1231+
@media only screen and (max-width: 1320px) {
1232+
.theme-doc-footer-edit-meta-row {
1233+
flex-direction: column;
1234+
}
1235+
}
1236+
1237+
@media only screen and (max-width: 996px) {
1238+
div[class^="lastUpdated"] {
1239+
text-align: end;
12301240
}
12311241
}
12321242

12331243
@media only screen and (max-width: 539px) {
1234-
.theme-doc-footer .col {
1244+
.theme-doc-footer-edit-meta-row div[class^="editButtons"] {
1245+
flex-direction: column;
1246+
grid-row-gap: 8px;
12351247
text-align: center;
1236-
1237-
&:first-child {
1238-
margin-bottom: 16px;
1239-
}
12401248
}
12411249
}
12421250

0 commit comments

Comments
 (0)