Skip to content

Commit

Permalink
DRY done
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiZakharenko committed Jun 17, 2024
1 parent 725ddea commit cfd75b2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
16 changes: 8 additions & 8 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
>
<img
class="card__image"
src="./images/imac.jpeg"
src="images/imac.jpeg"
alt="Apple A1419 iMac 27 Retina 5K Monoblock"
/>

Expand Down Expand Up @@ -162,7 +162,7 @@ <h3 class="card__title">
<article class="card">
<img
class="card__image"
src="./images/imac.jpeg"
src="images/imac.jpeg"
alt="Apple A1419 iMac 27 Retina 5K Monoblock"
/>

Expand Down Expand Up @@ -203,7 +203,7 @@ <h3 class="card__title">
<article class="card">
<img
class="card__image"
src="./images/imac.jpeg"
src="images/imac.jpeg"
alt="Apple A1419 iMac 27 Retina 5K Monoblock"
/>

Expand Down Expand Up @@ -244,7 +244,7 @@ <h3 class="card__title">
<article class="card">
<img
class="card__image"
src="./images/imac.jpeg"
src="images/imac.jpeg"
alt="Apple A1419 iMac 27 Retina 5K Monoblock"
/>

Expand Down Expand Up @@ -285,7 +285,7 @@ <h3 class="card__title">
<article class="card">
<img
class="card__image"
src="./images/imac.jpeg"
src="images/imac.jpeg"
alt="Apple A1419 iMac 27 Retina 5K Monoblock"
/>

Expand Down Expand Up @@ -326,7 +326,7 @@ <h3 class="card__title">
<article class="card">
<img
class="card__image"
src="./images/imac.jpeg"
src="images/imac.jpeg"
alt="Apple A1419 iMac 27 Retina 5K Monoblock"
/>

Expand Down Expand Up @@ -367,7 +367,7 @@ <h3 class="card__title">
<article class="card">
<img
class="card__image"
src="./images/imac.jpeg"
src="images/imac.jpeg"
alt="Apple A1419 iMac 27 Retina 5K Monoblock"
/>

Expand Down Expand Up @@ -408,7 +408,7 @@ <h3 class="card__title">
<article class="card">
<img
class="card__image"
src="./images/imac.jpeg"
src="images/imac.jpeg"
alt="Apple A1419 iMac 27 Retina 5K Monoblock"
/>

Expand Down
8 changes: 1 addition & 7 deletions src/styles/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
border: 1px solid $light-grey;
border-radius: 5px;
transition: transform 0.3s ease;
font-family: $roboto, sans-serif;
font-weight: 400;
line-height: 14px;

&:hover {
Expand All @@ -23,7 +21,6 @@
}

&__title {
font-family: $roboto, sans-serif;
color: $black;
font-weight: 500;
line-height: 18px;
Expand All @@ -37,7 +34,6 @@
}

&__code {
font-size: 10px;
color: $grey;
margin-bottom: 16px;
}
Expand All @@ -50,7 +46,6 @@
}

&__review {
font-size: 10px;
color: $black;
line-height: 14px;
text-align: center;
Expand Down Expand Up @@ -81,7 +76,6 @@
&__link-buy {
box-sizing: border-box;
display: block;
font-family: $roboto, sans-serif;
font-size: 14px;
font-weight: 700;
line-height: 38px;
Expand All @@ -92,7 +86,7 @@
border-radius: 5px;
border: 1px solid $blue;
text-transform: uppercase;
transition: all 0.2s;
transition: background-color 0.2s;
}

&__link-buy:hover {
Expand Down
3 changes: 1 addition & 2 deletions src/styles/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

&__item {
font-size: 12px;
font-family: $roboto, sans-serif;
font-weight: 500;
display: flex;
justify-content: center;
Expand All @@ -40,10 +39,10 @@
color: $black;
text-transform: uppercase;
line-height: 60px;
transition: background-color 0.2s;

&:hover {
color: $blue;
transition: all 0.2s;
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions src/styles/null.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
box-sizing: border-box;
}

html {
font-family: $roboto;
font-size: 10px;
font-weight: 400;
}

body {
margin: 0;
}
Expand Down

0 comments on commit cfd75b2

Please sign in to comment.