Skip to content

Commit

Permalink
Move index-container to top of page on smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
dhogan8 committed Dec 10, 2023
1 parent d114232 commit c707cf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion root/static/js/cpan.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ $(document).ready(function() {
$('.dropdown-toggle').dropdown();

function format_index(index) {
index.wrap('<div id="index-container" class="pull-right"><div class="index-border"></div></div>');
index.wrap('<div id="index-container"><div class="index-border"></div></div>');
var container = index.parent().parent();

var index_hidden = MetaCPAN.storage.getItem('hideTOC') == 1;
Expand Down
7 changes: 4 additions & 3 deletions root/static/less/pod.less
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ ul#index, #index ul {
}

#index-container {
margin-left: 50px;
margin-bottom: 40px;

@media (min-width: 0) and (max-width: @screen-md-max) {
.responsive-invisibility();
@media (min-width: @screen-md-max) {
float: right;
margin-left: 50px;
}

overflow-y: hidden;
Expand Down

0 comments on commit c707cf2

Please sign in to comment.