Added background on hover for table rows

This commit is contained in:
squidfunk 2019-02-13 16:14:20 +01:00
parent 74c473e2d7
commit 2b2d908d6e
5 changed files with 19 additions and 7 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,7 +53,7 @@
{% endif %} {% endif %}
{% endblock %} {% endblock %}
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/application.18bd1ba2.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/application.982221ab.css' | url }}">
{% if palette.primary or palette.accent %} {% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/application-palette.224b79ff.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/application-palette.224b79ff.css' | url }}">
{% endif %} {% endif %}
@ -190,7 +190,7 @@
{% endblock %} {% endblock %}
</div> </div>
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/application.ad41a940.js' | url }}"></script> <script src="{{ 'assets/javascripts/application.a8c1b0c3.js' | url }}"></script>
{% if lang.t("search.language") != "en" %} {% if lang.t("search.language") != "en" %}
{% set languages = lang.t("search.language").split(",") %} {% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %} {% if languages | length and languages[0] != "" %}

View File

@ -457,10 +457,22 @@ kbd {
vertical-align: top; vertical-align: top;
} }
// Table rows
tr {
transition: background-color 0.125s;
// Add background on hover
&:hover {
background-color: rgba(0, 0, 0, 0.035);
box-shadow: 0 px2rem(1px) 0 $md-color-white inset;
}
// Remove top border on first row // Remove top border on first row
tr:first-child td { &:first-child td {
border-top: 0; border-top: 0;
} }
}
// Do not wrap links in tables // Do not wrap links in tables
a { a {