Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Commit 26a25d1

Browse files
committed
Make styles more responsive
1 parent ba9e359 commit 26a25d1

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

layouts/default.vue

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,30 @@ export default {
3939
</script>
4040

4141
<style>
42+
.layout {
43+
max-width: 600px;
44+
margin-left: auto;
45+
margin-right: auto;
46+
height: 100vh;
47+
padding-top: 40px;
48+
}
4249
4350
.header, .footer {
4451
display: flex;
4552
flex-direction: row;
4653
align-items: center;
4754
justify-content: center;
48-
margin: 40px;
55+
margin-bottom: 40px;
56+
width: 100%;
57+
}
58+
59+
.footer {
60+
margin-top: 40px;
4961
}
5062
5163
.footer-inner {
5264
background-color: whitesmoke;
53-
width: 600px;
65+
width: 100%;
5466
padding: 20px;
5567
display: flex;
5668
flex-direction: row;

pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default {
2929

3030
<style lang="css" scoped>
3131
.posts-list {
32-
width: 600px;
32+
width: 100%;
3333
background-color: whitesmoke;
3434
padding: 20px;
3535
margin-top: 35px;

0 commit comments

Comments
 (0)