diff --git a/src/css/layout/05-modal-exercise.css b/src/css/layout/05-modal-exercise.css index 7d756da..58ad4a3 100644 --- a/src/css/layout/05-modal-exercise.css +++ b/src/css/layout/05-modal-exercise.css @@ -98,6 +98,7 @@ @media screen and (min-width: 768px) { .modal-exercises__img { + width: 270px; height: 259px; margin-bottom: 0; } @@ -140,32 +141,6 @@ } } -/* .icon-star { - padding: 2px; - width: 18px; - height: 18px; - fill: rgba(244, 244, 244, 0.2); -} */ - -/* .icon-star-empty { - padding: 2px; - width: 18px; - height: 18px; - fill: rgba(244, 244, 244, 0.2); -} */ - -/* .icon-star:nth-child(3n + 1) { - fill: var(--color-yellow); -} - -.icon-star:nth-child(3n + 2) { - fill: var(--color-yellow); -} - -.icon-star:nth-child(3n) { - fill: var(--color-yellow); -} */ - .modal-exercises__block { margin-bottom: 40px; } @@ -283,7 +258,6 @@ .btn-favorites__icon { stroke: var(--color-black); fill: var(--color-white); - padding-left: 4px; width: 18px; height: 18px; transition: all var(--transition-dur-and-func); @@ -302,6 +276,12 @@ color: var(--color-white); transition: all var(--transition-dur-and-func); } +@media screen and (min-width: 768px) { + .modal-exercises__btn-rating { + padding-left: 22px; + padding-right: 22px; + } +} .modal-exercises__btn-favorites:hover { background-color: var(--color-black); diff --git a/src/img/modal-exercise-image.jpg b/src/img/modal-exercise-image.jpg new file mode 100644 index 0000000..a12db05 Binary files /dev/null and b/src/img/modal-exercise-image.jpg differ diff --git a/src/img/modal-exercise-image@2x.jpg b/src/img/modal-exercise-image@2x.jpg new file mode 100644 index 0000000..a69ff1c Binary files /dev/null and b/src/img/modal-exercise-image@2x.jpg differ diff --git a/src/js/05-modal-exercises.js b/src/js/05-modal-exercises.js index fc69085..58e8603 100644 --- a/src/js/05-modal-exercises.js +++ b/src/js/05-modal-exercises.js @@ -63,7 +63,6 @@ function createRating(rating) { }, ]; - // Генерація linearGradient const linearGradient = ` ${gradientStops @@ -105,8 +104,8 @@ function createMarkup({ const getExerciseGif = getGif(gifUrl); function getGif(gifUrl) { if (gifUrl === null || !gifUrl) { - return; - // Треба заглушку + return `srcset = './img/modal-exercise-image.jpg 1x,./img/modal-exercise-image@2x.jpg 2x' + src = './img/modal-exercise-image.jpg'`; } return `src="${gifUrl}"`; } @@ -115,14 +114,14 @@ function createMarkup({