This repository has been archived on 2024-01-26. You can view files and clone it, but cannot push or open issues or pull requests.
calcifer/web/semantic/dist/components/video.css

126 lines
2.2 KiB
CSS
Raw Normal View History

2015-03-29 19:33:23 +02:00
/*!
2016-06-10 00:34:34 +02:00
* # Semantic UI 2.0.0 - Video
2015-03-29 19:33:23 +02:00
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2014 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
/*******************************
Video
*******************************/
.ui.video {
background-color: #dddddd;
position: relative;
max-width: 100%;
padding-bottom: 56.25%;
height: 0px;
overflow: hidden;
}
/*--------------
Content
---------------*/
/* Placeholder Image */
.ui.video .placeholder {
background-color: #333333;
}
/* Play Icon Overlay */
.ui.video .play {
cursor: pointer;
position: absolute;
top: 0px;
left: 0px;
z-index: 10;
width: 100%;
height: 100%;
2016-06-10 00:34:34 +02:00
background: transparent;
-webkit-transition: background 0.2s ease;
transition: background 0.2s ease;
2015-03-29 19:33:23 +02:00
}
.ui.video .play.icon:before {
position: absolute;
top: 50%;
left: 50%;
z-index: 11;
-webkit-transform: translateX(-50%) translateY(-50%);
-ms-transform: translateX(-50%) translateY(-50%);
transform: translateX(-50%) translateY(-50%);
2016-06-10 00:34:34 +02:00
color: rgba(255, 255, 255, 0.7);
font-size: 7rem;
text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.15);
-webkit-transition: color 0.2s ease;
transition: color 0.2s ease;
2015-03-29 19:33:23 +02:00
}
.ui.video .placeholder {
position: absolute;
top: 0px;
left: 0px;
display: block;
width: 100%;
height: 100%;
}
/* IFrame Embed */
.ui.video .embed iframe,
.ui.video .embed embed,
.ui.video .embed object {
position: absolute;
border: none;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
margin: 0em;
padding: 0em;
}
/*******************************
States
*******************************/
/*--------------
Hover
---------------*/
.ui.video .play:hover {
2016-06-10 00:34:34 +02:00
background: rgba(0, 0, 0, 0);
}
.ui.video .play:hover:before {
color: #ffffff;
2015-03-29 19:33:23 +02:00
}
/*--------------
Active
---------------*/
2016-06-10 00:34:34 +02:00
.ui.active.video .play,
.ui.active.video .placeholder {
2015-03-29 19:33:23 +02:00
display: none;
}
2016-06-10 00:34:34 +02:00
.ui.active.video .embed {
2015-03-29 19:33:23 +02:00
display: inline;
}
/*******************************
Video Overrides
*******************************/
/*******************************
Site Overrides
*******************************/