style update

parent cff15e11
......@@ -24,12 +24,18 @@ a {
text-decoration: none;
}
a > p {
.translation {
color: #fcfcfc;
margin: 20px;
padding: 20px;
background-color: rgba(34,31,31,0.6);
box-shadow: 2px 2px 5px #000;
transition: box-shadow 0.2s;
}
.translation:hover {
box-shadow: 6px 6px 15px #000;
transition: box-shadow 0.3s;
}
word {
......
......@@ -30,6 +30,12 @@ conlangw {
background: #343131;
color: #fcfcfc;
box-shadow: 5px 5px 10px #000;
transition: box-shadow 0.2s;
}
.wordblock:hover {
box-shadow: 15px 15px 30px #000;
transition: box-shadow 0.3s;
}
word {
......
......@@ -44,7 +44,7 @@
{% if translations %}
<p class="title">Translations of “{{ word.word }}” in {{ to_lang.name }}:</p>
{% for translation in translations %}
<a href="{% url 'dictionary:details' to_lang.code from_lang.code translation.slug %}"><p>{{ translation.word }} ({{translation.wordclass.name}})</p></a>
<a href="{% url 'dictionary:details' to_lang.code from_lang.code translation.slug %}"><p class="translation">{{ translation.word }} ({{translation.wordclass.name}})</p></a>
{% endfor %}
{% endif %}
</listtrans>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment