Skip to content

Commit 0153adf

Browse files
committed
[feat] 반응형 기능 추가 - 미디어쿼리
[feat] 반응형 기능 추가 - 미디어쿼리 layout.css 에 미디어쿼리를 활용하여 모바일 크기일 때 사용할 수 있는 반응형 기능을 추가했습니다. resolves : #9
1 parent e9dd404 commit 0153adf

1 file changed

Lines changed: 72 additions & 2 deletions

File tree

html/.vscode/layout.css

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ body {
4646
}
4747

4848
.title {
49-
font-size: 56px;
49+
font-size: 61px;
5050
font-weight: 800;
5151
line-height: 48px;
5252
letter-spacing: -2px;
@@ -55,7 +55,7 @@ body {
5555

5656
.subtitle {
5757
color: #927B91;
58-
font-size: 19px;
58+
font-size: 24px;
5959
font-weight: 500;
6060
margin-bottom: 30px;
6161
line-height: 25px;
@@ -147,3 +147,73 @@ body {
147147
line-height: 22px;
148148
}
149149

150+
@media (max-width: 738px) {
151+
body {
152+
153+
margin: 0; /* 기본 여백 제거 */
154+
}
155+
.title-container {
156+
align-items: center;
157+
text-align: center;
158+
left: 50%;
159+
transform: translateX(-50%);
160+
}
161+
.title{
162+
font-size: 60px;
163+
}
164+
.subtitle {
165+
margin-bottom: 39px;
166+
}
167+
168+
.container2 {
169+
position: relative;
170+
top: 10px;
171+
left: auto;
172+
width: 73%;
173+
174+
margin-bottom: 237px;
175+
gap: 20px;
176+
align-items: center;
177+
178+
}
179+
.container2 span{
180+
margin-top : -20px;
181+
}
182+
183+
.star {
184+
margin-top : 16px;
185+
gap: 32px;
186+
}
187+
188+
.container {
189+
flex-direction: column;
190+
align-items: center;
191+
margin-top: 260px;
192+
}
193+
.box_s{
194+
display : flex;
195+
flex-direction: column;
196+
align-items: center;
197+
height : 78px;
198+
}
199+
200+
.box_B {
201+
width: 100%;
202+
margin-bottom: 0px;
203+
}
204+
.img{
205+
margin-top : 15px;
206+
}
207+
.b_title_subtitle{
208+
margin-top : 15px;
209+
}
210+
.b_title{
211+
margin-bottom: 8px;
212+
}
213+
.b_text{
214+
margin-top : 10px;
215+
font-size: 17px;
216+
align-items: center;
217+
}
218+
}
219+

0 commit comments

Comments
 (0)