1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-12-18 02:15:56 +01:00

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 %}
{% endblock %}
{% 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 %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/application-palette.224b79ff.css' | url }}">
{% endif %}
@ -190,7 +190,7 @@
{% endblock %}
</div>
{% 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" %}
{% set languages = lang.t("search.language").split(",") %}
{% if languages | length and languages[0] != "" %}

View File

@ -457,11 +457,23 @@ kbd {
vertical-align: top;
}
// Remove top border on first row
tr:first-child td {
border-top: 0;
// 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
&:first-child td {
border-top: 0;
}
}
// Do not wrap links in tables
a {
word-break: normal;