shortnews.scss 3.1 KB

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