File "_media.scss"
Full Path: /home/elegucvf/public_html/video/wp-content/wp-includes/wp-includes/wp-includes/wp-content/themes/atlas/scss/_media.scss
File size: 4.42 KB
MIME-type: text/plain
Charset: utf-8
/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
img {
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor;
}
img,
video {
display: block;
height: auto;
max-width: 100%;
}
audio {
display: block;
}
.comment-content .entry-content,
.page-content {
.wp-smiley {
border: none;
margin-bottom: 0;
margin-top: 0;
padding: 0;
}
}
/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
max-width: 100%;
}
iframe {
border: 0;
}
/* Remove bottom on embeds that wrapped in paragraphs via wpautop. */
p > embed,
p > iframe,
p > object {
&:only-child {
margin-bottom: 0;
}
}
/* Gallery */
.gallery {
display: flex;
flex-flow: row wrap;
}
.gallery-item {
display: inline-block;
margin-#{$right}: 15px;
margin-bottom: 15px;
text-align: center;
vertical-align: top;
width: 100%;
img {
margin: auto;
}
// Loops to enumerate the classes for gallery columns.
@for $i from 2 through 9 {
.gallery-columns-#{$i} & {
max-width: calc((100% - 16px * #{$i - 1}) / #{$i});
&:nth-of-type(#{$i}n+#{$i}) {
margin-#{$right}: 0;
}
}
}
&:last-of-type {
padding-#{$right}: 0;
}
.gallery-caption {
margin-top: $caption_gap;
margin-bottom: 0;
}
}
.simple-gallery {
margin-bottom: 30px;
&:last-child {
margin-bottom: 0;
}
}
/* Media Holder */
.media-holder {
> * {
display: block;
}
}
.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
embed,
iframe,
object,
video {
position: absolute;
top: 0;
#{$left}: 0;
width: 100%;
height: 100%;
}
}
.wp-video-shortcode {
visibility: hidden;
&.mejs-video {
visibility: visible;
}
}
.thumb-container {
position: relative;
overflow: hidden;
border-radius: var(--image-radius);
@include transform(translateZ(0));
@include transition(all, 0.4s, ease);
img {
position: absolute;
top: 0;
bottom: 0;
#{$left}: 0;
width: 100%;
min-height: 100%;
height: 100% !important;
margin-bottom: 0;
@include transition(all, 0.4s, ease);
object-fit: cover;
-webkit-object-fit: cover;
object-position: center;
-webkit-object-position: center;
z-index: 1;
.post-layout &:hover,
.woo-product &:hover,
.post-hero:hover & {
@include transform(scale(1.1));
}
}
.img-char {
//@include accent-background;
background: #666;
color: #fff;
@include heading-text;
position: absolute;
top: 0;
#{$left}: 0;
width: 100%;
height: 100%;
@include flexbox;
@include justify-content(center);
@include align-items(center);
font-size: 80px;
z-index: 0;
.post-small-thumbnail & {
font-size: 30px;
}
}
&.thumb-100 {
padding-bottom: 100%;
}
&.thumb-56 {
padding-bottom: 56%;
}
&.thumb-62 {
padding-bottom: 62.5%;
}
&.thumb-67 {
padding-bottom: 67%;
}
&.thumb-75 {
padding-bottom: 75%;
}
&.thumb-50 {
padding-bottom: 50%;
}
&.thumb-125 {
padding-bottom: 125%;
}
&.thumb-150 {
padding-bottom: 150%;
}
&.thumb-133 {
padding-bottom: 133%;
}
.thumbnail-circle & {
border-radius: 50%;
}
}
.blocks-gallery-grid:not(.has-nested-images),
.wp-block-gallery:not(.has-nested-images) {
width: 100%;
}
.block-egallery-wrap {
position: relative;
}
.instagram-galbtn {
@include center(both);
z-index: 1;
margin: 0;
}
.block-egallery {
@include flexbox;
@include flex-wrap(wrap);
margin: 0;
> * {
width: 25%;
padding: 0;
display: block;
position: relative;
.thumb-container {
overflow: hidden;
border-radius: calc(var(--box-radius) - var(--box-line-size));
}
}
}