{"action":"created","issue":{"url":"https://api.github.com/repos/raphaelgoetter/KNACSS/issues/111","labels_url":"https://api.github.com/repos/raphaelgoetter/KNACSS/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/raphaelgoetter/KNACSS/issues/111/comments","events_url":"https://api.github.com/repos/raphaelgoetter/KNACSS/issues/111/events","html_url":"https://github.com/raphaelgoetter/KNACSS/issues/111","id":60014332,"number":111,"title":"Simplifier la sortie css pour les .grid-n","user":{"login":"eQRoeil","id":1446152,"avatar_url":"https://avatars.githubusercontent.com/u/1446152?v=3","gravatar_id":"","url":"https://api.github.com/users/eQRoeil","html_url":"https://github.com/eQRoeil","followers_url":"https://api.github.com/users/eQRoeil/followers","following_url":"https://api.github.com/users/eQRoeil/following{/other_user}","gists_url":"https://api.github.com/users/eQRoeil/gists{/gist_id}","starred_url":"https://api.github.com/users/eQRoeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eQRoeil/subscriptions","organizations_url":"https://api.github.com/users/eQRoeil/orgs","repos_url":"https://api.github.com/users/eQRoeil/repos","events_url":"https://api.github.com/users/eQRoeil/events{/privacy}","received_events_url":"https://api.github.com/users/eQRoeil/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-05T20:54:25Z","updated_at":"2015-03-06T08:54:54Z","closed_at":"2015-03-06T08:53:49Z","body":"Bonjour Raphaël,\r\nà la lecture  de la version css j'ai trouvé qu''il y avait beaucoup de répétition des propriétés flexbox.\r\nPour chaque version de grid-n il y a\r\n\r\n~~~\r\ndisplay: -webkit-box;\r\ndisplay: -webkit-flex;\r\ndisplay: -ms-flexbox;\r\ndisplay: flex;\r\n-webkit-box-orient: horizontal;\r\n-webkit-box-direction: normal;\r\n-webkit-flex-direction: row;\r\n-ms-flex-direction: row;\r\nflex-direction: row;\r\n-webkit-flex-wrap: wrap;\r\n-ms-flex-wrap: wrap;\r\nflex-wrap: wrap;\r\nmargin-left: -1em;\r\n~~~\r\n\r\n__Dans la cas où__ gzip est utilisé, c'est pas vraiment gênant niveau perf...\r\nEn revanche, cela rend la lecture pas très agréable.\r\n__Si des gens lisent encore le css généré__ , il pourrait être préférable de ne pas \"sortir\" tout ça, en modifiant un peu le mixin.\r\nAvantage : code généré plus light\r\nInconvénient (de ma proposition rapide) : une classe supplémentaire\r\n\r\nMa proposition : quelle que soit la grille que l'on souhaite utiliser écrire\r\n\r\n~~~\r\n<div class=\"grid grid-2\"> ... </div>\r\n~~~\r\nainsi ```.grid-2``` ``` .grid-3``` etc. n'ont pas besoin de règles, seules subsistent les ```.grid-2 > * ```\r\n\r\nJ'ai créé un pen à partir du tien avec la modif du mixin en Sass : \r\n\r\nhttp://codepen.io/anon/pen/emjqLJ\r\n\r\nen LESS :  \r\n\r\nhttp://codepen.io/anon/pen/QwBePL\r\n\r\nC'est un peu l'esprit BEM (pour le modifieur) sans la syntaxe (je sais que tu ne souhaites pas l'utiliser). \r\nJe n'ai testé qu'avec le fork de tes 2 codepen, j'ai pu louper un truc ;-)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/raphaelgoetter/KNACSS/issues/comments/77526101","html_url":"https://github.com/raphaelgoetter/KNACSS/issues/111#issuecomment-77526101","issue_url":"https://api.github.com/repos/raphaelgoetter/KNACSS/issues/111","id":77526101,"user":{"login":"eQRoeil","id":1446152,"avatar_url":"https://avatars.githubusercontent.com/u/1446152?v=3","gravatar_id":"","url":"https://api.github.com/users/eQRoeil","html_url":"https://github.com/eQRoeil","followers_url":"https://api.github.com/users/eQRoeil/followers","following_url":"https://api.github.com/users/eQRoeil/following{/other_user}","gists_url":"https://api.github.com/users/eQRoeil/gists{/gist_id}","starred_url":"https://api.github.com/users/eQRoeil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eQRoeil/subscriptions","organizations_url":"https://api.github.com/users/eQRoeil/orgs","repos_url":"https://api.github.com/users/eQRoeil/repos","events_url":"https://api.github.com/users/eQRoeil/events{/privacy}","received_events_url":"https://api.github.com/users/eQRoeil/received_events","type":"User","site_admin":false},"created_at":"2015-03-06T08:54:54Z","updated_at":"2015-03-06T08:54:54Z","body":"\\o/"}}