| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Responsive Breaks | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Responsive Breaks
In the default responsive template for X-Cart 5, it appears the major responsive break is at 992px width. Anything less than that triggers the mobile menu, etc.
Is there a way to change this to, say, 960px? Or a different amount? I would want it be changed the correct way so that updates can be installed.
__________________
X-cart v 5.2 |
|||||||
#2
|
|||||||||
|
|||||||||
Re: Responsive Breaks
Sure, you can implement that type of change in your own module's CSS.
Just setup your own media queries, and write your CSS to be more explicit and it can override the defaults. It is easy to get started with such a task, but fine tuning it to handle every situation can take a lot of work. Big changes can be made by deciding when .mobile-hidden and .desktop-hidden display block or none.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#3
|
|||||||||
|
|||||||||
Re: Responsive Breaks
Hey Mike I have done some css for a new homepage but it breaks in the mobile size, is it necessary to add a mobile css file? is there any chance you can take a look
__________________
Richard Ultimate 5.4 testing |
|||||||||
|
#4
|
|||||||||
|
|||||||||
Re: Responsive Breaks
Just in case if anyone wants to change the responsive breakpoints - you can do it by using the code similar to this module:
https://forum.x-cart.com/showpost.php?p=388844&postcount=4 The module sets the breakpoints to fake values in order to turn the mobile website off, but you can use the same code but with different values and this should work.
__________________
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 |
|||||||||
|
#5
|
|||||||||
|
|||||||||
Re: Responsive Breaks
Quote:
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#6
|
|||||||||
|
|||||||||
Re: Responsive Breaks
Looking at the title of this thread again. I just thought I would mention that my personal break point for mobile has always been 768px. This is based on IPad 1 in portrait with "<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">" set. I realize that this might be old at this point, but it has become something of a de facto standard. If I were to consider a more modern breakpoint for mobile I think I would settle around 980-990px like XC has done. Just seems a little extreme to someone from the old school.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey XcartGuru X-cart Tutorials | X-cart 5 Tutorials Check out the responsive template for X-cart. |
|||||||||
#7
|
|||||||||
|
|||||||||
Re: Responsive Breaks
Quote:
Sure, all you have to do is to find the file /skin/common/bootstrap/css/variables.less and then find this piece of code: Code:
But don't forget that such change should be implemented as a module in order to avoid it to be overwritten during upgrade.
__________________
Best regards, Igor Pudovkin X-Cart hosting team |
|||||||||
|
|||
X-Cart forums © 2001-2020
|