Skip to content

Commit 83c9d7f

Browse files
committed
Added max-width
1 parent c1872e7 commit 83c9d7f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

javascript/apis/fetching-data/can-store/can-style.css

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,31 @@ section p {
174174
.soup {
175175
background: black url(icons/soup.png) no-repeat 2px 2px;
176176
background-size: 24px 24px;
177+
}
178+
179+
/* mobile responsive styles*/
180+
@media screen and (max-width: 550px){
181+
body, body div {
182+
display: grid;
183+
max-width: 400px;
184+
}
185+
header {
186+
grid-row: 1;
187+
}
188+
header h1 {
189+
font-size: 3.5rem;
190+
font-weight: bold;
191+
background: url(icons/bean_can.png) no-repeat 0% center, url(icons/bean_can.png) no-repeat 100% center;
192+
background-size: 48px 48px;
193+
}
194+
aside {
195+
grid-row: 1;
196+
}
197+
main {
198+
grid-row: 2;
199+
}
200+
footer {
201+
grid-row: 3;
202+
}
203+
177204
}

0 commit comments

Comments
 (0)