publicBanner.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. .banner {
  2. width: 100%;
  3. position: relative;
  4. display: flex;
  5. overflow: hidden;
  6. height: 450px;
  7. justify-content: center;
  8. align-items: center;
  9. margin-bottom: 50px;
  10. }
  11. .banner *{
  12. transition: all .4s;
  13. }
  14. .banner .imgBox{
  15. width: 100%;
  16. height: 100%;
  17. position: absolute;
  18. left: 0;
  19. top: 0;
  20. }
  21. .banner:hover .imgBox > img{
  22. left: -20px;
  23. top: -20px;
  24. max-width: calc(100% + 40px);
  25. width: calc(100% + 40px);
  26. height: calc(100% + 40px);
  27. }
  28. .banner-con{
  29. position: relative;
  30. padding: 15px 30px;
  31. display: flex;
  32. justify-content: center;
  33. flex-direction: column;
  34. margin-top: 100px;
  35. }
  36. .bg-absolute{
  37. position: absolute;
  38. filter: blur(5px);
  39. background-image: linear-gradient(rgba(0,0,0,0) 0,rgba(0,0,0,0.5) 60% );
  40. color: #b9b7b7;
  41. }
  42. .banner-con > span{
  43. width: 420px;
  44. font-size: 2.5em;
  45. color: white;
  46. font-weight: bold;
  47. cursor: default;
  48. display: flex;
  49. justify-content: center;
  50. }
  51. .banner:hover .banner-con > span{
  52. font-size: 2.6em;
  53. }
  54. .banner-con > .subTitle{
  55. font-size: 2em;
  56. }
  57. .banner:hover .banner-con > .subTitle{
  58. font-size: 1.9em;
  59. }
  60. .banner-con .search-box{
  61. width: 100%;
  62. display: flex;
  63. justify-content: center;
  64. }
  65. .banner-con .search{
  66. width: 340px;
  67. height: 40px;
  68. margin-top: 10px;
  69. /*background-color: #fff;*/
  70. box-shadow: 1px 1px 6px 4px #22b3e5;
  71. border-radius: 40px;
  72. cursor: pointer;
  73. overflow: hidden;
  74. position: relative;
  75. }
  76. .banner:hover .banner-con .search{
  77. width: 400px;
  78. border: 1px solid #ffffff;
  79. }
  80. .banner-con .search > *{
  81. display: block;
  82. }
  83. .banner-con .search-box .search input{
  84. width: 100%;
  85. height: 100%;
  86. border-radius: 40px;
  87. outline: #22b3e5;
  88. BACKGROUND-COLOR: transparent;
  89. padding-left: 15px;
  90. color: #b4b4b4;
  91. }
  92. .banner-con .search-box .search button{
  93. display: block;
  94. width: 40px;
  95. height: 40px;
  96. position: absolute;
  97. right: 0;
  98. top: 0;
  99. color: white;
  100. font-size: 1.4em;
  101. }
  102. .banner-con .search-box .search button:hover{
  103. font-size: 1.6em;
  104. color: orangered;
  105. }