-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnav.css
More file actions
142 lines (118 loc) · 1.92 KB
/
nav.css
File metadata and controls
142 lines (118 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
/* 기본 스타일 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Pretendard', sans-serif;
}
body {
padding: 20px;
background-color: #f9f9f9;
}
.nav-container {
max-width: 1000px;
margin: 0 auto;
width: 100%;
}
/* --- 네비게이션 바 본체 --- */
.navbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 20px;
background-color: #fff;
border: 2px solid #222;
border-radius: 50px;
box-shadow: 4px 4px 0px #222;
flex-wrap: nowrap;
gap: 15px;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}
.logo-img {
width: 35px;
height: 35px;
border-radius: 10px;
background-color: #ff7043;
}
.logo-text {
font-size: 22px;
font-weight: 800;
color: #333;
white-space: nowrap;
}
.nav-links {
display: flex;
list-style: none;
gap: 20px;
flex-shrink: 1;
overflow: hidden;
white-space: nowrap;
}
.nav-links li {
flex-shrink: 1;
}
.nav-links a {
text-decoration: none;
color: #666;
font-weight: 600;
font-size: 15px;
transition: color 0.2s;
}
.nav-links a.highlight {
color: #ff7043;
}
.lang-selector {
display: flex;
align-items: center;
gap: 5px;
border: 1px solid #ccc;
padding: 4px 10px;
border-radius: 30px;
flex-shrink: 0;
white-space: nowrap;
}
.lang-label {
font-size: 11px;
color: #aaa;
}
.toggle-box {
display: flex;
gap: 3px;
}
.lang-btn {
border: none;
background: none;
padding: 4px 8px;
border-radius: 15px;
font-size: 12px;
font-weight: bold;
cursor: pointer;
color: #aaa;
}
.lang-btn.active {
background-color: #ff7043;
color: white;
}
@media screen and (max-width: 768px) {
.nav-links {
gap: 10px;
}
}
@media screen and (max-width: 650px) {
.nav-links {
display: none;
}
.navbar {
justify-content: space-between;
}
}
@media screen and (max-width: 400px) {
.lang-label {
display: none;
}
}