You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
silverwind 57a0a7ef64
Fix opaque background on mermaid diagrams (#21642)
Browsers introduce a opaque background on iframes if the iframe
element's color-scheme does not match the document's color scheme which
in case of a dark theme results in a mismatch and the browser adds a
white background. Avoid this by specifying the same color scheme outside
and inside the iframe.

See https://fvsch.com/transparent-iframes for more info.

My initial attempt was to make the iframe document the same color-scheme
as the parent page (light or dark) but with that, there was a ugly
background flash on load in Chrome because Chrome apparently always
loads iframe in light scheme initially. Firefox still shows a background
flash on load but this is not possible to get rid of and it's certainly
a browser bug.

Before:
<img width="1147" alt="Screen Shot 2022-10-31 at 13 30 55"
src="https://user-images.githubusercontent.com/115237/199017132-9828aace-bdd0-4ede-8118-359e72bcf2fe.png">

After:
<img width="1152" alt="Screen Shot 2022-10-31 at 13 30 36"
src="https://user-images.githubusercontent.com/115237/199017137-989a9e67-3fe0-445f-a191-df5bf290dabf.png">
2 years ago
..
chroma Improve arc-green code theme (#21039) 2 years ago
code Fix and restyle menu on code line (#15913) 3 years ago
codemirror Support Issue forms and PR forms (#20987) 2 years ago
console Add support for rendering terminal output with colors (#19497) 2 years ago
features Update JS dependencies and misc tweaks (#21583) 2 years ago
markup Fix opaque background on mermaid diagrams (#21642) 2 years ago
modules Use separate class for tippy targets (#20742) 2 years ago
shared Make branch icon stand out more (#20726) 2 years ago
standalone Update JS dependencies, fix lint (#18389) 2 years ago
themes Use CSS color-scheme instead of invert (#21616) 2 years ago
_admin.less Changed scroll to auto for some UI elements. (#20294) 2 years ago
_base.less Use CSS color-scheme instead of invert (#21616) 2 years ago
_dashboard.less Add `code` highlighting in issue titles (#21432) 2 years ago
_editor.less Extract CodeMirror styles (#17960) 3 years ago
_explore.less Remove fomantic image module (#21145) 2 years ago
_font_i18n.less Prefer "Hiragino Kaku Gothic ProN" in system-ui-ja (#17954) 3 years ago
_form.less Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
_home.less fix media query edge case (#13546) 4 years ago
_install.less Refactor install page (db type) (#17919) 3 years ago
_organization.less Add team member invite by email (#20307) 2 years ago
_package.less Fix empty container layer history and UI (#21251) 2 years ago
_repository.less fix: PR status layout on mobile (#21547) 2 years ago
_review.less Improve code comment review on mobile (#21461) 2 years ago
_svg.less Update JS dependencies, fix lint (#18389) 2 years ago
_tribute.less CSS color enhancements (#21534) 2 years ago
_user.less Add badge capabilities to users (#20607) 2 years ago
animations.less Consolidate more CSS colors into variables (#21402) 2 years ago
helpers.less Improve code comment review on mobile (#21461) 2 years ago
index.less Fix empty container layer history and UI (#21251) 2 years ago
variables.less fix media query edge case (#13546) 4 years ago