Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #################################HTML#################################
- <div class="wrapper" style="z-index: 10001 !important;">
- <input id="close-banner" class="input-hidden" type="checkbox">
- <div class="inner">
- <label for="close-banner" class="wrapper-close"></label>
- <ya-units-grid cols="1" rows="1">
- <div class="container">
- <div class="image">
- <ya-unit-image ratio="1" variant="contain" />
- </div>
- <div class="info">
- <div class="heading_wrap">
- <ya-unit-if condition="!unit.isRmp">
- <div class="heading">
- <ya-unit-logo class="logo"
- src="https://avatars.mds.yandex.net/get-bunker/49769/ced013bc0c7b12a2ead15fdc9f4deeffde7128d5/orig" />
- <span class="domain">
- <ya-unit-domain />
- </span>
- </div>
- </ya-unit-if>
- <ya-unit-if condition="unit.isRmp">
- <div class="app">
- <ya-unit-app-icon class="logo" />
- <span class="domain">
- <ya-unit-app-name />
- </span>
- </div>
- </ya-unit-if>
- </div>
- <div class="bottom">
- <div class="text_col">
- <div class="title">
- <ya-unit-if condition="unit.title < 30 | unit.title = 30">
- <span class="title-short">
- <ya-unit-title />
- </span>
- </ya-unit-if>
- <ya-unit-if condition="unit.title > 30 & unit.title < 40">
- <span class="title-mid">
- <ya-unit-title />
- </span>
- </ya-unit-if>
- <ya-unit-if condition="unit.title > 40 | unit.title = 40">
- <span class="title-long">
- <ya-unit-title />
- </span>
- </ya-unit-if>
- </div>
- <div class="desc">
- <ya-unit-if condition="unit.desc > 40 | unit.desc = 40">
- <ya-clamp class="desc-long" lines="2">
- <ya-unit-desc />
- </ya-clamp>
- </ya-unit-if>
- <ya-unit-if condition="unit.desc < 40">
- <ya-clamp class="desc-short" lines="2">
- <ya-unit-desc />
- </ya-clamp>
- </ya-unit-if>
- </div>
- </div>
- <ya-unit-if condition="!unit.isRmp">
- <div class="sitelinks">
- <ya-unit-sitelinks limit="1" />
- </div>
- </ya-unit-if>
- <ya-unit-if condition="unit.isRmp | !unit.sitelinks">
- <div class="prices">
- <ya-unit-price />
- <ya-unit-discount />
- <ya-unit-old-price />
- </div>
- </ya-unit-if>
- </div>
- </div>
- </div>
- <ya-unit-category class="ya-unit-category_default" />
- <ya-unit-kebab />
- </ya-units-grid>
- </div>
- </div>
- #################################CSS#################################
- .inner {
- position: absolute;
- left: 0;
- bottom: 0;
- height: 150px;
- width: 100%;
- }
- .wrapper {
- position: fixed;
- left: 0px;
- bottom: 0px;
- right: 0px;
- height: 0;
- z-index: 999;
- }
- .container {
- position: relative;
- display: flex;
- flex-direction: row;
- flex-wrap: nowrap;
- width: 100%;
- height: 100%;
- }
- .image {
- max-height: 150px;
- position: relative;
- flex: 0 1 40%;
- background: #fff;
- }
- .info {
- flex: 0 1 60%;
- display: flex;
- flex-flow: column nowrap;
- justify-content: flex-start;
- height: 150px;
- font-family: "Roboto",sans-serif !important;
- background-color: #fff;
- background-image: linear-gradient(to right, #f5f5f5 0%, #ffffff 100%);
- padding: 4px 10px 20px 6px;
- box-sizing: border-box;
- }
- .bottom {
- display: flex;
- flex-flow: column nowrap;
- justify-content: space-between;
- height: 100%;
- }
- .video-source-component, .video-source-container {
- display: block;
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- height: 150px;
- background-color: #000;
- }
- .video-source-component:after {
- content: '';
- position: absolute;
- right: 0;
- z-index: 10000;
- width: 10%;
- height: 100%;
- background-image: linear-gradient(to left, #f5f5f5 0, rgba(5, 5, 5, 0) 10px, rgba(238, 238, 238, 0))
- }
- .image:after {
- content: '';
- position: absolute;
- top: 0;
- right: 0;
- min-width: 80px;
- max-width: 150px;
- height: 100%;
- width: 100%;
- background-image: linear-gradient(to left, #f5f5f5 0, rgba(5, 5, 5, 0) 10px, rgba(238, 238, 238, 0))
- }
- .title {
- position: relative;
- color: #3d3f43;
- font-weight: bold;
- margin-bottom: 8px;
- }
- .title-short {
- font-size: 18px;
- }
- .title-mid {
- font-size: 15px;
- }
- .title-long {
- font-size: 13px;
- }
- .desc {
- font-weight: 400;
- color: #3d3f43;
- }
- .desc-short {
- font-size: 12px;
- }
- .desc-long {
- font-size: 12px;
- }
- .app {
- display: flex;
- align-items: center;
- }
- .ya-unit-sitelink {
- display: inline-block;
- text-decoration: underline;
- }
- .sitelinks {
- font-size: 11px;
- color: #3d3f43;
- }
- .ya-unit-sitelink:hover, .ya-unit-sitelink:active {
- color: red;
- }
- .prices {
- position: relative;
- display: flex;
- font-size: 13px;
- }
- .prices span:not(:last-child) {
- margin-right: 6px;
- }
- .ya-unit-discount {
- margin-left: 10px;
- }
- .ya-unit-price {
- font-weight: 600;
- color: #3d3f43;
- }
- .heading_wrap {
- margin-bottom: 8px;
- }
- .heading, .app {
- background: #fff;
- display: inline-flex;
- align-items: center;
- padding: 2px 4px;
- margin-right: 4px;
- border-radius: 4px;
- box-sizing: border-box;
- }
- .domain, .logo {
- display: inline-block;
- }
- .logo {
- width: 12px;
- height: 12px;
- margin-right: 4px;
- border-radius: 4px;
- overflow: hidden;
- }
- .domain {
- overflow: hidden;
- text-overflow: ellipsis;
- font-size: 10px;
- line-height: 100%;
- font-weight: 500;
- color: #3d3f43;
- margin-left: 1px;
- }
- .input-hidden {
- height: 0;
- width: 0;
- position: absolute;
- opacity: 0;
- }
- .input-hidden:checked ~ .inner {
- display: none;
- }
- .wrapper-close {
- position: absolute;
- top: -28px;
- right: 0;
- width: 32px;
- height: 28px;
- background: url("data:image/svg+xml,%3Csvg width='10' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l8 8M1 9l8-8' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3C/path%3E%3C/svg%3E");
- background-repeat: no-repeat;
- background-position: center;
- z-index: 3;
- border-radius: 6px 6px 0 0;
- background-color: rgba(0,0,0,.2);
- cursor: pointer;
- }
- /*.ya-unit-kebab_button {
- right: 4px;
- bottom: auto;
- left: auto;
- top: 7px;
- background: #808080!important;
- }*/
- .ya-unit-category_default {
- bottom: 7px;
- left: 4px!important;
- }
- /*.ya-unit-kebab_icon svg circle {
- fill: #292929!important;
- }*/
- .ya-unit-kebab_bg {
- background:#dfdfdf!important;
- opacity: .1!important;
- }
- @media(max-width:380px) {
- .ya-unit-image {
- min-height: 150px !important;
- }
- .unit-image {
- height: 100%;
- }
- .unit-image > div {
- padding-bottom: 117%;
- }
- .title {
- margin-bottom: 4px;
- }
- .title-short {
- font-size: 15px;
- }
- .title-mid {
- font-size: 14px;
- }
- .title-long {
- font-size: 13px;
- }
- }
- @media(min-width:768px) {
- .image {
- flex: 0 1 30%;
- }
- .img-source-component {
- margin-top: -20%;
- }
- .info {
- flex: 0 1 70%;
- }
- .title {
- margin-bottom: 2px;
- }
- .title-short {
- font-size: 20px;
- }
- .title-mid {
- font-size: 18px;
- }
- .title-long {
- font-size: 16px;
- }
- .desc-short {
- font-size: 15px;
- }
- .desc-long {
- font-size: 14px;
- }
- .sitelinks {
- font-size: 14px;
- }
- .heading_wrap {
- margin-bottom: 3px;
- }
- .logo {
- width: 16px;
- height: 16px;
- }
- .domain {
- font-size: 13px;
- line-height: 100%;
- }
- .prices {
- font-size: 15px;
- }
- }
Add Comment
Please, Sign In to add comment