LiveNavbar.module.scss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // 상단 네비게이션 바
  2. .navbar {
  3. display: flex;
  4. align-items: center;
  5. justify-content: space-between;
  6. padding: 12px 16px;
  7. background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  8. color: white;
  9. max-height: 40px;
  10. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  11. .navLeft {
  12. display: flex;
  13. align-items: center;
  14. flex: 1;
  15. .hamburgerBtn {
  16. background: none;
  17. border: none;
  18. color: white;
  19. cursor: pointer;
  20. padding: 8px;
  21. border-radius: 4px;
  22. transition: background-color 0.2s;
  23. &:hover {
  24. background-color: rgba(255, 255, 255, 0.1);
  25. }
  26. }
  27. }
  28. .navCenter {
  29. display: flex;
  30. justify-content: center;
  31. flex: 1;
  32. .logo {
  33. display: flex;
  34. align-items: center;
  35. gap: 8px;
  36. font-weight: bold;
  37. font-size: 1.1rem;
  38. span:first-child {
  39. font-size: 1.2rem;
  40. }
  41. }
  42. }
  43. .navRight {
  44. display: flex;
  45. align-items: center;
  46. flex: 1;
  47. justify-content: flex-end;
  48. .navIcon {
  49. background: none;
  50. border: none;
  51. color: white;
  52. cursor: pointer;
  53. padding: 8px;
  54. border-radius: 4px;
  55. transition: background-color 0.2s;
  56. &:hover {
  57. background-color: rgba(255, 255, 255, 0.1);
  58. }
  59. }
  60. }
  61. }
  62. // 모바일 최적화
  63. @media (max-width: 480px) {
  64. .navbar {
  65. padding: 10px 12px;
  66. max-height: 40px;
  67. .logo {
  68. font-size: 1rem;
  69. }
  70. .navIcon {
  71. padding: 6px;
  72. }
  73. }
  74. }
  75. // 태블릿 최적화
  76. @media (min-width: 481px) and (max-width: 768px) {
  77. .navbar {
  78. padding: 14px 20px;
  79. }
  80. }