header.component.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .text {
  2. color: variables.$primary-color; // 如果直接 @use
  3. }
  4. header {
  5. background: $white;
  6. padding: 15px 0 10px;
  7. position: sticky;
  8. top: 0;
  9. z-index: 100;
  10. box-shadow: $card-shadow;
  11. }
  12. .header-container {
  13. display: flex;
  14. justify-content: space-between;
  15. align-items: center;
  16. padding: 0 15px;
  17. }
  18. .logo {
  19. display: flex;
  20. align-items: center;
  21. gap: 8px;
  22. font-size: 18px;
  23. font-weight: 700;
  24. color: $primary;
  25. fa-icon {
  26. font-size: 22px;
  27. }
  28. }
  29. .user-actions {
  30. display: flex;
  31. gap: 15px;
  32. }
  33. .icon-btn {
  34. width: 36px;
  35. height: 36px;
  36. border-radius: 50%;
  37. display: flex;
  38. align-items: center;
  39. justify-content: center;
  40. background: $light-gray;
  41. color: $gray;
  42. font-size: 16px;
  43. border: none;
  44. transition: $transition;
  45. cursor: pointer;
  46. &:hover {
  47. background: $primary;
  48. color: $white;
  49. }
  50. }
  51. .search-bar {
  52. background: $light-gray;
  53. border-radius: 25px;
  54. padding: 10px 20px;
  55. margin: 12px 15px 0;
  56. display: flex;
  57. align-items: center;
  58. fa-icon {
  59. color: $gray;
  60. margin-right: 10px;
  61. }
  62. input {
  63. border: none;
  64. background: transparent;
  65. outline: none;
  66. width: 100%;
  67. font-size: 14px;
  68. }
  69. }