mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-03 08:32:24 +00:00
Website Product Image
This commit is contained in:
50
erpnext/public/css/website.css
Normal file
50
erpnext/public/css/website.css
Normal file
@@ -0,0 +1,50 @@
|
||||
.web-long-description {
|
||||
font-size: 18px;
|
||||
line-height: 200%;
|
||||
}
|
||||
.item-stock {
|
||||
margin-bottom: 10px !important;
|
||||
}
|
||||
.product-link {
|
||||
display: block;
|
||||
text-align: center;
|
||||
}
|
||||
.product-image-wrapper {
|
||||
max-width: 300px;
|
||||
margin: auto;
|
||||
border-radius: 4px;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
.product-image {
|
||||
height: 0px;
|
||||
padding: 0px 0px 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
.product-image-square {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
padding: 50% 0px;
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center top;
|
||||
border-radius: 0.5em;
|
||||
}
|
||||
.product-image.missing-image {
|
||||
width: 100%;
|
||||
height: 0;
|
||||
padding: 50% 0px;
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center top;
|
||||
border-radius: 0.5em;
|
||||
border: 1px dashed #d1d8dd;
|
||||
position: relative;
|
||||
}
|
||||
.product-image.missing-image .octicon {
|
||||
font-size: 32px;
|
||||
color: #d1d8dd;
|
||||
}
|
||||
.product-text {
|
||||
padding: 15px 0px;
|
||||
}
|
||||
Reference in New Issue
Block a user