mainslider.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. .mainslider {
  2. background-color: #ebebeb;
  3. font-family: $fontcuprum;
  4. border-radius: 10px 0 0 0 / 10px 0 0 0;
  5. position: relative;
  6. z-index: 90;
  7. &:hover &__textpos {
  8. background: none;
  9. }
  10. &:hover &__title {
  11. background: rgba(255, 255, 255, .5);
  12. color: #3b434d;
  13. }
  14. &__item {
  15. position: relative;
  16. min-height: 320px;
  17. }
  18. &__img {
  19. border-radius: 10px 0 0 0 / 10px 0 0 0;
  20. }
  21. &__textpos {
  22. min-height: 100px;
  23. background: -moz-linear-gradient(top, rgba(59, 67, 77, 0) 0%, rgba(59, 67, 77, 0) 10%, rgba(59, 67, 77, 1) 100%);
  24. background: -webkit-linear-gradient(top, rgba(59, 67, 77, 0) 0%, rgba(59, 67, 77, 0) 10%, rgba(59, 67, 77, 1) 100%);
  25. background: linear-gradient(to bottom, rgba(59, 67, 77, 0) 0%, rgba(59, 67, 77, 0) 10%, rgba(59, 67, 77, 1) 100%);
  26. filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b434d', endColorstr='#3b434d', GradientType=0);
  27. position: absolute;
  28. bottom: 30px;
  29. left: 0;
  30. right: 0;
  31. display: -webkit-flex;
  32. display: -ms-flex;
  33. display: flex;
  34. flex-direction: column;
  35. justify-content: flex-end;
  36. align-items: flex-end;
  37. align-content: flex-end;
  38. }
  39. &__title {
  40. font-size: 25px;
  41. color: #ffffff;
  42. padding: 6px 10px;
  43. }
  44. &__category {
  45. position: absolute;
  46. z-index: 100;
  47. bottom: 0;
  48. line-height: 30px;
  49. text-align: left;
  50. padding: 0 10px;
  51. color: #eb914e;
  52. text-decoration: none;
  53. font-size: 13px;
  54. font-family: $fontopensans;
  55. &:hover {
  56. color: #e65e26;
  57. }
  58. &::before {
  59. content: "⚫";
  60. color: #eb914e;
  61. padding-right: 3px;
  62. }
  63. &:hover::before {
  64. color: #e65e26;
  65. }
  66. }
  67. }