Overview block fix.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -18,3 +18,4 @@ docs/_build
|
||||
|
||||
coverage.xml
|
||||
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);
|
||||
}
|
||||
|
||||
.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;
|
||||
|
@ -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>
|
||||
|
Reference in New Issue
Block a user