Skip to content
This repository was archived by the owner on Sep 11, 2018. It is now read-only.

Commit 19fde80

Browse files
author
Claudio Ludovico Panetta
committed
Move the style of the Photo component
Photos.vue has the style of Photo component so it has to be moved.
1 parent 5872d88 commit 19fde80

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

src/components/Photo.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,18 @@
3030
},
3131
}
3232
</script>
33+
34+
<style scoped>
35+
.Photo {
36+
list-style-type: none;
37+
}
38+
39+
.Photo__container {
40+
display: block;
41+
}
42+
43+
.Photo_source {
44+
display: block;
45+
max-width: 100%;
46+
}
47+
</style>

src/components/Photos.vue

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,12 @@
3636
}
3737
</script>
3838

39-
<style>
39+
<style scoped>
4040
.Photos {
4141
display: flex;
4242
flex-direction: row;
4343
flex-wrap: wrap;
4444
margin: 0;
4545
padding: 0;
4646
}
47-
48-
.Photo {
49-
list-style-type: none;
50-
}
51-
52-
.Photo__container {
53-
display: block;
54-
}
55-
56-
.Photo_source {
57-
display: block;
58-
max-width: 100%;
59-
}
6047
</style>

0 commit comments

Comments
 (0)