Skip to content

Commit c72358b

Browse files
authored
Zoom catalog image (#2074)
* Create test.js * Delete Specialized Areas/Fix scripts/test.js * Create CSS.js * Create README.md * Update CSS.js * Update CSS.js
1 parent aea7842 commit c72358b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
Zoom - in catalog item image on mouse hover.
3+
*/
4+
.catalog-item-image:hover{ /* OOB catalog item image class */
5+
transform: scale(2); /* 200% zoom */
6+
}
7+
/*
8+
Zoom - in catalog item short description on mouse hover.
9+
*/
10+
.sc-cat-item-short-description:hover{ /* OOB catalog item short description class */
11+
transform: scale(1.2) translateX(15rem); /* 120% zoom and 15rem right shift*/
12+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
**How to use**
2+
1. Add this css code to "Page specific css" on "sc_cat_item" page for Service Portal.
3+
2. Add this css code to "Page specific css" on "esc_sc_cat_item" page for Employee centre portal
4+
3. This can also be used in css includes at theme level.
5+
4. If your portal is customised and different pages are used for catalog items through Page Route Maps, use this in your pages.
6+
7+
**Use Case**
8+
1. Many product catalogs have small images, organisations don't want to change that at backend but want to give the user the ability to see a zoomed-in image.

0 commit comments

Comments
 (0)