main-banner.less 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. // main banner
  2. @import "elements.less";
  3. .main-banner {
  4. margin: 0 auto 40px auto;
  5. width: 1180px;
  6. height: 400px;
  7. position: relative;
  8. }
  9. .main-banner > ul {
  10. list-style: none;
  11. }
  12. .main-banner > ul li {
  13. display: block;
  14. }
  15. .main-banner > ul li > a,
  16. .main-banner > ul li > a > img {
  17. display: block;
  18. overflow: hidden;
  19. }
  20. .main-banner > a {
  21. display: block;
  22. position: absolute;
  23. width: 45px;
  24. height: 45px;
  25. text-align: center;
  26. color: #293437;
  27. }
  28. .main-banner > .left-arrow {
  29. left: -45px;
  30. top: 178px;
  31. }
  32. .main-banner > .right-arrow {
  33. right: -45px;
  34. top: 178px;
  35. }
  36. .main-banner > a > i {
  37. font-size: 24px;
  38. .opacity(.5);
  39. position: relative;
  40. top: 10px;
  41. }
  42. .main-banner:hover > a > i {
  43. .opacity(1);
  44. }
  45. .main-banner > a:hover {
  46. background: #293437;
  47. color: #ffffff;
  48. }
  49. .banner-steps {
  50. position: absolute;
  51. bottom: -25px;
  52. left: 0;
  53. right: 0;
  54. margin: 0 auto;
  55. text-align: center;
  56. }
  57. .banner-steps > a {
  58. display: inline-block;
  59. width: 10px;
  60. height: 10px;
  61. .rounded(5px);
  62. background: #b7c0c7;
  63. margin: 0 3px;
  64. .opacity(.6);
  65. }
  66. .banner-steps > a:hover {
  67. .opacity(1);
  68. }
  69. .banner-steps > a.active {
  70. background: #293437;
  71. .opacity(1);
  72. }
  73. // 1180w
  74. @media screen and (max-width: 1200px) {
  75. .main-banner {
  76. width: 960px;
  77. }
  78. .main-banner > ul li > a > img {
  79. width: auto;
  80. height: 100%;
  81. }
  82. }
  83. //960w
  84. @media screen and (max-width: 980px) {
  85. .main-banner {
  86. display: none;
  87. }
  88. }