7

Overview block fix.

This commit is contained in:
Jasper Berghoef
2016-11-08 15:13:28 +01:00
parent 26079e1e92
commit ee94ce3f14
3 changed files with 11 additions and 12 deletions

1
.gitignore vendored
View File

@ -18,3 +18,4 @@ docs/_build
coverage.xml
db.sqlite3
.vscode/settings.json

View File

@ -24,6 +24,11 @@
transition: box-shadow 0.3s cubic-bezier(.25,.8,.25,1), border 0.3s cubic-bezier(.25,.8,.25,1);
}
.block_container .block h2 {
display: inline-block;
width: auto;
}
.block_container .block:nth-child(odd) {
margin-right: 20px;
}
@ -52,14 +57,7 @@
box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}
@media (min-width: 800px) and (max-width: 899px) {
.block_container .block {
width: 100%;
margin-right: 0;
}
}
@media (max-width: 649px) {
@media (max-width: 699px) {
.block_container .block {
width: 100%;
margin-right: 0;

View File

@ -33,9 +33,9 @@
{% if user_can_create %}
{% blocktrans with url=view.create_url name=view.verbose_name %}
<a href="{{ url }}"><div class="block suggestion">
<span class="suggestive_text">Add a new {{name}}</span>
</div></a>
<div class="block suggestion">
<a href="{{ url }}"><span class="suggestive_text">Add a new {{name}}</span></a>
</div>
{% endblocktrans %}
{% endif %}
</div>