Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • Pankaj Sharma Moderator
    #944811

    Hi
    because the items are more then the space , they does not fit in single line . You can reduce the max width value for menu item that u applied to 170px then they can fit .
    You can use Media queries to apply the style for different screen sizes .
    Here : getbootstrap.com/css/#grid-media-queries

    Bummi Friend
    #945301

    As far as I know there are already media queries included in the purity 3 css-files. And for example on my WQHD-screen the menu buttons are not split evenly. I changed the width to 170px and the result is seen in the screenshot below.

    I presume that my knowledge about joomla / html and css is not enough to make the needed changes.


    1. format-online_wqhd
    Pankaj Sharma Moderator
    #945303

    Hi
    You need to apply different screen size media queries to apply the styles via custom.css file .
    The query works on the screen size u add in the code , for example

    @media (max-width:468px) { .class{width:170px; }}
    will work when screen size is maximum 468px . This way you can achieve this .

    Bummi Friend
    #945335

    Can I add these in the template.css or do I have to create a custom.css ?

    //Edit:
    I tried editing the media-queries in the css with firebug. And I think there is another problem: the div.container and all the following objects (nav.t3-navbar-collapse.collapse, div.t3-megamenu, ul.nav.navbar-nav.level0 …) are to small. On my WQHD Screen the menu button wont show correctly


    1. format-online_wqhd_1
    Pankaj Sharma Moderator
    #945430

    Hi
    In case you want to increase the size of the menu item , you need to define the new style code in custom.css file to specific screen size to increase its size .
    Use inspect element or firebug from browser to check the style and apply code like i posted example .
    Here is code

    .navbar-default .navbar-nav > li > a {
        font-size: 12px;
    }
    Bummi Friend
    #945449

    Now i’ve got this code in the css:

    @media screen and (min-width: 991px) {
    .navbar-default .navbar-nav > li {
    max-width: 180px;
    display: block;
    margin-right: 61px;

    It looks good on a 19201080 or a 25601440 screen. But on smaller ones the margin is too much. How can i change this without affecting the collapsed mobile megamenu?
    And if i resize my screen I dont want to jump the menu buttons to a second line. The margin between the button should become smaller and smaller till the point where there is no space left. On this point the megamenu should collapse to the mobile version.

    Sorry for my bad englisch :<

    Pankaj Sharma Moderator
    #945585

    Hi
    this is custom work in the style codes , kindly apply the same suggestion as i suggested above to change the margin/padding via custom.css file and using media queries .

    I also suggest you to upgrade membership to JATC/Dev memberships to get more flexible support on custom works .

    Bummi Friend
    #945689

    Thanks so far. I will try media queries in custom.ccs

    Where to put the custom.css? ..purity_iii/local/css/themes/[myname]/ or in purity_iii/css ?
    Thanks again for the help!

    Pankaj Sharma Moderator
    #945710

    Hi
    here is path > purity_iii/css/custom.css

    Bummi Friend
    #945726

    Big thanks!

    And where can I change the point on wich the megamenu will collapse to the mobile menu version? Thx

    Pankaj Sharma Moderator
    #946443

    Hi
    Go to /less/variable.less
    Find `
    // Point at which the navbar stops collapsing
    @grid-float-breakpoint: @screen-sm-max;

    repalce it with 

    // Point at which the navbar stops collapsing
    @grid-float-breakpoint: 992px;

    
    
    change 992px with your values .
    After save, compile Less to css from template options .
    
    Take backup of site before apply these changes .
    Bummi Friend
    #976225

    Thanks Pankaj!

    I have another problem and i cant seem to find a solution.
    Please be so kind and take a look on my site http://www.format-online.com/index.php/de/

    Decrease your brwoser window until the navbar starts to collapse. If you click on the collapsed menu the different menu items will show up. But the collapsed menu has a scolling bar on the bottom.
    I used an inspection tool to find the point in the template.css where i should be able to add a "max-width". I tried editing the css but the changes wont show on the live page. I dont know how to get rid of the scrolling bar.

    Any ideas? Thanks in advance.


    1. 20161310_01
    Pankaj Sharma Moderator
    #976243

    Hi
    You can set a max-width value by adding below code in custom.css file
    Change the width value depends on you needs .

    .t3-mainnav .t3-navbar-collapse .navbar-nav {
        max-width: 700px;
    }
    Bummi Friend
    #976257

    WOW! That worked instantly! Thanks so much mate.

    Another basic thing:
    After your last post i created the custom.css and inserted the code there.
    Prior to that i just edited the original css files (template.css / bootstrap.css…). Now i begin to understand that this was not the best way of doing it.

    Is there any way to find the edited parts in the original css files and copy them over to the custom.css? What problems could occure if i keep them the way they are?

    Pankaj Sharma Moderator
    #976261

    Hi
    Custom.css file will not be affected when template is updated , regarding copy the custom work , yes you can override the style code in custom.css file ,
    But I am afraid I do not give u the path of your changes since it personal custom work did by you .

Viewing 15 posts - 1 through 15 (of 16 total)

This topic contains 16 replies, has 2 voices, and was last updated by  Bummi 7 years, 6 months ago.

The topic ‘Help with megamenu plz’ is closed to new replies.