wishthis/node_modules/fomantic-ui/dist/components/embed.css

156 lines
2.6 KiB
CSS
Raw Normal View History

2022-01-13 13:00:31 +00:00
/*!
2023-08-17 09:47:40 +00:00
* # Fomantic-UI 2.9.2 - Embed
* https://github.com/fomantic/Fomantic-UI/
2022-01-13 13:00:31 +00:00
*
*
* Released under the MIT license
2023-08-17 09:47:40 +00:00
* https://opensource.org/licenses/MIT
2022-01-13 13:00:31 +00:00
*
*/
/*******************************
Types
*******************************/
.ui.embed {
position: relative;
max-width: 100%;
height: 0;
overflow: hidden;
2023-08-17 09:47:40 +00:00
background: #dcddde;
2022-01-13 13:00:31 +00:00
padding-bottom: 56.25%;
}
2023-08-17 09:47:40 +00:00
/* -----------------
2022-01-13 13:00:31 +00:00
Embedded Content
2023-08-17 09:47:40 +00:00
------------------ */
2022-01-13 13:00:31 +00:00
.ui.embed iframe,
.ui.embed embed,
.ui.embed object {
position: absolute;
border: none;
width: 100%;
height: 100%;
top: 0;
left: 0;
margin: 0;
padding: 0;
overflow: hidden;
}
2023-08-17 09:47:40 +00:00
/* -----------------
2022-01-13 13:00:31 +00:00
Embed
2023-08-17 09:47:40 +00:00
------------------ */
2022-01-13 13:00:31 +00:00
.ui.embed > .embed {
display: none;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Placeholder
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.embed > .placeholder {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
2023-08-17 09:47:40 +00:00
background: radial-gradient(transparent 45%, rgba(0, 0, 0, 0.3));
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Icon
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.embed > i.icon {
cursor: pointer;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 2;
}
2022-06-08 10:36:39 +00:00
.ui.embed > i.icon::after {
2022-01-13 13:00:31 +00:00
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 3;
2023-08-17 09:47:40 +00:00
content: "";
2022-01-13 13:00:31 +00:00
background: radial-gradient(transparent 45%, rgba(0, 0, 0, 0.3));
opacity: 0.5;
transition: opacity 0.5s ease;
}
2022-06-08 10:36:39 +00:00
.ui.embed > i.icon::before {
2022-01-13 13:00:31 +00:00
position: absolute;
top: 50%;
left: 50%;
2023-08-17 09:47:40 +00:00
transform: translateX(-50%) translateY(-50%);
color: #fff;
2022-01-13 13:00:31 +00:00
font-size: 6rem;
text-shadow: 0 2px 10px rgba(34, 36, 38, 0.2);
transition: opacity 0.5s ease, color 0.5s ease;
z-index: 10;
}
/*******************************
States
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Hover
2023-08-17 09:47:40 +00:00
--------------- */
2022-06-08 10:36:39 +00:00
.ui.embed i.icon:hover::after {
2022-01-13 13:00:31 +00:00
background: radial-gradient(transparent 45%, rgba(0, 0, 0, 0.3));
opacity: 1;
}
2022-06-08 10:36:39 +00:00
.ui.embed i.icon:hover::before {
2023-08-17 09:47:40 +00:00
color: #fff;
2022-01-13 13:00:31 +00:00
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Active
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.active.embed > i.icon,
.ui.active.embed > .placeholder {
display: none;
}
.ui.active.embed > .embed {
display: block;
}
/*******************************
Variations
*******************************/
.ui.square.embed {
padding-bottom: 100%;
}
.ui[class*="4:3"].embed {
padding-bottom: 75%;
}
.ui[class*="16:9"].embed {
padding-bottom: 56.25%;
}
.ui[class*="21:9"].embed {
padding-bottom: 42.85714286%;
}
/*******************************
Video Overrides
*******************************/
/*******************************
Site Overrides
*******************************/