Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • rangga san Friend
    #1057880

    Hi,

    How to resize the slideshow module?

    I just want to resize the height of it and also resize the swiper (the 3 item images below) to be smaller.

    Slideshow Module

    • This topic was modified 6 years, 8 months ago by  rangga san.
    Saguaros Moderator
    #1058120

    Hi,

    You can try to inspect the element by editor on browser you’re using: http://prntscr.com/gbzate

    What I usually do is set Compress CSS in Template manager to No, then hover on any HTML element (i.e. button, tag, text, …) you want and right click on it and then click on inspect element, it will show you which CSS class it is using and which CSS file and the path to this element on the right side. then you can go to the file and replace it with new CSS you change.

    rangga san Friend
    #1058377

    This is what I did to meet my requirement

    
    @media (min-width: 1200px)
    {
      .slideshow {
        height: 525px;
      }
      .slideshow .slider-content-inner .group-action {
        padding-bottom: 150px;
      }
      .item-title.ja-animation{
        font-size: 24px;
      }
      .swiper-container.slideshow-thumbs{
        height: 115px;
      }
    }
    
    @media (min-width: 1600px)
    {
      .slideshow {
        height: 525px;
      }
      .slideshow .slider-content-inner .group-action {
        padding-bottom: 275px;
      }
      .item-title.ja-animation{
        font-size: 24px;
      }
      .swiper-container.slideshow-thumbs{
        height: 115px;
      }
    }
    
    @media (min-width: 1920px)
    {
      .slideshow {
        height: 525px;
      }
      .slideshow .slider-content-inner .group-action {
        padding-bottom: 425px;
      }
      .item-title.ja-animation{
        font-size: 24px;
      }
      .swiper-container.slideshow-thumbs{
        height: 115px;
      }
    }
    

    Do you have better suggestion? Simple code that does not require to add screen size. I mean one code for any screen (phone, tablet, desktop)

    Saguaros Moderator
    #1058530

    Hi,

    If you’re familiar with LESS, you can see how we style for it in different screen via this file: templates/ja_company/acm/slideshow/less/style.less

    and you can customize in the same way.

    rangga san Friend
    #1058536

    I’m unfamiliar with LESS but if I see the code structure, it more neat than CSS. But you have both LESS and CSS files that set style in different screen. So, which one is running first? LESS or CSS? and what’s the point making 2 files (LESS and CSS)?

    Saguaros Moderator
    #1058987

    Hi,

    LESS is great for development stage of a website, for example, with a specific screen size (use media jquery in Bootstrap) you can define various elements while in CSS, you will need to define for each element one by one.

    In templates built with T3 framework – which utilizes Bootstrap, we provide option in template manager to enable / disable Development mode, when set this mode ON, template will load LESS files, if it’s OFF, the css files will be called.

    rangga san Friend
    #1059100

    Thanks for the explanation

    • This reply was modified 6 years, 8 months ago by  rangga san.
Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 6 replies, has 2 voices, and was last updated by  rangga san 6 years, 8 months ago.

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