Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • nitroboy Friend
    #183193

    Hello,
    I installed T3 V3 yesterday with blank template. I’m new in the framework world, and I was wondering how to specify a max fixed width for template responsive layout “wide” and “normal”. I would like to specify a max width of 980px…

    Thanks,
    Yves

    Ninja Lead Moderator
    #476775

    Hi Yves,

    You can try this way
    <blockquote>Open templates/ja_t3v3_blank/less/variables.less file</blockquote>

    // Default 940px grid
    // -------------------------
    @T3gridWidth: 940px; // T3 add. For non-responsive layout.
    @gridColumns: 12;
    @gridGutterWidth: 40px;
    @gridColumnWidth: floor((@T3gridWidth - @gridGutterWidth * (@gridColumns - 1)) / @gridColumns);
    @gridRowWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * (@gridColumns - 1));

    // 1200px min
    @T3gridWidth1200: 1200px; // T3 add
    @gridGutterWidth1200: 40px;
    @gridColumnWidth1200: floor((@T3gridWidth1200 - @gridGutterWidth1200 * (@gridColumns - 1)) / @gridColumns);
    @gridRowWidth1200: (@gridColumns * @gridColumnWidth1200) + (@gridGutterWidth1200 * (@gridColumns - 1));

    // 980px-1199px
    @T3gridWidth980: 940px; // T3 add
    @gridGutterWidth980: 40px;
    @gridColumnWidth980: floor((@T3gridWidth980 - @gridGutterWidth980 * (@gridColumns - 1)) / @gridColumns);
    @gridRowWidth980: (@gridColumns * @gridColumnWidth980) + (@gridGutterWidth980 * (@gridColumns - 1));

    // T3 Add: 768px-979px
    @T3gridWidth768: 740px; // T3 add
    @gridGutterWidth768: 20px;
    @gridColumnWidth768: floor((@T3gridWidth768 - @gridGutterWidth768 * (@gridColumns - 1)) / @gridColumns);
    @gridRowWidth768: (@gridColumns * @gridColumnWidth768) + (@gridGutterWidth768 * (@gridColumns - 1));

    Regards

    shibaevvv Friend
    #481891

    what’s the difference from the original text?

    Ninja Lead Moderator
    #481961

    <em>@shibaevvv 357988 wrote:</em><blockquote>what’s the difference from the original text?</blockquote>

    You can check with the original text to see the difference.

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

This topic contains 4 replies, has 3 voices, and was last updated by  Ninja Lead 11 years, 9 months ago.

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