Files
NodeBB/public/less/global.less
Julian Lam 8ae2afff05 Revert "more tweaks to threshold"
This reverts commit 1783a07067.
2016-03-30 18:10:26 -04:00

26 lines
632 B
Plaintext

/*
This stylesheet is applied to all themes and all pages.
They can be overridden by themes, though their presence (or initial settings) may be depended upon by
client-side logic in core.
==========
*/
/* Prevent viewport shuffling on image load by restricting image dimensions until viewed by the browser */
[component="post/content"] img {
transition: width 500ms ease;
transition: height 500ms ease;
transition: opacity 500ms ease;
&[data-state="unloaded"], &[data-state="loading"] {
display: inherit;
height: 1rem;
opacity: 0;
}
&[data-state="loaded"] {
display: inherit;
height: auto;
opacity: 1;
}
}