mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 16:28:01 -05:00
spotlight: Fade before first item is displayed.
This is intended to reduce the perceptual flash when promos load in.
This commit is contained in:
@@ -957,6 +957,15 @@ a.author { margin-right: 0.5em; }
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
min-height: 50px;
|
||||
|
||||
&.loading {
|
||||
height: 62px;
|
||||
opacity: .5;
|
||||
|
||||
& .help, & .throbber {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.organic-listing .link {
|
||||
|
||||
@@ -136,6 +136,7 @@ r.spotlight._advance = function(dir) {
|
||||
}
|
||||
|
||||
$nextprev.removeClass('working')
|
||||
listing.removeClass('loading')
|
||||
|
||||
// size the rank element so that spotlight box
|
||||
// items line up with the main page listing
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
from r2.lib.wrapped import Templated
|
||||
%>
|
||||
|
||||
<div id="siteTable_organic" class="organic-listing">
|
||||
<div id="siteTable_organic" class="organic-listing loading">
|
||||
%if thing.things:
|
||||
%for link in thing.things:
|
||||
${unsafe(link.render(display=False))}
|
||||
|
||||
Reference in New Issue
Block a user