Skip to content

Commit

Permalink
enh: Add more padding to link buttons, especially on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Dec 22, 2024
1 parent 3a19614 commit 348e63e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions mkdocs_landing/css/links.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ main h1 {
main h1 > a {
border: 2px solid var(--crust);
border-radius: 1rem;
padding: 1rem 2rem;
padding: 2rem 3rem;
margin-bottom: 2rem;
margin-top: 1rem;
margin-left: -1rem;
Expand All @@ -34,4 +34,18 @@ main h1 > a img {
padding: 0;
min-width: 2em;
width: 2em;
}
}


/*
Double the size on various elements when using a touch pointer
*/
@media (pointer:coarse) {
main h1 > a {
border-radius: 2rem;
margin-top: 2rem;
margin-bottom: 4rem;
margin-left: -2rem;
padding: 4rem 5rem;
}
}

0 comments on commit 348e63e

Please sign in to comment.