test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • fbernardello Friend
    #956077

    Dear support, I’m using this custom code (provided by you) in my custom.css file:

    .magazine-featured-intro .col.col-sm-12.magazine-item {
        min-height: auto !important;
        padding-bottom: 0px !important;
    }
    
    .magazine-featured-intro .col.col-sm-12.magazine-item .item-image {
        float: left !important;
        width: auto !important;
        max-width: 100% !important;
        padding-right: 30px;
        max-height: 100% !important;
    }
    
    .magazine-featured-intro .col.col-sm-12.magazine-item .magazine-item-main {
        float: left;
        width: 460px;
    }

    This is great in standard view, but it’s not properly optimized on tablets and smartphones views. How can I add more lines to defines rules for tablets and smartphones? What is the proper code to be used?

    .magazine-featured-intro .col.??????.magazine-item .magazine-item-main {

    Thanks in advance, Federico

    Saguaros Moderator
    #956263

    Hi Federico,

    The template is built with T3 framework which implements Bootstrap, you can use Media Queries to define rules for specific view port: http://getbootstrap.com/css/#grid-media-queries

    fbernardello Friend
    #956471

    Dear @saguaros,
    I see, thanks for your feedback.
    I’m trying as suggested, to optimize smartphone view, but It’s not working. Is it correct?

    @media (min-width: @screen-sm-min) {
    .magazine-featured-intro .col.col-sm-12.magazine-item .magazine-item-main {
        float: left;
        width: 100%;
    }
    }

    Regards,
    Federico

    Saguaros Moderator
    #956472

    Hi Federico,

    You will use the variable @screen-sm-min when you change in LESS file. And if your site is running with Development Mode, just refresh the front page to see the change, if Dev mode is OFF, you need to compile less to css first (REMEMBER to backup all css files first).

    In case you want to change in CSS file instead, you should use query like this (apply for mobile view port):

        @media (max-width: 360px) {
        .magazine-featured-intro .col.col-sm-12.magazine-item .magazine-item-main {
            float: left;
            width: 100%;
        }
        }

    360px here is maximum width of view port which will take affect from defined css rule.

    I hope this makes senses.

    fbernardello Friend
    #957197

    Dear @saguaros,
    sorry if I didn’t reply yet.
    I got a little bit crazy to optimize all the main views, but it’s working!

    Thanks,
    Federico

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 4 replies, has 2 voices, and was last updated by  fbernardello 8 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum