{"action":"created","issue":{"url":"https://api.github.com/repos/gantry/gantry5/issues/1337","repository_url":"https://api.github.com/repos/gantry/gantry5","labels_url":"https://api.github.com/repos/gantry/gantry5/issues/1337/labels{/name}","comments_url":"https://api.github.com/repos/gantry/gantry5/issues/1337/comments","events_url":"https://api.github.com/repos/gantry/gantry5/issues/1337/events","html_url":"https://github.com/gantry/gantry5/issues/1337","id":158751220,"number":1337,"title":"Can we fine tune Gantry 5 horizontal layout to 1/10th% or to 1/100th% ?","user":{"login":"pintobuck","id":19624047,"avatar_url":"https://avatars.githubusercontent.com/u/19624047?v=3","gravatar_id":"","url":"https://api.github.com/users/pintobuck","html_url":"https://github.com/pintobuck","followers_url":"https://api.github.com/users/pintobuck/followers","following_url":"https://api.github.com/users/pintobuck/following{/other_user}","gists_url":"https://api.github.com/users/pintobuck/gists{/gist_id}","starred_url":"https://api.github.com/users/pintobuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pintobuck/subscriptions","organizations_url":"https://api.github.com/users/pintobuck/orgs","repos_url":"https://api.github.com/users/pintobuck/repos","events_url":"https://api.github.com/users/pintobuck/events{/privacy}","received_events_url":"https://api.github.com/users/pintobuck/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gantry/gantry5/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-06T19:08:22Z","updated_at":"2016-06-07T07:46:47Z","closed_at":null,"body":"This is the discussion so far in the RocketTheme.com forum.\r\n\r\nPintobuck said:\r\n    Gantry 5 layout can adjust particles to a horizontal size in whole 1% increments. That equals about 1/8th of an inch on my page, which leaves some things out of line vertically. It would be very nice to make horizontal adjustments down to 1/10th of a %. Is there a way to do that? When I manually entered a decimal (e.g. 20.1%), Gantry refused to accept it. If it cannot be done now, could RT add this as a development request? \r\n\r\nDjamil Legato said:\r\nWe did have this implementation down to the first decimal of pertentages to have a greater set of layouts to pick from. However we had to revert and keep it limited to the 100 (90 really, 5-95) thicks because the amount of combinations possible otherwise was too big. We would have had to include a greater amount of CSS code also in order to cover every combination. The difficulty on managing the layout from the admin, due to the micro resizing involved, was very confusing and hard.\r\n\r\nIt would be nice if you could open this as an issue in GitHub ( github.com/gantry/gantry5 ) and bring it up to everyone's else attention. Maybe it can be discussed there and if we see that this is a huge request feature we can bring it back to the table.\r\n\r\nI personally always preferred the decimal. It solves a great amount of issues elsewhere too, because right now we are handling a few cases, like 33.3, 16.6, 14.2, 12.5..., as special and leave everything else integer, which I never personally felt very consistent.\r\nOn the other hand I also recognize that the micro-tuning would be very cumbersome and clumsy, the usual use case is to always use whole numbers and with the decimals integration it was very hard to reach the correct % due to the many extra steps you now have in between.\r\n\r\nAre you trying to apply this to the whole site or are you seeing yourself needing this in just a very specific case scenario?\r\nAlso note that you can always tweak this behavior on frontend with some CSS, in case you are interested in just that let us know and we can provide extra help for it.\r\n\r\nPintobuck said I'm applying to a Gantry 5 template for the whole site."},"comment":{"url":"https://api.github.com/repos/gantry/gantry5/issues/comments/224205281","html_url":"https://github.com/gantry/gantry5/issues/1337#issuecomment-224205281","issue_url":"https://api.github.com/repos/gantry/gantry5/issues/1337","id":224205281,"user":{"login":"mahagr","id":854915,"avatar_url":"https://avatars.githubusercontent.com/u/854915?v=3","gravatar_id":"","url":"https://api.github.com/users/mahagr","html_url":"https://github.com/mahagr","followers_url":"https://api.github.com/users/mahagr/followers","following_url":"https://api.github.com/users/mahagr/following{/other_user}","gists_url":"https://api.github.com/users/mahagr/gists{/gist_id}","starred_url":"https://api.github.com/users/mahagr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahagr/subscriptions","organizations_url":"https://api.github.com/users/mahagr/orgs","repos_url":"https://api.github.com/users/mahagr/repos","events_url":"https://api.github.com/users/mahagr/events{/privacy}","received_events_url":"https://api.github.com/users/mahagr/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T07:46:46Z","updated_at":"2016-06-07T07:46:46Z","body":"The main issue why we decided to go for full percentages only (with few exceptions of 1/3, 1/6 etc) is the exponential number of CSS rules needed to make it to work. Right now we have 97 rules, but with 0.1% resolution we would need at least 900 rules. We thought about dynamically creating only the needed rules, but that doesn't work either as some of the blocks may collapse and widths would be dynamically recalculated.\r\n\r\nIn the future when all the supported browsers support flexbox (eg. when we drop support for IE9 and Android 4.4 browser), we can easily drop percentages and take full advantage of flex. Unfortunately neither of them seems to be going away for a while..."}}
{"actor":{"display_login":"mahagr"}}