Black Friday Sale! Get up to $40 off GP Premium!Learn more

Element Spacing – Sidebar Widths – precision

Home Forums Support Element Spacing – Sidebar Widths – precision

  • This topic has 3 replies, 2 voices, and was last updated 5 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #154757
    Ondřej

    Hi,
    this is only minor suggestion but maybe you could make Sidebar Widths setting adjustable more precisely than just by 5%.
    I mean, now you can set it to 15%, 20%, 25%, etc. And I think it would be better if you could set it to 15%, 16%, 17%, etc. So by 1%. Or maybe even more precise by 0.1%

    In other settings you use pixels so it’s precise at it can be but I don’t understand why in this setting the precision is limited to 5%.

    Thanks.

    #154792
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    GP uses the unsemantic grid system: http://unsemantic.com/

    So we only have the percentages they offer.

    That being said, there would be waaay too many options if we went far enough to include the percentage by 1% or 0.1%.

    Of course, you can alter the CSS to be anything you like.

    Say you have it set to 25%, your HTML would be:

    grid-25 for the sidebar

    grid-75 for the content

    Which = 100%.

    So you can alter that CSS like this:

    .grid-25 {
        width: 25%; /* Change to whatever percentage you like */
    }
    
    .grid-75 {
        width: 75%; /* Just make sure the two of them equals 100 */
    }
    #154793
    Ondřej

    Ok, now I understand. Thanks for explanation 🙂

    #154794
    Tom
    Lead Developer
    Lead Developer
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.