Improved tag list scaling

This commit is contained in:
Marcin Kurczewski 2014-10-19 15:25:21 +02:00
parent c852bc156b
commit 8509b5fb00
2 changed files with 55 additions and 42 deletions

View file

@ -1,22 +1,35 @@
#tag-list {
min-width: 15em;
max-width: 40em;
margin: 0 auto;
#tag-list-wrapper {
text-align: center;
}
#tag-list {
width: 100%;
display: inline-block;
margin: 0 auto;
}
@media all and (min-width: 67em) {
#tag-list {
width: 60em;
}
}
@media all and (max-width: 40em) {
#tag-list .implications,
#tag-list .suggestions {
display: none;
}
}
#tag-list form {
float: left;
white-space: nowrap;
}
#tag-list form input {
width: 10em;
width: 15em;
}
#tag-list ul {
#tag-list ul.order {
float: right;
list-style-type: none;
padding: 0;
margin: 0;
margin: 0 -0.5em 0 0;
}
#tag-list .search:after {
display: block;
@ -60,11 +73,9 @@
text-align: center;
}
@media all and (max-width: 40em) {
#tag-list .implications,
#tag-list .suggestions {
display: none;
}
#tag-list .implications,
#tag-list .suggestions {
word-break: break-all;
}
.tag-category-character,

View file

@ -1,4 +1,5 @@
<div id="tag-list">
<div id="tag-list-wrapper">
<div id="tag-list">
<div class="search">
<form>
<input type="text" name="query" placeholder="Search tags..."/>
@ -31,4 +32,5 @@
</tbody>
</table>
</div>
</div>
</div>