diff --git a/nyaa/static/css/main.css b/nyaa/static/css/main.css index df3a34d..7edbffa 100644 --- a/nyaa/static/css/main.css +++ b/nyaa/static/css/main.css @@ -99,6 +99,74 @@ table.torrent-list thead th.sorting_desc:after { } } +.search-container { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-orient: vertical; + -webkit-box-direction: normal; + -ms-flex-direction: column; + flex-direction: column; +} + +.form-control.search-bar { + -webkit-box-ordinal-group: 2; + -ms-flex-order: 1; + order: 1; + width: 99%; + padding-right: 4em; +} + +.search-btn { + -webkit-box-ordinal-group: 3; + -ms-flex-order: 2; + order: 2; + -ms-flex-item-align: end; + align-self: flex-end; + top: -34px; + height: 0; + width: auto; + z-index: 3; +} + +#navFilter-criteria { + -webkit-box-ordinal-group: 4; + -ms-flex-order: 3; + order: 3; +} + +#navFilter-category { + -webkit-box-ordinal-group: 5; + -ms-flex-order: 4; + order: 4; +} + +.nav-filter { + width: 100%; + padding: 1em 0; +} + +.bootstrap-select > button { + margin-top: 1em; +} + +/* Allows the bootstrap selects on nav show outside the + collapsible section of the navigation */ +.navbar-collapse.in { + overflow-y: visible; +} + +@media (min-width: 991px) { + .search-btn { + top: 0; + width: auto; + } + + .bootstrap-select > button { + margin-top: auto; + } +} + /* elasticsearch term highlight */ .hlt1 { font-style: normal; diff --git a/nyaa/templates/layout.html b/nyaa/templates/layout.html index 9f91979..d6c14fe 100644 --- a/nyaa/templates/layout.html +++ b/nyaa/templates/layout.html @@ -145,16 +145,16 @@ {% else %}