Skip to content

Commit c7ec98c

Browse files
authored
Merge pull request #2217 from rysweet/fix/issue-2215-github-header-link
fix: Ensure GitHub header link visible at tablet breakpoint (Issue #2215)
2 parents a83f6df + 977e8d7 commit c7ec98c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/stylesheets/extra.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,21 @@ code {
8484
background-color: #4caf50;
8585
color: white;
8686
}
87+
88+
/* Ensure GitHub header link is visible at tablet breakpoint and above (Issue #2215)
89+
Material for MkDocs default shows at 60em (960px), lowering to 45em (720px) */
90+
@media screen and (min-width: 45em) {
91+
.md-header__source {
92+
display: block;
93+
max-width: 11.7rem;
94+
width: 11.7rem;
95+
}
96+
97+
[dir=ltr] .md-header__source {
98+
margin-left: 1rem;
99+
}
100+
101+
[dir=rtl] .md-header__source {
102+
margin-right: 1rem;
103+
}
104+
}

0 commit comments

Comments
 (0)