-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed button wrapping behavior on mobile #921
Changes from 3 commits
3ce99f7
f9151ca
8555899
5bba37b
320fde7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1545,8 +1545,32 @@ input::placeholder { | |
} | ||
|
||
@media only screen and (max-width: 735px) { | ||
.docs-prevnext { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deleting this means the class here is useless <div className="docs-prevnext"> There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The docs-prevnext class is still styled with: /* Start of Docs Navigation */
.docs-prevnext {
margin: 20px 0;
} The intent with removing the doc-prevnext styling within the media query was so the buttons' top and bottom margins were displayed properly, where it wasn't being displayed properly with a fixed doc-prevnext height. Does this make sense? Let me know if I missed something. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is correct. I missed that 👍 |
||
height: 40px; | ||
.docs-next { | ||
clear: both; | ||
float: left; | ||
margin: 10px 0; | ||
} | ||
|
||
.docs-prev { | ||
margin: 10px 0; | ||
} | ||
|
||
.arrow-next { | ||
float: right; | ||
margin-left: 10px; | ||
} | ||
|
||
.arrow-prev { | ||
float: left; | ||
margin-right: 10px; | ||
} | ||
|
||
.function-name-prevnext { | ||
width: 200px; | ||
display: inline-block; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
} | ||
} | ||
/* End of Docs Navigation */ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should do it with
idx
(safe getter) now. See the upstream master