{"issue":{"title":"-pos proposal","user":{"login":"pgherveou","id":521091,"url":"https://api.github.com/users/pgherveou","avatar_url":"https://secure.gravatar.com/avatar/667902f88f1827cbae141f4460a9cf5a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"667902f88f1827cbae141f4460a9cf5a"},"created_at":"2011-12-25T11:58:30Z","milestone":null,"labels":[],"state":"open","updated_at":"2011-12-29T08:55:44Z","id":2654987,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"html_url":"https://github.com/visionmedia/nib/issues/53","body":"Hello TJ\r\nwhat do you think about adding this line of code to the position helper, most of the time when I use fixed or absolute \r\nI fix the top/bottom and stretch the element setting both right and left. \r\n\r\n\r\n```css\r\n\r\n-pos(type, args)\r\n  i = 0\r\n  position: unquote(type)\r\n  {args[i]}: args[i + 1] is a 'unit' ? args[i += 1] : 0\r\n  {args[i += 1]}: args[i + 1] is a 'unit' ? args[i += 1] : 0\r\n  if length(args) > i + 1\r\n    {args[i += 1]}: args[i + 1] is a 'unit' ? args[i += 1] : 0\r\n\r\nbody\r\n  fixed: top 0 right 5px left 5px\r\n\r\n\r\n```","number":53,"url":"https://api.github.com/repos/visionmedia/nib/issues/53","comments":3,"assignee":null},"comment":{"user":{"login":"guybrush","id":306324,"url":"https://api.github.com/users/guybrush","avatar_url":"https://secure.gravatar.com/avatar/e03b90df918b3ee553400c860d1383c7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"e03b90df918b3ee553400c860d1383c7"},"created_at":"2011-12-29T08:55:43Z","updated_at":"2011-12-29T08:55:43Z","id":3299115,"body":"you are right, my `-pos` is really just a quick hack without thinking about it - its only ok for me because i am defining all 4 positions everytime.\r\n\r\nstill +1 for this :D\r\n\r\nmaybe like that?\r\n\r\n    -pos(type, args)\r\n      i = 0\r\n      position: unquote(type)\r\n      {args[i]}: args[i + 1] is a 'unit' ? args[i += 1] : 0\r\n      {args[i += 1]}: args[i + 1] is a 'unit' ? args[i += 1] : 0\r\n      if length(args) > i + 1\r\n        {args[i += 1]}: args[i + 1] is a 'unit' ? args[i += 1] : 0\r\n      if length(args) > i + 1\r\n        {args[i += 1]}: args[i + 1] is a 'unit' ? args[i += 1] : 0","url":"https://api.github.com/repos/visionmedia/nib/issues/comments/3299115"},"action":"created"}