_shortnews.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. .shortnews {
  2. &__list {
  3. display: flex;
  4. flex-direction: row;
  5. flex-wrap: wrap;
  6. }
  7. &__item {
  8. font-family: $fontcuprum;
  9. background-color: #ebebeb;
  10. //min-height: 320px;
  11. height: 320px;
  12. display: -webkit-flex;
  13. display: -ms-flex;
  14. display: flex;
  15. flex-direction: column;
  16. border-radius: 10px 0 0 0 / 10px 0 0 0;
  17. margin-bottom: 10px;
  18. &--half-size {
  19. width: calc(50% - 10px);
  20. margin-left: 10px;
  21. }
  22. &--one-third {
  23. width: calc(33% - 10px);
  24. margin-left: 10px;
  25. }
  26. &:hover {
  27. background-color: #ececec;
  28. text-decoration: none;
  29. .shortnews__textpos {
  30. background: none;
  31. }
  32. .shortnews__title {
  33. background: rgba(255, 255, 255, .5);
  34. color: #3b434d;
  35. }
  36. }
  37. }
  38. &:hover {
  39. background-color: #ececec;
  40. }
  41. &__link {
  42. text-decoration: none;
  43. max-height: calc(100% - 30px);
  44. &:hover {
  45. text-decoration: none;
  46. }
  47. }
  48. &__imgcase {
  49. position: relative;
  50. }
  51. &__textpos {
  52. min-height: 100px;
  53. background: -moz-linear-gradient(top, rgba(59, 67, 77, 0) 0%, rgba(59, 67, 77, 0.25) 10%, rgba(59, 67, 77, 1) 100%);
  54. background: -webkit-linear-gradient(top, rgba(59, 67, 77, 0) 0%, rgba(59, 67, 77, 0.25) 10%, rgba(59, 67, 77, 1) 100%);
  55. background: linear-gradient(to bottom, rgba(59, 67, 77, 0) 0%, rgba(59, 67, 77, 0.25) 10%, rgba(59, 67, 77, 1) 100%);
  56. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b434d', endColorstr='#3b434d', GradientType=0);
  57. position: absolute;
  58. bottom: 0;
  59. left: 0;
  60. right: 0;
  61. display: -webkit-flex;
  62. display: -ms-flex;
  63. display: flex;
  64. flex-direction: column;
  65. justify-content: flex-end;
  66. align-items: flex-end;
  67. align-content: flex-end;
  68. }
  69. &:hover &__textpos {
  70. background: none;
  71. }
  72. &__title {
  73. font-family: $fontcuprum;
  74. color: #ffffff;
  75. font-size: 17px;
  76. padding: 8px 10px;
  77. width: 100%;
  78. box-sizing: border-box;
  79. }
  80. &:hover &__title {
  81. background: rgba(255, 255, 255, .5);
  82. color: #3b434d;
  83. }
  84. &__img {
  85. border-radius: 10px 0 0 0 / 10px 0 0 0;
  86. display: block;
  87. max-width: 100%;
  88. }
  89. &__description {
  90. border-bottom: 1px solid #d4d4d4;
  91. height: 150px;
  92. box-sizing: border-box;
  93. padding: 6px 10px 10px;
  94. color: #1a1916;
  95. font-size: 15px;
  96. line-height: 17px;
  97. display: block;
  98. overflow: hidden;
  99. text-overflow: ellipsis;
  100. margin: 0;
  101. }
  102. &__details {
  103. display: -webkit-flex;
  104. display: -ms-flex;
  105. display: flex;
  106. justify-content: space-between;
  107. line-height: 30px;
  108. }
  109. &__category {
  110. line-height: 30px;
  111. text-align: left;
  112. color: #eb914e;
  113. text-decoration: none;
  114. font-size: 13px;
  115. font-family: $fontopensans;
  116. text-overflow: ellipsis;
  117. overflow: hidden;
  118. display: block;
  119. height: 30px;
  120. white-space: nowrap;
  121. word-wrap: normal;
  122. background: url(../img/icon_category@2x.png) 0 0 / 30px 60px no-repeat;
  123. padding: 0 10px 0 23px;
  124. margin: 0;
  125. &:hover {
  126. color: #e65e26;
  127. background: url(../img/icon_category@2x.png) 0 -30px / 30px 60px no-repeat;
  128. }
  129. }
  130. &__no-category {
  131. display: block;
  132. align-self: flex-start;
  133. margin: 0;
  134. }
  135. &__date {
  136. padding-right: 10px;
  137. color: #929292;
  138. font-size: 13px;
  139. align-self: flex-end;
  140. display: block;
  141. margin: 0;
  142. }
  143. &--big {
  144. @media screen and (max-width: 1000px) {
  145. max-width: 470px;
  146. }
  147. }
  148. &--big &__title {
  149. font-size: 25px;
  150. }
  151. }