Skip to content

Commit

Permalink
Responsive: Mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Firmino Changani committed May 26, 2018
1 parent 8325901 commit d5fa525
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export default {
setTimeout(() => {
// Add the class slidedown in the header
document.querySelector(".spot")
.classList.add('slidedown');
}, 500)
.classList.add('slidedown');
}, 500);
},
};
</script>
Expand Down
23 changes: 22 additions & 1 deletion src/components/Feed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>

<div class="loading" v-show="loading">
<article v-for="fake in [1, 2, 3, 4, 5, 6, 7, 8]"></article>
<article v-for="fake in [1, 2, 3, 4, 5, 6, 7, 8]" :key="fake.id"></article>
</div>
</div>
</template>
Expand Down Expand Up @@ -243,4 +243,25 @@ export default {
position: absolute;
background-color: #DDD;
}
@media screen and (max-width: 450px) {
.wrap{
width: 90%;
}
.video,
.loading article{
width: 100%
}
.tags{
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.tags li{
margin-bottom: 10px;
}
}
</style>
9 changes: 8 additions & 1 deletion src/components/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ export default {
<style>
.player iframe{
width: 100%;
height: 460px
height: 560px;
background-color: #DDD;
}
@media screen and (max-width: 450px) {
.player iframe {
height: 200px;
}
}
</style>

0 comments on commit d5fa525

Please sign in to comment.