Luxup

RSYA native blue button desktop / 3 ads

Jun 5th, 2023 (edited)
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1. HTML
  2. ----
  3. <ya-units-grid cols="${grid_columns}" rows="${grid_rows}"><div class="container"><ya-unit-kebab class="ya-unit-kebab_contrast" /><ya-unit-category class="ya-unit-category_default" /><div class="body"><div class="image"><ya-unit-image ratio="1.32" /></div><div class="clamp"><ya-unit-title class="title" /><div class="price"><ya-unit-price /><ya-unit-discount /></div>
  4. <ya-clamp lines="2" class="desc"><ya-unit-desc/></ya-clamp></div><div class="button"><ya-unit-domain /></div></div></div></ya-units-grid>
  5.  
  6.  
  7. СSS
  8. ----
  9. .ya-recommendation-widget{
  10. font-family: Open Sans,Arial,sans-serif;
  11. background: #FFFF;
  12. font-style:normal
  13. }
  14.  
  15. .close .ya-ad-close{
  16. background-color:transparent;
  17. opacity:1;
  18. width:10px;
  19. height:10px;
  20. padding:4px;
  21. top:0;
  22. right:-4px
  23. }
  24. .container{
  25. width:100%
  26. }
  27. .grid-item {
  28. width: 100%;
  29. }
  30. .image{
  31. position:absolute;
  32. left:0;
  33. top:0;
  34. width:95px;
  35. height:95px;
  36. border-radius:8px;
  37. overflow:hidden
  38. }
  39. .body{
  40. position:relative;
  41. display:flex;
  42. flex-direction:column;
  43. min-height:100px;
  44. padding-left:100px;
  45. padding-top:2px;
  46. box-sizing:border-box
  47. }
  48. .clamp {
  49. overflow: hidden;
  50. text-overflow: ellipsis;
  51. -webkit-box-orient: vertical;
  52. display: -webkit-box;
  53. -webkit-line-clamp: 5;
  54. margin-bottom: 8px;
  55. }
  56. .ya-unit-category_default{
  57. font-size: 7px
  58. }
  59. .title{
  60. color: #000;
  61. font-weight:250px;
  62. font-size:15px;
  63. line-height:15px;
  64. margin-bottom:10px;
  65. padding-right:15px;
  66. line-height:15px;
  67. word-break:break-word;
  68. }
  69. .image::after{
  70. content:'';
  71. position:absolute;
  72. top:0;
  73. left:0;
  74. width:100%;
  75. height:100%;
  76. background:radial-gradient(ellipse 80% 30% at 10px 10px,rgba(0,0,0,.1) 0,transparent 100%),radial-gradient(circle,transparent,rgba(0,0,0,.01),rgba(0,0,0,.05))
  77. }
  78. .desc{
  79. color: #9A9A9A;
  80. font-weight:400;
  81. font-size: 11px;
  82. word-break:break-word;
  83. }
  84. .button{
  85. box-sizing: border-box;
  86. display:inline-block;
  87. padding:3px 8px;
  88. background: #D6E5FF;
  89. border-radius:4px;
  90. color: #1964E7;
  91. font-family:"Helvetica Neue","YS Text",sans-serif;
  92. font-style:normal;
  93. font-size: 11px;
  94. font-weight:500;
  95. line-height:15px;
  96. word-break:break-word;
  97. align-self:flex-start;
  98. max-width: 200px;
  99. white-space: nowrap;
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. background-image: linear-gradient(270deg, rgba(100, 181, 239, 0) 48.44%, #64b5ef 75.52%, rgba(100, 181, 239, 0) 100%);
  103. background-repeat: no-repeat;
  104. animation: bg-move linear 5s infinite;
  105. }
  106.  
  107. @-webkit-keyframes bg-move {
  108. 0% { background-position: -500px 0; }
  109. 100% { background-position: 1000px 0; }
  110. }
  111. @keyframes bg-move {
  112. 0% { background-position: -500px 0; }
  113. 100% { background-position: 1000px 0; }
  114. }
  115. .unit-warning{
  116. height:24px
  117. }
  118. .unit-warning:empty{
  119. display:none
  120. }
  121. .unit-warning>div{
  122. background:0 0
  123. }
  124. .unit-warning .yrw-warning-text{
  125. color:var(--color-direct-text-secondary);
  126. text-shadow:none
  127. }
  128. .unit-warning text{
  129. fill:var(--color-direct-text-secondary);
  130. }
  131. .price {
  132. font-family: "Yandex Sans Text", Arial, Helvetica, sans-serif;
  133. font-size: 11px;
  134. line-height: 11px;
  135. color: #000;
  136. margin-right: 8px;
  137. margin-bottom: 4px;
  138. margin-top: -4px;
  139. font-weight: 500;
  140. }
  141.  
  142. .ya-unit-price {
  143. display: inline-block;
  144. margin: 0 5px 0 0;
  145. }
Advertisement
Add Comment
Please, Sign In to add comment