-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #5117
base: master
Are you sure you want to change the base?
Develop #5117
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
@use '../utils/variables.scss'; | ||
|
||
.card { | ||
width: 200px; | ||
height: 408px; | ||
padding: 32px 16px 16px; | ||
border: 1px solid white; | ||
border-radius: 5px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
text-align: left; | ||
|
||
&__image { | ||
width: 160px; | ||
height: 134px; | ||
margin-bottom: 40px; | ||
} | ||
|
||
&__title { | ||
font-weight: 500; | ||
font-size: 12px; | ||
line-height: 18px; | ||
color: variables.$main-accent; | ||
margin-bottom: 4px; | ||
} | ||
|
||
&__code { | ||
width: 100%; | ||
font-weight: 400; | ||
font-size: 10px; | ||
line-height: 14px; | ||
color: variables.$secondary-accent; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an issue with the SCSS variable usage here. The correct syntax for using a variable in SCSS is |
||
margin-bottom: 16px; | ||
} | ||
|
||
&__reviews { | ||
width: 100%; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
margin-bottom: 24px; | ||
} | ||
|
||
&__stars { | ||
margin-right: 17px; | ||
} | ||
|
||
&__reviews-count { | ||
font-weight: 400; | ||
font-size: 10px; | ||
line-height: 14px; | ||
text-align: right; | ||
color: variables.$main-accent; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an issue with the SCSS variable usage here. The correct syntax for using a variable in SCSS is |
||
} | ||
|
||
&__price { | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
&-text { | ||
font-weight: 400; | ||
font-size: 12px; | ||
line-height: 18px; | ||
color: variables.$secondary-accent; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an issue with the SCSS variable usage here. The correct syntax for using a variable in SCSS is |
||
} | ||
|
||
&-value { | ||
font-weight: 700; | ||
font-size: 16px; | ||
line-height: 18px; | ||
text-align: right; | ||
color: variables.$main-accent; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an issue with the SCSS variable usage here. The correct syntax for using a variable in SCSS is |
||
} | ||
|
||
margin-bottom: 16px; | ||
} | ||
|
||
&__button { | ||
width: 166px; | ||
height: 40px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
font-weight: 700; | ||
color: white; | ||
font-size: 14px; | ||
line-height: 16px; | ||
text-align: center; | ||
border: none; | ||
border-radius: 5px; | ||
text-decoration: none; | ||
background-color: variables.$blue-accent; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an issue with the SCSS variable usage here. The correct syntax for using a variable in SCSS is |
||
|
||
&:hover { | ||
background-color: white; | ||
color: variables.$blue-accent; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an issue with the SCSS variable usage here. The correct syntax for using a variable in SCSS is |
||
border: 1px solid variables.$blue-accent; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is an issue with the SCSS variable usage here. The correct syntax for using a variable in SCSS is |
||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@use '../utils/variables.scss'; | ||
|
||
.stars { | ||
display: flex; | ||
|
||
&__star { | ||
width: 16px; | ||
height: 16px; | ||
background-image: url('../images/star.svg'); | ||
background-repeat: no-repeat; | ||
background-position: center; | ||
margin-right: 4px; | ||
|
||
&:last-child { | ||
margin-right: 0; | ||
} | ||
} | ||
|
||
@for $i from 1 through 5 { | ||
&--#{$i} .stars__star:nth-child(-n + #{$i}) { | ||
background-image: url('../images/star-active.svg'); | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
body { | ||
@import './utils/variables'; | ||
@import './blocks/card'; | ||
@import './blocks/stars'; | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
body { | ||
font-family: Roboto, serif; | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
$main-accent: #060b35; | ||
$secondary-accent: #616070; | ||
$blue-accent: #00acdc; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an issue with the SCSS variable usage here. The correct syntax for using a variable in SCSS is
variables.$variable-name
. Ensure that thevariables.scss
file contains the$main-accent
variable and that it is imported correctly.