Overview block fix.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,3 +18,4 @@ docs/_build
|
|||||||
|
|
||||||
coverage.xml
|
coverage.xml
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
|
.vscode/settings.json
|
||||||
|
@ -24,6 +24,11 @@
|
|||||||
transition: box-shadow 0.3s cubic-bezier(.25,.8,.25,1), border 0.3s cubic-bezier(.25,.8,.25,1);
|
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) {
|
.block_container .block:nth-child(odd) {
|
||||||
margin-right: 20px;
|
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);
|
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) {
|
@media (max-width: 699px) {
|
||||||
.block_container .block {
|
|
||||||
width: 100%;
|
|
||||||
margin-right: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 649px) {
|
|
||||||
.block_container .block {
|
.block_container .block {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
@ -33,9 +33,9 @@
|
|||||||
|
|
||||||
{% if user_can_create %}
|
{% if user_can_create %}
|
||||||
{% blocktrans with url=view.create_url name=view.verbose_name %}
|
{% blocktrans with url=view.create_url name=view.verbose_name %}
|
||||||
<a href="{{ url }}"><div class="block suggestion">
|
<div class="block suggestion">
|
||||||
<span class="suggestive_text">Add a new {{name}}</span>
|
<a href="{{ url }}"><span class="suggestive_text">Add a new {{name}}</span></a>
|
||||||
</div></a>
|
</div>
|
||||||
{% endblocktrans %}
|
{% endblocktrans %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user