Skip to content

Commit

Permalink
Fixed white background on Twitter embeds
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed Mar 9, 2024
1 parent c8a2142 commit 1d6dd99
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}">
Expand Down
5 changes: 5 additions & 0 deletions src/templates/assets/stylesheets/main/_typeset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d6dd99

Please sign in to comment.