Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Need to adjust position of cat icons.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-09-2017, 08:11 AM
 
Katsu Katsu is offline
 

eXpert
  
Join Date: Jun 2012
Posts: 349
 

Default Need to adjust position of cat icons.

The default category icons are tiny - only 16 x 16, so I set them to 32 x 32 by editing /include/func/func.image.php. The problem then, was that the icons overlapped the category names so I then edited /skin/common_files/modules/Flyout_Menus/Icons/main.css - 'padding-left: 36px;'.

All is good except the icons are a little low, relative to the text. I need to raise them up a few points.

Element Inspector shows the icon details:

.fancycat-icons-e img

top: auto;
margin-top: 0.3em;

Deselecting the check box next to either of these, or adjusting the margin-top value will adjust the vertical axis.

Question is, where to find this parameter? Which file, which line?
How would I locate this via Inspector?

Thanks in advance.
Attached Thumbnails
Click image for larger version

Name:	FireShot Screen Capture #115.jpg
Views:	340
Size:	5.8 KB
ID:	4915  
__________________
4.7.7
Light Responsive
Reply With Quote
  #2  
Old 05-09-2017, 10:54 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,052
 

Default Re: Need to adjust position of cat icons.

The css class:
fancycat-icons-e img

is in the file:
skin/common_files/modules/Flyout_menus/icons/main.css
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote

The following user thanks pauldodman for this useful post:
Katsu (05-10-2017)
  #3  
Old 05-10-2017, 12:06 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Need to adjust position of cat icons.

I think matching the "line-height" attribute with the actual height of menu items may help.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
Katsu (05-10-2017)
  #4  
Old 05-10-2017, 08:50 AM
 
Katsu Katsu is offline
 

eXpert
  
Join Date: Jun 2012
Posts: 349
 

Default Re: Need to adjust position of cat icons.

Thank you. I had found this and made adjustments but I thought I was doing something wrong. The vertical position changes as needed but the background to the category text becomes corrupted.

Large numbers of small arrows appear all around those category names that have sub-categories. This does not occur at the categories with no sub-categories.


Here, I changed 'top:' '0', to '2' which set the vertical just right.

.fancycat-icons-e img {
position: absolute;
top: 2;
left: 0;
padding: 0;
margin: 0;

I regenerated images - but still corrupted category text.

Adjusting line-height, row 121, unfortunately does not do anything.


... changing 'position: absolute;' to 'position: relative;' fixes the corrupted text, but now the image and text are moved over to the right and the veritical space is much too wide.

.
Attached Thumbnails
Click image for larger version

Name:	FireShot Screen Capture #117.jpg
Views:	352
Size:	7.6 KB
ID:	4916  Click image for larger version

Name:	FireShot Screen Capture #118.jpg
Views:	346
Size:	5.0 KB
ID:	4917  
__________________
4.7.7
Light Responsive
Reply With Quote
  #5  
Old 05-15-2017, 10:52 PM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Need to adjust position of cat icons.

What is your site URL so that we could look at it?
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
Katsu (05-16-2017)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:48 AM.

   

 
X-Cart forums © 2001-2020