_header.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. .header {
  2. display:flex;
  3. &__logo {
  4. width: 20%;
  5. margin: 0 auto;
  6. display: flex;
  7. justify-content: center;
  8. align-items: center;
  9. }
  10. &__searchLine{
  11. width: 60%;
  12. display: flex;
  13. justify-content: center;
  14. align-items: center;
  15. }
  16. &__auth {
  17. width: 20%;
  18. display: flex;
  19. justify-content: center;
  20. align-items: center;
  21. &__container{
  22. display: flex;
  23. justify-content: center;
  24. align-items: center;
  25. .avatar{
  26. padding-right: 5px;
  27. }
  28. .text{
  29. color: $el-color;
  30. font-size: 18px;
  31. }
  32. }
  33. }
  34. }
  35. .searchInput::-webkit-input-placeholder, .button {
  36. font-family: 'roboto', sans-serif;
  37. transition: all 0.3s ease-in-out;
  38. }
  39. .searchInput{
  40. margin: 40px 25px;
  41. width: 75%;
  42. display: block;
  43. border: none;
  44. padding: 10px 0;
  45. border-bottom: solid 1px $color;
  46. transition: all 0.3s cubic-bezier(.64,.09,.08,1);
  47. background: linear-gradient(to bottom, rgba(255,255,255,0) 96%, $color 4%);
  48. background-position: -700px 0;
  49. background-size: 700px 100%;
  50. background-repeat: no-repeat;
  51. color: darken($color,1%);
  52. &:focus {
  53. box-shadow: none;
  54. outline: none;
  55. background-position: 0 0;
  56. &::-webkit-input-placeholder {
  57. text-indent: 700px; transition: text-indent 0.5s ease;
  58. }
  59. }
  60. }
  61. .searchBtn{
  62. border:none;
  63. outline: none;
  64. border: 0px;
  65. cursor: pointer;
  66. color: $primary;
  67. transition: .3s ease-out;
  68. &:hover,
  69. &:focus {
  70. transform: scale(1.125);
  71. .icon {
  72. transform: scale(1.25);
  73. }
  74. }
  75. // Display/alignment
  76. display: flex;
  77. justify-content: center;
  78. align-items: center;
  79. align-content: center;
  80. // Sizing
  81. width: 68px;
  82. height: 68px;
  83. border-radius: 34px;
  84. // Style
  85. background-color: $white;
  86. box-shadow:
  87. 0 1px 1px rgba($background-3, .6),
  88. 0 3px 3px rgba($background-3, .4),
  89. 0 8px 16px rgba($background-3, .3);
  90. &:hover,
  91. &:focus {
  92. box-shadow:
  93. 0 2px 2px rgba($background-3, .4),
  94. 0 4px 4px rgba($background-3, .3),
  95. 0 12px 32px rgba($background-3, .3); }
  96. }
  97. .fill-currentcolor {
  98. fill: currentcolor;
  99. }
  100. .fill-none {
  101. fill: none;
  102. }
  103. .icon {
  104. width: 24px;
  105. height: 24px;
  106. transition: .3s ease-out;
  107. @media (min-width: $breakpoint) {
  108. width: 32px;
  109. height: 32px;
  110. }
  111. }