searchLine.scss 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. $color: #FD7F71;
  2. $background: #F7FBFB;
  3. $background-2: #EAF5F5;
  4. $background-3: #BBD8D8;
  5. $primary: #FD7F71;
  6. $white: #fff;
  7. $breakpoint: 768px;
  8. .searchInput::-webkit-input-placeholder, .button {
  9. font-family: 'roboto', sans-serif;
  10. transition: all 0.3s ease-in-out;
  11. }
  12. .searchInput{
  13. margin: 40px 25px;
  14. width: 75%;
  15. display: block;
  16. border: none;
  17. padding: 10px 0;
  18. border-bottom: solid 1px $color;
  19. transition: all 0.3s cubic-bezier(.64,.09,.08,1);
  20. background: linear-gradient(to bottom, rgba(255,255,255,0) 96%, $color 4%);
  21. background-position: -700px 0;
  22. background-size: 700px 100%;
  23. background-repeat: no-repeat;
  24. color: darken($color,1%);
  25. &:focus {
  26. box-shadow: none;
  27. outline: none;
  28. background-position: 0 0;
  29. &::-webkit-input-placeholder {
  30. text-indent: 700px; transition: text-indent 0.5s ease;
  31. }
  32. }
  33. }
  34. .searchBtn{
  35. border:none;
  36. outline: none;
  37. border: 0px;
  38. cursor: pointer;
  39. color: $primary;
  40. transition: .3s ease-out;
  41. &:hover,
  42. &:focus {
  43. transform: scale(1.125);
  44. .icon {
  45. transform: scale(1.25); } }
  46. // Display/alignment
  47. display: flex;
  48. justify-content: center;
  49. align-items: center;
  50. align-content: center;
  51. // Sizing
  52. width: 68px;
  53. height: 68px;
  54. border-radius: 34px;
  55. // Style
  56. background-color: $white;
  57. box-shadow:
  58. 0 1px 1px rgba($background-3, .6),
  59. 0 3px 3px rgba($background-3, .4),
  60. 0 8px 16px rgba($background-3, .3);
  61. &:hover,
  62. &:focus {
  63. box-shadow:
  64. 0 2px 2px rgba($background-3, .4),
  65. 0 4px 4px rgba($background-3, .3),
  66. 0 12px 32px rgba($background-3, .3); }
  67. }
  68. .fill-currentcolor {
  69. fill: currentcolor; }
  70. .fill-none {
  71. fill: none; }
  72. .icon {
  73. width: 24px;
  74. height: 24px;
  75. transition: .3s ease-out;
  76. @media (min-width: $breakpoint) {
  77. width: 32px;
  78. height: 32px; } }