.ads-wrapper { @extend .navigation; background-color: var(--color-ads-background); padding-top: 0.5rem; padding-right: 0.5rem; p { margin-left: 0.4rem; // The ads provider adds weird padding to their wrapper font-size: var(--font-xsmall); color: var(--color-ads-text); } .button--link { color: var(--color-ads-link); } } .avp-p-wrapper { // Hide by default, so that any stray floater won't be visible. // We'll enable it only within our designated container (see below). display: none; } // Inline Video Ads // The default is coded for list-layout; // --tile and other modifiers adjust accordingly. .ads__claim-item { margin-top: var(--spacing-m); margin-bottom: var(--spacing-m); padding: var(--spacing-m); background-color: var(--color-ads-background); border-radius: var(--border-radius); display: flex; flex-direction: row; width: 100%; .ad__container { aspect-ratio: 16 / 9; $minWidth: calc(var(--file-list-thumbnail-width) * 0.8); min-width: $minWidth; background-color: #283263; background-image: url('~ui/component/membershipSplash/astronaut_n_friends.png'); background-size: 100%; border-radius: var(--border-radius); box-shadow: 0 0 0 1px var(--color-header-background) inset; .avp-p-wrapper { background-color: unset !important; .avp-content-container { background-color: unset !important; // box-shadow: 0 0 0 1px black inset; div { background-color: unset !important; } } } video { width: 100% !important; height: 100% !important; border-radius: var(--border-radius) !important; border: 1px solid rgba(var(--color-primary-dynamic), 0.1); } @media (max-width: $breakpoint-small) { $width: calc(var(--file-list-thumbnail-width) * 0.8); width: $width; } @media (min-width: $breakpoint-small) and (max-width: $breakpoint-large) { $width: calc(var(--file-list-thumbnail-width) * 1.2); width: $width; } @media (min-width: $breakpoint-large) { $width: calc(var(--file-list-thumbnail-width) * 1.2); width: $width; } .avp-p-wrapper { // Only enable this within our container. display: block; } .avp-p-wrapper.av-floating { display: none; } #aniBox, #av-container { border-radius: var(--border-radius); } .avp-p-wrapper > div { border-radius: var(--border-radius); } } &:hover { .ads__title { color: var(--color-primary); } .ad__container { box-shadow: 0 0 0 1px rgba(var(--color-primary-dynamic), 1) inset; } video { border: 1px solid rgba(var(--color-primary-dynamic), 1); } } } .claim-list { .ads__claim-item--tile { background-color: var(--color-ads-background); margin-left: unset; margin-bottom: var(--spacing-xxs); width: 100%; padding: var(--spacing-m); flex: 1; flex-direction: row; .ad__container { width: calc(var(--file-list-thumbnail-width) * 1.2); // margin-left: var(--spacing-s); margin-right: var(--spacing-s); } } } .ads__claim-item--tile { @extend .card; @extend .claim-preview--tile; flex-direction: column; padding: 0; background-color: unset; border-bottom: unset; .ads__claim-text { margin: var(--spacing-xs) 0 0 0; display: flex; flex-direction: column; justify-content: center; .ads__title { color: var(--color-text); } .ads__subtitle { margin-top: var(--spacing-s); color: rgba(var(--color-text-base), 0.6) !important; font-weight: var(--font-weight-bold); line-height: 1rem; font-size: var(--font-xsmall); .icon { color: var(--color-text) !important; width: 2.1rem; height: 2.1rem; float: left; margin-right: var(--spacing-s); } } } .ads__claim-text--small { .ads__title { font-size: var(--font-small) !important; margin-bottom: 0; } } .ad__container { width: 100%; } .ads__claim-text { max-width: 100%; } #close-btn { left: unset !important; right: 0 !important; border: none !important; border-radius: 0 var(--border-radius) 0 var(--border-radius) !important; background-color: var(--color-primary) !important; } .visible { display: none !important; position: absolute !important; top: 0px !important; z-index: 99 !important; width: 3rem !important; height: 3rem !important; background-color: var(--color-primary) !important; border-radius: 0 var(--border-radius) 0 var(--border-radius) !important; background-size: 60% !important; } } .ads__claim-item--recommended { // padding: var(--spacing-s); padding: 0; margin-top: var(--spacing-m); border-radius: var(--border-radius); border-bottom: unset; .ad__container { // width:100%; width: var(--file-list-thumbnail-width); } .ads__claim-text { margin: 0; padding-left: var(--spacing-s); .ads__title { color: var(--color-text); font-size: var(--font-small); font-weight: var(--font-weight-bold); } } .icon { display: none; } @media (min-width: $breakpoint-medium) { margin-bottom: 0; } } .ads__claim-text { overflow: hidden; max-width: 50%; margin: var(--spacing-m) 0 var(--spacing-m) var(--spacing-s); display: flex; flex-direction: column; justify-content: center; color: var(--color-text-subtitle); } .ads__claim-text--small { // font-size: var(--font-small); color: var(--color-text); font-weight: var(--font-weight-bold); font-size: var(--font-body); width: 100%; .ads__title { margin-bottom: var(--spacing-s); } .ads__subtitle { color: rgba(var(--color-text-base), 0.6) !important; font-size: var(--font-xsmall); .icon { color: var(--color-text) !important; width: 2.1rem; height: 2.1rem; margin-right: var(--spacing-s); float: left; } } a { display: block; span { display: unset; } } span::after { white-space: pre; /* or pre-wrap */ } @media (max-width: $breakpoint-small) { font-size: var(--font-xsmall); } } // Pre-roll ads .ads__video-nudge, .ads__video-notify { position: absolute; z-index: 3; } .ads__video-nudge { right: 0; left: 0; bottom: 0; background-color: var(--color-primary); color: var(--color-white); font-weight: bold; padding: var(--spacing-xs); } .ads__video-notify { display: flex; align-items: center; right: 0; top: 0; background-color: black; border-bottom-left-radius: var(--border-radius); color: var(--color-white); font-size: var(--font-small); padding: var(--spacing-xs); } .ads__video-link.button--secondary { font-size: var(--font-small); padding: var(--spacing-xs); height: 1.5rem; } .ads__video-close { margin-left: var(--spacing-s); border-radius: var(--border-radius); .icon { stroke: var(--color-white); &:hover { stroke: var(--color-black); background-color: var(--color-white); } } } .exp-ui__logo { display: none; } // **************************************************************************** // Outbrain // **************************************************************************** .OUTBRAIN { // border-radius: var(--border-radius) 0 0 0 !important; height: unset !important; .ob-widget .ob-unit.ob-rec-text { font-size: 12px !important; } &:not(.banner-ad__container) { border-radius: var(--border-radius) 0 var(--border-radius) var(--border-radius) !important; overflow: hidden; .ob-rec-image-container { border: unset !important; .ob-rec-image { padding: 0 !important; margin: 0 !important; } } .ob-sub-units { margin-left: 0 !important; } .AR_28.ob-widget { .ob-unit.ob-rec-text { font-size: var(--font-xxsmall) !important; } } } .AR_28 { position: absolute; bottom: 0 !important; background-color: var(--color-ads-background); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: var(--spacing-xxs); .ob-widget-footer { position: absolute !important; top: -24px !important; left: 0; height: 24px; background-color: var(--color-header-background) !important; border-radius: var(--border-radius) var(--border-radius) 0 0; padding: 0 !important; } } } .close-sticky { position: absolute; right: 0; bottom: 71px; width: 2rem; height: 26px; padding-top: 2px; background-color: var(--color-primary); color: var(--color-primary-contrast); border-radius: var(--border-radius) var(--border-radius) 0 0 !important; text-align: center; opacity: 0; animation: fadeIn 1s; animation-delay: 5s; animation-fill-mode: forwards; &:hover { cursor: pointer; } @media (max-width: 722px) { position: fixed !important; top: unset !important; bottom: 71px; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .closeButton { background-color: var(--color-primary) !important; color: var(--color-primary-contrast) !important; border-radius: var(--border-radius) var(--border-radius) 0 0 !important; top: -27px !important; width: 2rem !important; padding-top: 3px; // padding-bottom:4px !important; height: 27px !important; @media (max-width: 722px) { position: fixed !important; top: unset !important; bottom: 97px; } } .ob-widget-items-container { padding-left: var(--spacing-xs); padding-right: var(--spacing-xs); border-radius: var(--border-radius) 0 0 0; } // **************************************************************************** // Neko Patch // **************************************************************************** .ad__container { div { max-width: unset !important; } } #av-container #av-inner #gui::before { background: unset !important; #timeline #timeline-progress { background: var(--color-primary) !important; } } #av-container #av-inner #gui #timeline #timeline-progress { background: var(--color-primary) !important; } // **************************************************************************** // Banner // **************************************************************************** $BANNER_BORDER: 1px; .banner-ad { margin-top: var(--spacing-l); .banner-ad__driver { float: unset; max-width: 100%; width: 100%; height: 27px; border: unset; @media (max-width: $breakpoint-small) { height: 25px; .banner-ad__driver-label { padding-top: 5px !important; } .button__label { padding-top: 3px !important; } } .banner-ad__driver-label { background-color: var(--color-primary); border-radius: 0 0 0 var(--border-radius); margin-right: 2px; padding-top: 4px; font-weight: bold; } .banner-ad__driver-value { width: 100%; border: unset; background-image: linear-gradient(to right, var(--color-primary), rgba(var(--color-primary-dynamic), 0)); } .button__label { color: var(--color-primary) !important; background: var(--color-background); border-radius: 0 var(--border-radius) var(--border-radius) var(--border-radius); padding: 2px 4px 2px 4px; margin-top: 2px; &:hover { color: var(--color-text) !important; } } .banner-ad__driver-label, .banner-ad__driver-value { color: var(--color-primary-contrast) !important; } } .ob-widget-footer { background-image: linear-gradient(to right, rgba(var(--color-primary-dynamic), 0), var(--color-primary)) !important; width: 100%; height: 31px; margin-top: var(--spacing-s); border-radius: 0 var(--border-radius) 0 0 !important; .ob_what { margin: 2px; background-color: var(--color-background) !important; padding: 3px !important; padding-bottom: 0px !important; border-radius: var(--border-radius) var(--border-radius) 0 var(--border-radius); } } .banner-ad__container { padding: 0 !important; margin-left: 0 !important; margin-right: 0 !important; max-width: unset !important; background-color: unset !important; .ob-grid-header-text { display: none; } .ob-widget-header { margin: 0; margin-top: var(--spacing-s); } .ob-widget-items-container { padding-left: 0 !important; padding-right: 0 !important; .ob-dynamic-rec-container { .ob-rec-image-container { box-shadow: 0 0 0 1px rgba(var(--color-primary-dynamic), 0.3); border-radius: var(--border-radius); } .ob-rec-text { font-size: var(--font-small) !important; color: var(--color-text) !important; font-weight: 600 !important; margin-top: 0 !important; } .ob-rec-description { color: rgba(var(--color-text-base), 0.6) !important; } .ob-rec-source { color: rgba(var(--color-text-base), 0.6) !important; &:after { color: var(--color-primary); font-weight: bold; } &:hover { color: var(--color-text); } } .ob-sub-units { margin-top: var(--spacing-xs); } &:hover { .ob-rec-image-container { box-shadow: 0 0 0 1px rgba(var(--color-primary-dynamic), 1); } .ob-rec-text { color: var(--color-primary) !important; } } } @media (max-width: $breakpoint-large) { grid-template-columns: repeat(4, minmax(min-content, 1fr)) !important; .ob-dynamic-rec-container { &:nth-child(6n) { display: none; } &:nth-child(4n) { display: none; } } } @media (max-width: $breakpoint-medium) { grid-template-columns: repeat(3, minmax(min-content, 1fr)) !important; .ob-dynamic-rec-container { &:nth-child(6n) { display: none; } &:nth-child(4n) { display: none; } &:nth-child(2n) { display: none; } } } @media (max-width: $breakpoint-small) { grid-template-columns: repeat(1, minmax(min-content, 1fr)) !important; .ob-dynamic-rec-container { &:nth-child(6n) { display: none; } &:nth-child(5n) { display: none; } &:nth-child(4n) { display: none; } &:nth-child(3n) { display: none; } &:nth-child(2n) { display: none; } } } } } } .banner-ad__container { min-height: 250px; padding: var(--spacing-xxs) var(--spacing-m); @media (max-width: $breakpoint-small) { padding: var(--spacing-xxs) var(--spacing-xxs); } @media (min-width: $breakpoint-small) { margin: auto; width: 100%; } @media (min-width: $breakpoint-xlarge) { max-width: calc(#{$breakpoint-xlarge} * 3 / 4); } } .banner-ad__driver { display: flex; flex-direction: row; max-width: 50%; border-left: $BANNER_BORDER solid var(--color-border); border-bottom: $BANNER_BORDER solid var(--color-border); border-radius: 0 var(--border-radius) 0 var(--border-radius); float: right; font-size: var(--font-xsmall); @media (max-width: $breakpoint-small) { font-size: var(--font-xxsmall); } > * { padding: 0 var(--spacing-xxxs); } } .banner-ad__driver-label { color: var(--color-text-subtitle); } .banner-ad__driver-value { color: var(--color-text-subtitle); border-left: $BANNER_BORDER solid var(--color-border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @supports (-webkit-line-clamp: 3) { white-space: initial; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; } @media (max-width: $breakpoint-small) { line-height: 1.2; padding: calc(var(--spacing-xxxs) / 2) var(--spacing-xxxs); } }