Skip to content

Instantly share code, notes, and snippets.

@alexkravets
Created April 18, 2013 22:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexkravets/5416629 to your computer and use it in GitHub Desktop.
Save alexkravets/5416629 to your computer and use it in GitHub Desktop.
SCSS for the Sencha Youtube component (https://gist.github.com/alexkravets/5416594) to support play overlay and some styling.
.x-youtube {
&:after { content: '';
display: block;
position: absolute;
width:100%;
height:100%;
background: url('../images/youtube-play@2x.png') no-repeat center;
background-size: 58px 58px;
}
&.x-youtube-overlay {
&:after { background-color: rgba(0,0,0,0.5);
}
}
&.x-youtube-loading {
&:after { background-image: none;
}
}
iframe { border: 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment