Skip to content

Commit 1423465

Browse files
Adam JahrAdam Jahr
authored andcommitted
amended styles
1 parent 0e485e3 commit 1423465

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

assets/styles.css

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ body {
4040
border-radius: 50%;
4141
}
4242

43-
.container {
44-
display: flex;
45-
flex-direction: row;
46-
flex-wrap: wrap;
47-
}
4843

4944
.disabledButton {
5045
background-color: #d8d8d8;
@@ -97,12 +92,18 @@ p {
9792
font-size: 22px;
9893
}
9994

100-
.product {
95+
.product-display {
10196
display: flex;
10297
flex-direction: column;
10398
padding: 1rem;
10499
}
105100

101+
.product-container {
102+
display: flex;
103+
flex-direction: row;
104+
flex-wrap: wrap;
105+
}
106+
106107
.product-image,
107108
.product-info {
108109
width: 50%;

components/ProductDisplay.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ app.component('product-display', {
88
template:
99
/*html*/
1010
`
11-
<div class="product">
11+
<div class="product-display">
1212
13-
<div class="container">
13+
<div class="product-container">
1414
<div class="product-image">
1515
<img :src="image" />
1616
</div>
@@ -39,12 +39,12 @@ app.component('product-display', {
3939
>
4040
Add to cart
4141
</button>
42-
4342
</div>
44-
45-
<review-list :reviews="reviews"></review-list>
46-
<review-form @review-submitted="addReview" ></review-form>
4743
</div>
44+
45+
<review-list :reviews="reviews"></review-list>
46+
<review-form @review-submitted="addReview" ></review-form>
47+
</div>
4848
`,
4949
data() {
5050
return {

0 commit comments

Comments
 (0)