Skip to content

Commit

Permalink
amended styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Jahr authored and Adam Jahr committed May 22, 2020
1 parent 0e485e3 commit 1423465
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
13 changes: 7 additions & 6 deletions assets/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ body {
border-radius: 50%;
}

.container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}

.disabledButton {
background-color: #d8d8d8;
Expand Down Expand Up @@ -97,12 +92,18 @@ p {
font-size: 22px;
}

.product {
.product-display {
display: flex;
flex-direction: column;
padding: 1rem;
}

.product-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}

.product-image,
.product-info {
width: 50%;
Expand Down
12 changes: 6 additions & 6 deletions components/ProductDisplay.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ app.component('product-display', {
template:
/*html*/
`
<div class="product">
<div class="product-display">
<div class="container">
<div class="product-container">
<div class="product-image">
<img :src="image" />
</div>
Expand Down Expand Up @@ -39,12 +39,12 @@ app.component('product-display', {
>
Add to cart
</button>
</div>
<review-list :reviews="reviews"></review-list>
<review-form @review-submitted="addReview" ></review-form>
</div>
<review-list :reviews="reviews"></review-list>
<review-form @review-submitted="addReview" ></review-form>
</div>
`,
data() {
return {
Expand Down

0 comments on commit 1423465

Please sign in to comment.