publicBanner.css 1.9 KB

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