{"name":"basscss-ui-utility-groups","version":"0.0.2","description":"UI group utilities module for Basscss","repository":{"type":"git","url":"https://github.com/jxnblk/basscss-ui-utility-groups.git"},"keywords":["CSS","OOCSS","Basscss","Rework"],"author":{"name":"Brent Jackson"},"license":"MIT","bugs":{"url":"https://github.com/jxnblk/basscss-ui-utility-groups/issues"},"homepage":"https://github.com/jxnblk/basscss-ui-utility-groups","_id":"basscss-ui-utility-groups@0.0.2","dist":{"shasum":"1afc770745f5e3b0a1e007cc53c3f1ae7bcf397b","tarball":"http://registry-npm.ywwl.com/basscss-ui-utility-groups/download/basscss-ui-utility-groups-0.0.2.tgz","integrity":"sha512-hai9rJJrzSBB4jk+XBIVSwPC2fJPmqLzgBgd2RHbcxja0x1ApSy35bO3wIKCADF1Q5VbouiANJx7itQzlmmEmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCF7RVSfIVhtaz5b+nMAe6f/fTlEQYn9YXsoXZNwoytMAIhAN+tpfhf6ctCrxS2zYCXYjSIkC+w/ZaXtO8cJ5LZHGYP"}],"size":1212,"noattachment":false,"key":"/basscss-ui-utility-groups/-/basscss-ui-utility-groups-0.0.2.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jxnblk","email":"jxnblk@gmail.com"},"maintainers":[{"name":"jxnblk","email":"jxnblk@gmail.com"}],"directories":{},"readme":"# Basscss UI Utility Groups\n\nUI group utilities module for Basscss - http://basscss.com\n\nUse group utilities for fine-grained control over visually grouping buttons, form fields, and other elements.\n\n## Button Groups\nButton groups allow for more flexibility in establishing gestalt and controlling information density.\nUse a combination of layout utilities and color extensions to create button groups.\nThe utilities `.rounded-left`, `.rounded-right`,\nand `.not-rounded` can be used to override button and form field border radii.\n\n```html\n<div class=\"inline-block clearfix\">\n  <button type=\"button\" class=\"left button rounded-left is-active\">Burgers</button>\n  <button type=\"button\" class=\"left button border-left not-rounded\">Fries</button>\n  <button type=\"button\" class=\"left button border-left rounded-right\">Shakes</button>\n</div>\n```\n\nNormally, buttons with borders would double up when placed next to each other.\nThe `.x-group-item` utility adjusts negative margins and focus states to visually collapse borders.\nFunctionally, this is similar to how other frameworks handle button and form input groups,\nbut with more direct control over styling.\n\n```html\n<div class=\"inline-block clearfix\">\n  <button type=\"button\" class=\"left button x-group-item rounded-left\">Burgers</button>\n  <button type=\"button\" class=\"left button-outline x-group-item not-rounded\">Fries</button>\n  <button type=\"button\" class=\"left button-outline x-group-item rounded-right\">Shake</button>\n</div>\n```\n\nUse `.y-group-item` to group elements vertically.\n\n```html\n<div class=\"inline-block\">\n  <button type=\"button\" class=\"block full-width button y-group-item rounded-top\">Burgers</button>\n  <button type=\"button\" class=\"block full-width button-outline y-group-item not-rounded\">Fries</button>\n  <button type=\"button\" class=\"block full-width button-outline y-group-item rounded-bottom\">Shake</button>\n</div>\n```\n\n## Input Groups\n\nInput groups can be created by removing margins, adjusting border radii, and using the group utilities.\nThe `.hide` utility visually hides labels, while keeping them accessible to screen readers.\n\n```html\n<form class=\"sm-col-6\">\n  <label class=\"hide\">Pancakes</label>\n  <input type=\"text\" class=\"block full-width mb0 field-light rounded-top y-group-item\" placeholder=\"Pancakes\">\n  <label class=\"hide\">Making</label>\n  <input type=\"password\" class=\"block full-width mb0 field-light not-rounded y-group-item\" placeholder=\"Making\">\n  <label class=\"hide\">Bacon</label>\n  <input type=\"text\" class=\"block full-width field-light rounded-bottom y-group-item\" placeholder=\"Bacon\">\n  <button type=\"submit\" class=\"button\">Pancake</button>\n</form>\n```\n\nThe grid system can be used to control button or input group widths.\n\n```html\n<form class=\"clearfix\">\n  <label class=\"hide\">Bacon</label>\n  <input type=\"text\" class=\"col col-4 md-col-5 mb0 field-light rounded-left x-group-item\" placeholder=\"Bacon\">\n  <label class=\"hide\">Pancakes</label>\n  <input type=\"password\" class=\"col col-4 md-col-5 mb0 field-light not-rounded x-group-item\" placeholder=\"Pancakes\">\n  <button type=\"submit\" class=\"col col-4 md-col-2 button rounded-right\">Pancake</button>\n</form>\n```\n\n","publish_time":1419454408310,"_cnpm_publish_time":1419454408310,"dist-tags":{"latest":"1.0.1"}}