暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_back-drop-search.scss 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. body.open {
  2. overflow-y: scroll;
  3. }
  4. .overlay {
  5. bottom: 0;
  6. height: 100vh;
  7. left: 0;
  8. margin: 0;
  9. opacity: 0;
  10. overflow: hidden;
  11. position: fixed;
  12. right: 0;
  13. top: 0;
  14. -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 1, 1) 0s;
  15. -o-transition: all 0.3s cubic-bezier(0.4, 0, 1, 1) 0s;
  16. transition: all 0.3s cubic-bezier(0.4, 0, 1, 1) 0s;
  17. visibility: hidden;
  18. width: 100%;
  19. z-index: 9999999;
  20. background: rgba(22, 22, 27, 0.97);
  21. cursor: pointer;
  22. }
  23. .open .overlay {
  24. opacity: 1;
  25. visibility: visible;
  26. }
  27. .scale {
  28. cursor: pointer;
  29. height: 100%;
  30. position: absolute;
  31. width: 100%;
  32. }
  33. .overlay form.search-box {
  34. bottom: 0;
  35. height: 60px;
  36. left: 0;
  37. margin: auto;
  38. position: absolute;
  39. right: 0;
  40. top: 0;
  41. z-index: 10;
  42. max-width: 80%;
  43. -webkit-transition: all 0.3s ease 0s;
  44. -o-transition: all 0.3s ease 0s;
  45. transition: all 0.3s ease 0s;
  46. opacity: 0;
  47. transform: scale(1.1);
  48. }
  49. .open .overlay form.search-box {
  50. opacity: 1;
  51. -webkit-transform: scale(1);
  52. -ms-transform: scale(1);
  53. transform: scale(1);
  54. }
  55. .overlay .search-box input {
  56. border: 0 none;
  57. line-height: 60px;
  58. width: 100%;
  59. font-size: 14px;
  60. background: transparent;
  61. border: 1px solid $border-color;
  62. padding: 10px 50px 10px 10px;
  63. height: 60px;
  64. color: $color-white;
  65. text-transform: capitalize;
  66. &::placeholder {
  67. color: $color-white !important;
  68. }
  69. }
  70. .overlay .search-box button {
  71. background-color: transparent;
  72. border: 0 none;
  73. color: #ffffff;
  74. font-size: 25px;
  75. position: absolute;
  76. right: 20px;
  77. top: 10px;
  78. padding: 0;
  79. }
  80. button.close {
  81. position: absolute;
  82. font-size: 30px;
  83. color: #fff;
  84. top: 40px;
  85. right: 40px;
  86. z-index: 33;
  87. opacity: 1;
  88. &:hover {
  89. color: $color-white !important;
  90. opacity: 1 !important;
  91. }
  92. }