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

Fixed white background on Twitter embeds

This commit is contained in:
squidfunk 2024-03-09 14:05:00 +07:00
parent c8a2142263
commit 1d6dd990b4
No known key found for this signature in database
GPG Key ID: 5ED40BC4F9C436DF
6 changed files with 8 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.7e359304.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.609c4d16.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">

View File

@ -422,6 +422,11 @@ kbd {
// Limit width to container
iframe {
max-width: 100%;
// Hack: we're currently not sure whether this is a bug in Twitter's CSS,
// or everything is working as intended, but if we don't reset the color
// scheme, Twitter's embedded tweets will have white background at the
// borders, which looks odd - see https://t.ly/N8P-Z
color-scheme: initial;
}
// Data table