Fix search view on mobile

This commit is contained in:
Joseph Schorr 2017-05-04 14:29:29 -04:00
parent 5d88bccef7
commit 11e7d339ab
3 changed files with 38 additions and 3 deletions

View file

@ -1,10 +1,22 @@
search-box {
display: inline-block;
max-width: 100%;
}
.search-box-element {
display: inline-block;
position: relative;
text-align: left;
max-width: 100%;
}
.search-box-element .twitter-typeahead {
max-width: 100%;
}
.search-box-element input {
width: 300px;
max-width: 100%;
display: inline-block;
border-radius: 0px;
height: 30px;

View file

@ -84,3 +84,27 @@
.search .search-results li .search-result-box {
padding: 6px;
}
@media screen and (max-width: 767px) {
.search {
padding: 0px;
}
.search .search-results {
padding-left: 12px;
}
.search .result-info-bar .info-span {
display: block;
float: none !important;
text-align: left;
margin-bottom: 10px;
}
.search .search-results li .star-icon {
color: #ffba6d;
font-size: 16px;
margin-left: 6px;
vertical-align: middle;
}
}

View file

@ -28,9 +28,8 @@
<span class="markdown-view" content="result.description" first-line-only="true"></span>
</p>
<p class="result-info-bar">
Last Modified: <span am-time-ago="result.last_modified * 1000"></span>
<span class="activity">
<span class="info-span">Last Modified: <span am-time-ago="result.last_modified * 1000"></span></span>
<span class="info-span activity">
activity
<span class="strength-indicator" value="::result.popularity"
maximum="::maxPopularity"