-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic_style.css
More file actions
416 lines (351 loc) · 9.17 KB
/
basic_style.css
File metadata and controls
416 lines (351 loc) · 9.17 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
/* 기본 색상 변수 설정 */
@import url('https://fonts.googleapis.com/css2?family=Sour+Gummy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;700&display=swap');
:root {
--title-color: #89A8B2;
--title-text-color: #313a38;
--subtitle-color:#B3C8CF;
--subtitle-text-color:#566164;
--clicksubtitle-text-color:#7bbcd1;
--cursubtitle-text-color:#3389a5;
--order-color:#e1ded9;
--order-text-color:#65615d;
--clickorder-text-color:#d7c19a;
--curorder-text-color:#ca9b48;
}
body {
font-family: 'Exo 2', sans-serif;
margin: 0;
padding: 0;
background-color: var(--background-color); /* 배경색 */
color: var(--title-text-color); /* 본문 텍스트 색상 */
}
header {
background-color: var(--title-color); /* 헤더 배경색 */
color: var(--title-text-color);
height: 90px; /* 헤더 크기 */
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
header h1 {
font-family: 'Sour Gummy', Arial, sans-serif;
font-size: 36px;
margin: 0;
}
header a {
color: var(--title-text-color);
text-decoration: none;
margin-left: 15px;
}
nav {
background: var(--subtitle-color); /* 네이비 블루 */
display: flex;
justify-content: center;
padding: 10px 0;
}
nav a {
color: var(--subtitle-text-color);
text-decoration: none;
margin: 0 15px;
font-family: 'Exo 2', sans-serif;
font-size: 20px;
font-weight: normal;
padding: 1px 10px;
border-radius: 4px;
transition: background-color 0.3s, color 0.3s;
}
nav a:hover {
background-color: var(--subtitle-color); /* Secondary 색상으로 hover */
color: var(--clicksubtitle-text-color);
}
.content {
padding-left: 20px; /* 내부 여백 */
/* margin-left: 20px; */ /* 외부 여백 (필요시 사용) */
}
.nickname-block {
color: white;
font-weight: normal;
background-color: #3c5e59;
padding: 2px 10px; /* 좌우 여백을 15px로 늘림 */
border-radius: 5px;
position: absolute;
top: 15px;
right: 15px;
font-size: 14px;
white-space: nowrap;
display: inline-block;
line-height: 1.5; /* 텍스트 수직 정렬을 위해 line-height 추가 */
}
.nickname-button {
background: none;
border: none;
font-size: 14px;
cursor: pointer;
color: inherit; /* 기존 텍스트 색상을 유지 */
padding: 0;
margin: 0;
}
.nickname-button:hover {
text-decoration: underline; /* 클릭 가능하다는 느낌을 줌 */
}
.current-button {
font-weight: normal;
color:var(--cursubtitle-text-color); /* Secondary 색상 */
}
main {
padding: 20px;
background: #f7f7f7;;
margin: 20px auto;
max-width: 1000px;
font-family: 'Exo 2', sans-serif;
}
.tab-bar {
display: flex;
justify-content: center;
background-color: var(--order-color); /* 밝은 회색 */
padding: 2px;
}
.tab-bar a {
color: var(--order-text-color); /* 어두운 네이비 */
padding: 7px 15px;
text-decoration: none;
font-weight: normal;
margin: 0 5px;
border-radius: 5px;
background-color: var(--order-color); /* 배경색: 라이트 그레이 */
transition: background-color 0.3s, color 0.3s;
font-family: 'Exo 2', sans-serif;
}
.tab-bar a:hover {
background-color:var(--order-color); /* 밝은 회색 */
color: var(--clickorder-text-color);
}
.tab-bar .cur-button {
background-color: var(--order-color); /* Secondary 색상 */
color: var(--curorder-text-color);
font-weight: normal;
}
h2 {
text-align: center;
font-size: 28px;
font-weight: normal;
}
h4 {
text-align: left;
font-size: 20px;
font-weight: normal;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
table, th, td {
border: 1px solid #ddd;
}
th, td {
padding: 10px;
text-align: left;
font-size: 14px;
}
th {
background-color: #cdc7bd;
color: #333;
font-weight: normal;
}
.floating-button {
position: fixed;
bottom: 20px; /* 페이지 하단에서 20px 위에 위치 */
right: 20px; /* 페이지 우측에서 20px 왼쪽에 위치 */
width: 60px;
height: 60px;
background-color: var(--cursubtitle-text-color); /* 버튼 배경색 (파란색) */
color: white;
font-size: 36px;
text-align: center;
line-height: 60px;
border-radius: 50%;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
text-decoration: none;
transition: background-color 0.3s ease;
}
.floating-button:hover {
background-color: var(--clicksubtitle-text-color); /* 호버 시 버튼 색상 변경 */
}
.container {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
padding: 2rem;
max-width: 400px;
width: 100%;
text-align: center;
color: var(--title-text-color);
}
.container h2 {
margin-bottom: 1rem;
}
.input-group {
margin-bottom: 1rem;
}
.input-group label {
display: block;
margin-bottom: 0.5rem;
font-size: 14px;
}
.input-group span,
.input-group input {
width: 100%;
padding: 0.75rem;
font-size: 16px;
border: 1.5px solid var(--subtitle-color);
border-radius: 4px;
box-sizing: border-box;
outline: none;
transition: border-color 0.3s ease, box-shadow 0.3s ease;
display: block; /* 동일한 블록 수준 정렬 */
}
.input-group span {
background-color: #f9f9f9; /* span의 기본 배경색 */
color: #333;
}
.input-group input::placeholder {
color: var(--title-text-color); /* 연한 회색 */
font-size: 14px; /* 텍스트 크기 (필요 시 조정) */
}
.input-group input:focus {
border: 2px solid var(--title-color);
border-radius: 4px;
box-sizing: border-box;
}
.submit-btn {
width: 100%;
padding: 0.75rem;
font-size: 16px;
color: var(--subtitle-text-color);
background-color: var(--subtitle-color);
border: none;
border-radius: 4px;
cursor: pointer;
}
.submit-btn:hover {
background-color: var(--title-color);
}
.signup-link {
margin-top: 1rem;
font-size: 14px;
}
.signup-link a {
color: #333;
text-decoration: none;
}
.signup-link a:hover {
text-decoration: underline;
}
.error-message {
color: red;
font-size: 12px; /* 글자 크기를 작게 */
text-align: left; /* 오른쪽 정렬 */
margin-bottom: 10px; /* 간격 약간 조정 */
}
.list-container {
display: flex;
flex-wrap: wrap;
gap: 20px;
margin: 40px 20px 20px 20px; /* 위쪽 여백을 40px로 설정 */
background-color: #f4f4f4;
justify-content: center; /* 수평 중앙 정렬 */
align-items: center; /* 수직 중앙 정렬 */
padding-top: 20px; /* 내부 위쪽 여백 */
padding-bottom: 20px; /* 내부 위쪽 여백 */
border-radius: 10px; /* 둥근 모서리 */
}
.list-box {
padding: 15px;
width: calc(100% - 20px); /* 한 줄에 3개 박스 배치 */
box-sizing: border-box;
background-color: #ffffff;
transition: transform 0.2s;
border-radius: 10px; /* 둥근 모서리 */
}
.list-box:hover {
transform: scale(1.0);
border-color: var(--title-color);
}
.order-state {
font-weight: bold;
margin-bottom: 10px;
margin-left: 8px;
display: inline-block; /* 글자 크기에 맞게 박스 크기 조정 */
padding: 5px 10px; /* 내부 여백 */
border-radius: 3px; /* 둥근 모서리 */
font-size: 14px; /* 글자 크기 */
color: white; /* 글자 색 */
margin-bottom: 10px;
text-align: center; /* 텍스트 중앙 정렬 */
background-color: #d2e9e4;
}
.state-cooking {
color: var(--cursubtitle-text-color);
font-size: 15px;
}
.state-active {
color: var(--curorder-text-color);
}
.state-inactive {
color: var(--title-text-color);
}
.list-restaurant {
font-weight: bold;
margin-bottom: 6px;
font-size: 20px;
margin-left: 8px;
}
.order-foods {
margin-bottom: 8px;
margin-left: 8px;
}
.order-price {
margin-bottom: 8px;
margin-left: 8px;
}
.header-container {
display: flex;
flex-direction: column; /* 제목과 검색창을 세로로 배치 */
align-items: center; /* 제목은 가운데 정렬 */
margin-bottom: 20px;
}
.header-container h2 {
margin: 0;
font-size: 24px;
}
.search-bar-container {
align-self: flex-end; /* 검색창을 오른쪽에 정렬 */
margin-top: 10px; /* 제목 아래에 간격 추가 */
right: 10%;
}
.search-bar {
display: flex;
align-items: center;
gap: 10px;
}
.search-bar input[type="text"] {
padding: 8px 12px;
font-size: 14px;
border: 1px solid #ccc;
border-radius: 5px;
width: 250px; /* 검색창 크기 */
}
.content-image {
width: 100%; /* 너비를 40%로 줄임 */
max-width: 700px; /* 최대 너비를 500px로 제한 */
height: auto; /* 비율을 유지하며 크기 조절 */
display: block; /* 중앙 정렬을 위해 블록 요소로 설정 */
margin: 20px 0; /* 위아래로 간격 추가 및 가로 중앙 정렬 */
}