-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcook.css
More file actions
90 lines (80 loc) · 2.43 KB
/
cook.css
File metadata and controls
90 lines (80 loc) · 2.43 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
/* 기본 스타일 설정 */
body {
background-color: #E5E2DD;
margin: 0; /* 기본 여백 제거 */
font-family: Arial, sans-serif; /* 기본 폰트 설정 */
}
/* 전체 컨테이너 스타일 */
.container {
display: flex;
flex-direction: column; /* 세로 방향으로 배치 */
justify-content: center; /* 수직 중앙 정렬 */
align-items: center; /* 수평 중앙 정렬 */
height: 100vh; /* 전체 화면 높이 */
}
/* 이미지 컨테이너 스타일 */
.image-container {
display: flex;
justify-content: center; /* 수평 중앙 정렬 */
align-items: center; /* 수직 중앙 정렬 */
margin-bottom: 20px; /* 이미지와 검색창 사이의 하단 여백 설정 */
}
/* 이미지 스타일 */
.image-container img {
max-width: 100%; /* 최대 너비를 100%로 설정 */
height: auto; /* 비율을 유지한 채 높이 자동 조정 */
}
/* 검색창 스타일 */
.search-box {
height: 50px;
width: 80%; /* 반응형을 위해 너비를 %로 설정 */
max-width: 500px; /* 최대 너비 설정 */
background: rgba(128, 128, 128, 0.7); /* 투명한 회색 배경 */
border-radius: 40px;
padding: 0 20px; /* 좌우 패딩 설정 */
border: 1px solid #f9deec;
display: flex; /* Flexbox 적용 */
align-items: center; /* 수직 중앙 정렬 */
}
/* 검색창 텍스트 스타일 */
.search-txt {
border: none;
background: none;
outline: none;
color: white;
font-size: 16px;
line-height: 50px; /* 텍스트 라인 높이를 검색창 높이에 맞추기 */
flex: 1; /* 남은 공간을 차지 */
}
/* 검색창 placeholder 스타일 */
.search-txt::placeholder {
color: white; /* 흰색으로 설정 */
opacity: 0.8; /* placeholder의 투명도 조정 */
}
/* 검색 버튼 스타일 */
.search-btn {
color: #f9deec;
width: 40px;
height: 40px;
border-radius: 50%;
background: white;
border: none;
font-size: 16px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer; /* 마우스 커서 변경 */
}
/* 반응형 디자인을 위한 미디어 쿼리 */
@media (max-width: 600px) {
.search-box {
width: 90%; /* 작은 화면에서는 너비를 더 넓히기 */
}
.search-txt {
font-size: 14px; /* 작은 화면에서 폰트 크기 조정 */
}
.search-btn {
width: 35px; /* 버튼 크기 조정 */
height: 35px;
}
}