mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 12:24:18 +00:00
🎨 styles: change img recipe to img common
:%s
This commit is contained in:
@@ -2,13 +2,16 @@
|
|||||||
|
|
||||||
.recipeDetailInfo {
|
.recipeDetailInfo {
|
||||||
@apply spacing-horizontal;
|
@apply spacing-horizontal;
|
||||||
margin: 5.6rem auto;
|
margin: 0 auto 5.6rem;
|
||||||
@screen md {
|
@screen md {
|
||||||
@apply flex;
|
@apply flex;
|
||||||
|
margin: 5.6rem auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.img {
|
.img {
|
||||||
width: fit-content;
|
width: 100%;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
min-height: 50rem;
|
||||||
|
|
||||||
@screen sm-only {
|
@screen sm-only {
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2rem;
|
||||||
@@ -16,13 +19,16 @@
|
|||||||
@screen lg {
|
@screen lg {
|
||||||
max-width: 60rem;
|
max-width: 60rem;
|
||||||
}
|
}
|
||||||
img {
|
> div {
|
||||||
@apply w-full;
|
min-height: 64rem;
|
||||||
object-fit: contain;
|
img {
|
||||||
max-height: 64rem;
|
// object-fit: contain;
|
||||||
border-radius: 2.4rem;
|
// @apply w-full;
|
||||||
@screen md {
|
min-height: 64rem;
|
||||||
max-height: 90rem;
|
border-radius: 2.4rem;
|
||||||
|
// @screen md {
|
||||||
|
// max-height: 90rem;
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import { ImgWithLink } from 'src/components/common'
|
||||||
import RecipeBriefInfo from '../RecipeBriefInfo/RecipeBriefInfo'
|
import RecipeBriefInfo from '../RecipeBriefInfo/RecipeBriefInfo'
|
||||||
import s from './RecipeDetailInfo.module.scss'
|
import s from './RecipeDetailInfo.module.scss'
|
||||||
|
|
||||||
@@ -12,7 +13,7 @@ const RecipeDetailInfo = ({ }: Props) => {
|
|||||||
return (
|
return (
|
||||||
<section className={s.recipeDetailInfo}>
|
<section className={s.recipeDetailInfo}>
|
||||||
<div className={s.img}>
|
<div className={s.img}>
|
||||||
<img src="https://user-images.githubusercontent.com/76729908/131634880-8ae1437b-d3f8-421e-a546-d5a4f9a28e5f.png" alt="Recipe" />
|
<ImgWithLink src="https://user-images.githubusercontent.com/76729908/131634880-8ae1437b-d3f8-421e-a546-d5a4f9a28e5f.png" alt="Recipe" />
|
||||||
</div>
|
</div>
|
||||||
<div className={s.recipeInfo}>
|
<div className={s.recipeInfo}>
|
||||||
<div className={s.top}>
|
<div className={s.top}>
|
||||||
|
Reference in New Issue
Block a user