-
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
add solution #5075
base: master
Are you sure you want to change the base?
add solution #5075
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 |
---|---|---|
@@ -1,3 +1,132 @@ | ||
body { | ||
html { | ||
font-family: Roboto, sans-serif; | ||
} | ||
|
||
p, | ||
h3 { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.body { | ||
margin: 0; | ||
padding: 0; | ||
|
||
--white: #fff; | ||
--blue: #00acdc; | ||
} | ||
|
||
.card { | ||
width: 200px; | ||
box-sizing: border-box; | ||
padding: 32px 16px 16px; | ||
border-radius: 5px; | ||
border: 1px solid #f3f3f3; | ||
|
||
&__title { | ||
font-weight: 500; | ||
font-size: 12px; | ||
line-height: 18px; | ||
margin-bottom: 4px; | ||
} | ||
|
||
&__info { | ||
margin-top: 4px; | ||
font-weight: 400; | ||
font-size: 10px; | ||
line-height: 14px; | ||
display: flex; | ||
} | ||
|
||
&__image { | ||
margin: 0 auto 40px; | ||
display: block; | ||
width: 160px; | ||
height: 134px; | ||
} | ||
} | ||
|
||
.reviews { | ||
min-width: 166px; | ||
display: flex; | ||
margin: 16px 0 24px; | ||
|
||
&__text { | ||
font-size: 10px; | ||
font-weight: 400; | ||
line-height: 16px; | ||
display: flex; | ||
justify-content: space-between; | ||
padding-left: 17px; | ||
} | ||
} | ||
|
||
.stars { | ||
min-width: 60%; | ||
line-height: 16px; | ||
display: flex; | ||
justify-content: space-between; | ||
|
||
&__star { | ||
width: 60%; | ||
line-height: 16px; | ||
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. The width of the |
||
background-image: url(../images/star.svg); | ||
background-repeat: no-repeat; | ||
} | ||
|
||
&--0 &__star:nth-child(-n + 4) { | ||
background-image: url(../images/star-active.svg); | ||
background-repeat: no-repeat; | ||
} | ||
} | ||
|
||
.price { | ||
width: 166px; | ||
line-height: 18px; | ||
display: flex; | ||
justify-content: space-between; | ||
margin: 24px 0 16px; | ||
|
||
&__title { | ||
font-size: 12px; | ||
font-weight: 400; | ||
line-height: 18px; | ||
justify-content: space-between; | ||
} | ||
|
||
&__number { | ||
font-size: 16px; | ||
font-weight: 700; | ||
line-height: 18px; | ||
} | ||
} | ||
|
||
.footer { | ||
margin: 16px 0 0; | ||
width: 166px; | ||
height: 40px; | ||
background: var(--blue); | ||
border-radius: 5px; | ||
|
||
&__button { | ||
margin: 12px 70px; | ||
width: 27px; | ||
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. The margin for |
||
line-height: 16px; | ||
font-size: 14px; | ||
font-weight: 700; | ||
display: inline-block; | ||
color: var(--white); | ||
text-decoration: none; | ||
} | ||
|
||
&:hover { | ||
background: var(--white); | ||
border-radius: 5px; | ||
border: 1px solid var(--blue); | ||
} | ||
|
||
&__button:hover { | ||
color: var(--blue); | ||
text-decoration: none; | ||
} | ||
} |
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.
The href attribute for the stylesheet link points to a SCSS file (
index.scss
). Typically, browsers cannot directly interpret SCSS files. Ensure that this file is being compiled to CSS and that the correct CSS file is linked here.