trailernews.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. .trailernews {
  2. display: -webkit-flex;
  3. display: -ms-flex;
  4. display: flex;
  5. flex-direction: row;
  6. margin-bottom: 20px;
  7. @media screen and (max-width: 1220px) {
  8. width: 100%;
  9. }
  10. &__imgcase {
  11. margin-right: 15px;
  12. }
  13. &__imgc {
  14. width: 110px;
  15. max-width: 110px;
  16. height: 72px;
  17. max-height: 72px;
  18. }
  19. &__imgcase:hover + &__textcase &__title {
  20. color: #5597d1;
  21. }
  22. &__textcase {
  23. border-top: 1px solid #ececec;
  24. display: -webkit-flex;
  25. display: -ms-flex;
  26. display: flex;
  27. flex-direction: column;
  28. width: calc(100% - 110px - 15px);
  29. justify-content: space-between;
  30. }
  31. &__title {
  32. font-family: $fontcuprum;
  33. font-size: 17px;
  34. display: block;
  35. text-decoration: none;
  36. color: #3b434d;
  37. margin-top: 5px;
  38. margin-bottom: 10px;
  39. &:hover {
  40. color: #5597d1;
  41. }
  42. }
  43. &__details {
  44. display: -webkit-flex;
  45. display: -ms-flex;
  46. display: flex;
  47. flex-direction: row;
  48. font-size: 13px;
  49. width: 100%;
  50. justify-content: space-between;
  51. height: 14px;
  52. line-height: 14px;
  53. }
  54. &__left {
  55. display: -webkit-flex;
  56. display: -ms-flex;
  57. display: flex;
  58. flex-direction: row;
  59. height: 14px;
  60. line-height: 14px;
  61. }
  62. &__date {
  63. margin-right: 20px;
  64. color: #929292;
  65. }
  66. &__category {
  67. color: #e65e26;
  68. text-decoration: none;
  69. margin-right: 20px;
  70. height: 14px;
  71. line-height: 14px;
  72. background: url("../img/icon_category@2x.png") 0 -7px / 30px 60px no-repeat;
  73. padding-left: 23px;
  74. &:hover {
  75. color: #eb914e;
  76. background: url("../img/icon_category@2x.png") 0 -37px / 30px 60px no-repeat;
  77. }
  78. }
  79. &__region {
  80. color: #e65e26;
  81. text-decoration: none;
  82. margin-right: 20px;
  83. background: url("../img/icon_regionmark.png") 0 0 / 10px 28px no-repeat;
  84. padding-left: 15px;
  85. height: 14px;
  86. line-height: 14px;
  87. position: relative;
  88. z-index: 1;
  89. &:hover {
  90. color: #eb914e;
  91. background-position: 0 -14px;
  92. }
  93. }
  94. &__right {
  95. display: -webkit-flex;
  96. display: -ms-flex;
  97. display: flex;
  98. flex-direction: row;
  99. color: #929292;
  100. height: 14px;
  101. line-height: 14px;
  102. }
  103. &__views {
  104. margin-right: 20px;
  105. background: url("../img/icon_views@2x.png") left center / auto 12px no-repeat;
  106. padding-left: 23px;
  107. height: 14px;
  108. line-height: 14px;
  109. }
  110. &__comments {
  111. background: url("../img/icon_comments@2x.png") left center / auto 15px no-repeat;
  112. padding-left: 18px;
  113. height: 14px;
  114. line-height: 14px;
  115. }
  116. }