_search.scss 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. .search {
  2. display: flex;
  3. padding-left: 16px;
  4. padding-right: 16px;
  5. padding-top: 12px;
  6. padding-bottom: 12px;
  7. height: 48px;
  8. background: #ffffff;
  9. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.13);
  10. border-radius: 8px;
  11. @include for-desktop-up {
  12. position: relative;
  13. padding-right: 286px;
  14. max-width: 970px;
  15. margin-left: auto;
  16. margin-right: auto;
  17. }
  18. &__button {
  19. flex-shrink: 0;
  20. margin-right: 8px;
  21. background-color: transparent;
  22. border: 0 none;
  23. height: auto;
  24. width: auto;
  25. @include for-desktop-up {
  26. font-size: 18px;
  27. position: absolute;
  28. right: 0;
  29. top: 0;
  30. height: 48px;
  31. width: 270px;
  32. order: 1;
  33. margin-right: 0;
  34. background-color: $primary-blue;
  35. border-color: $primary-blue;
  36. border-radius: 0;
  37. border-top-right-radius: 8px;
  38. border-bottom-right-radius: 8px;
  39. }
  40. }
  41. &__button-text {
  42. display: none;
  43. @include for-desktop-up {
  44. display: inline;
  45. color: #ffffff;
  46. }
  47. }
  48. &__button-icon {
  49. width: 24px;
  50. height: 24px;
  51. color: #a8a2a2;
  52. @include for-desktop-up {
  53. color: #ffffff;
  54. margin-right: 16px;
  55. }
  56. }
  57. &__input {
  58. font-size: 16px;
  59. border: 0 none;
  60. padding: 0;
  61. color: #999999;
  62. width: 100%;
  63. &::placeholder {
  64. color: #999999;
  65. }
  66. @include for-desktop-up {
  67. order: 0;
  68. }
  69. }
  70. }