Fix search view on mobile
This commit is contained in:
parent
5d88bccef7
commit
11e7d339ab
3 changed files with 38 additions and 3 deletions
|
@ -1,10 +1,22 @@
|
||||||
|
search-box {
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.search-box-element {
|
.search-box-element {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
text-align: left;
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-box-element .twitter-typeahead {
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-box-element input {
|
.search-box-element input {
|
||||||
width: 300px;
|
width: 300px;
|
||||||
|
max-width: 100%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
|
|
|
@ -84,3 +84,27 @@
|
||||||
.search .search-results li .search-result-box {
|
.search .search-results li .search-result-box {
|
||||||
padding: 6px;
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -28,9 +28,8 @@
|
||||||
<span class="markdown-view" content="result.description" first-line-only="true"></span>
|
<span class="markdown-view" content="result.description" first-line-only="true"></span>
|
||||||
</p>
|
</p>
|
||||||
<p class="result-info-bar">
|
<p class="result-info-bar">
|
||||||
Last Modified: <span am-time-ago="result.last_modified * 1000"></span>
|
<span class="info-span">Last Modified: <span am-time-ago="result.last_modified * 1000"></span></span>
|
||||||
|
<span class="info-span activity">
|
||||||
<span class="activity">
|
|
||||||
activity
|
activity
|
||||||
<span class="strength-indicator" value="::result.popularity"
|
<span class="strength-indicator" value="::result.popularity"
|
||||||
maximum="::maxPopularity"
|
maximum="::maxPopularity"
|
||||||
|
|
Reference in a new issue