1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-24 15:40:15 +01:00

Fixed hover states of search input for black and white palette

This commit is contained in:
squidfunk 2020-03-21 16:20:06 +01:00
parent 08d89aeca2
commit 0b622b3333
6 changed files with 19 additions and 9 deletions

View File

@ -1,10 +1,10 @@
{ {
"assets/javascripts/bundle.js": "assets/javascripts/bundle.94a3fc3f.min.js", "assets/javascripts/bundle.js": "assets/javascripts/bundle.59c8d50f.min.js",
"assets/javascripts/bundle.js.map": "assets/javascripts/bundle.94a3fc3f.min.js.map", "assets/javascripts/bundle.js.map": "assets/javascripts/bundle.59c8d50f.min.js.map",
"assets/javascripts/vendor.js": "assets/javascripts/vendor.0c35f0aa.min.js", "assets/javascripts/vendor.js": "assets/javascripts/vendor.0c35f0aa.min.js",
"assets/javascripts/vendor.js.map": "assets/javascripts/vendor.0c35f0aa.min.js.map", "assets/javascripts/vendor.js.map": "assets/javascripts/vendor.0c35f0aa.min.js.map",
"assets/javascripts/worker/search.js": "assets/javascripts/worker/search.2613054f.min.js", "assets/javascripts/worker/search.js": "assets/javascripts/worker/search.2613054f.min.js",
"assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.2613054f.min.js.map", "assets/javascripts/worker/search.js.map": "assets/javascripts/worker/search.2613054f.min.js.map",
"assets/stylesheets/main.css": "assets/stylesheets/main.b9803391.min.css", "assets/stylesheets/main.css": "assets/stylesheets/main.b9803391.min.css",
"assets/stylesheets/palette.css": "assets/stylesheets/palette.31180ff2.min.css" "assets/stylesheets/palette.css": "assets/stylesheets/palette.4444686e.min.css"
} }

View File

@ -43,7 +43,7 @@
{% block styles %} {% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.b9803391.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/main.b9803391.min.css' | url }}">
{% if palette.primary or palette.accent %} {% if palette.primary or palette.accent %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.31180ff2.min.css' | url }}"> <link rel="stylesheet" href="{{ 'assets/stylesheets/palette.4444686e.min.css' | url }}">
{% endif %} {% endif %}
{% if palette.primary %} {% if palette.primary %}
{% import "partials/palette.html" as map %} {% import "partials/palette.html" as map %}
@ -178,7 +178,7 @@
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<script src="{{ 'assets/javascripts/vendor.0c35f0aa.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/vendor.0c35f0aa.min.js' | url }}"></script>
<script src="{{ 'assets/javascripts/bundle.94a3fc3f.min.js' | url }}"></script> <script src="{{ 'assets/javascripts/bundle.59c8d50f.min.js' | url }}"></script>
{%- set translations = {} -%} {%- set translations = {} -%}
{%- for key in [ {%- for key in [
"clipboard.copy", "clipboard.copy",

View File

@ -134,6 +134,11 @@
&::placeholder { &::placeholder {
color: var(--md-default-fg-color--light); color: var(--md-default-fg-color--light);
} }
// Hovered search field
&:hover {
background-color: var(--md-default-fg-color--lighter);
}
} }
} }
@ -200,9 +205,14 @@
// Search input // Search input
.md-search__input { .md-search__input {
background-color: var(--md-default-bg-color--lighter);
// Hovered search field
&:hover {
background-color: var(--md-default-bg-color--lightest); background-color: var(--md-default-bg-color--lightest);
} }
} }
}
// [tablet -]: Layered navigation // [tablet -]: Layered navigation
@include break-to-device(tablet) { @include break-to-device(tablet) {