{"action":"created","issue":{"url":"https://api.github.com/repos/ericam/susy/issues/283","labels_url":"https://api.github.com/repos/ericam/susy/issues/283/labels{/name}","comments_url":"https://api.github.com/repos/ericam/susy/issues/283/comments","events_url":"https://api.github.com/repos/ericam/susy/issues/283/events","html_url":"https://github.com/ericam/susy/issues/283","id":25530226,"number":283,"title":"Question regarding remove-omega","user":{"login":"jordanegstad","id":1032348,"avatar_url":"https://avatars.githubusercontent.com/u/1032348?v=3","gravatar_id":"","url":"https://api.github.com/users/jordanegstad","html_url":"https://github.com/jordanegstad","followers_url":"https://api.github.com/users/jordanegstad/followers","following_url":"https://api.github.com/users/jordanegstad/following{/other_user}","gists_url":"https://api.github.com/users/jordanegstad/gists{/gist_id}","starred_url":"https://api.github.com/users/jordanegstad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordanegstad/subscriptions","organizations_url":"https://api.github.com/users/jordanegstad/orgs","repos_url":"https://api.github.com/users/jordanegstad/repos","events_url":"https://api.github.com/users/jordanegstad/events{/privacy}","received_events_url":"https://api.github.com/users/jordanegstad/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-01-13T21:36:06Z","updated_at":"2015-04-29T22:14:05Z","closed_at":"2014-01-14T06:00:28Z","body":"When using Susy's `at-breakpoint` mixin, I've run into a curious difficulty that you may be able to (hopefully easily) help with.\r\n\r\nTo illustrate an example, let's say that I start off with the following code:\r\n\r\n```\r\n.example {\r\n    @include span-columns(1);\r\n        \r\n    // margin: 0, float: right;\r\n    &:nth-child(2n) { @include omega; }\r\n\r\n    @include at-breakpoint(30em 4) {\r\n        @include span-columns(1, 4);\r\n        &:nth-child(4n) { @include omega; }\r\n\r\n        // float and margins replaced\r\n        &:nth-child(2n) { @include remove-omega; }\r\n    }\r\n}\r\n```\r\n\r\nAll that is fine and good. **Note that I reinstated the margins and float to `nth-child(2n)`.**  Then I decide to add another media query that looks something like:\r\n\r\n```\r\n@include at-breakpoint($tablet 6) {\r\n    @include span-columns(1, 6);\r\n    &:nth-child(4n) { @include remove-omega; }\r\n    &:nth-child(6n) { @include omega; }\r\n}\r\n```\r\n\r\nHere is where I run into the problem. The above media-query partly works, however, where it falls short is that it doesn't cary over the `&:nth-child(2n) { @include remove-omega; }`– instead, it only removes the `4n`. So by the end of my media queries, my code looks something like this:\r\n\r\n```\r\n@include at-breakpoint($huge 12) {\r\n    @include span-columns(1, 12);\r\n        &:nth-child(2n) { @include remove-omega; }\r\n        &:nth-child(4n) { @include remove-omega; }\r\n        &:nth-child(6n) { @include remove-omega; }\r\n        &:nth-child(8n) { @include remove-omega; }\r\n        &:nth-child(12n) { @include omega; }\r\n}\r\n```\r\n\r\nMy question here is this: **Is there a way to use the `remove-omega` function without having to repeat myself time and time again?** "},"comment":{"url":"https://api.github.com/repos/ericam/susy/issues/comments/97603243","html_url":"https://github.com/ericam/susy/issues/283#issuecomment-97603243","issue_url":"https://api.github.com/repos/ericam/susy/issues/283","id":97603243,"user":{"login":"landitus","id":239215,"avatar_url":"https://avatars.githubusercontent.com/u/239215?v=3","gravatar_id":"","url":"https://api.github.com/users/landitus","html_url":"https://github.com/landitus","followers_url":"https://api.github.com/users/landitus/followers","following_url":"https://api.github.com/users/landitus/following{/other_user}","gists_url":"https://api.github.com/users/landitus/gists{/gist_id}","starred_url":"https://api.github.com/users/landitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landitus/subscriptions","organizations_url":"https://api.github.com/users/landitus/orgs","repos_url":"https://api.github.com/users/landitus/repos","events_url":"https://api.github.com/users/landitus/events{/privacy}","received_events_url":"https://api.github.com/users/landitus/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T22:14:05Z","updated_at":"2015-04-29T22:14:05Z","body":"Is there a good way to reset the \"last\" mixin? Is there a better way to change the column count between breakpoints? I can't figure out wether I'm missing something but I'm in the need to reset the column count in order to get proper gutters. Or maybe my approach is wrong?\r\n\r\n```\r\n@include susy-breakpoint(#{map-get($breakpoints, \"small\")}, $susy) {\r\n    \t@include span(6 of 12);\r\n\t\t&:nth-child(2n) {\r\n\t\t\t@include last;\r\n\t\t}\r\n  \t}\r\n\t@include breakpoint(#{map-get($breakpoints, \"medium\")}, $susy) {\r\n    \t@include span(3 of 12);\r\n    \t&:nth-child(2n) {\r\n\t\t\t@include remove-last;\r\n\t\t}\r\n\t\t&:nth-child(4n) {\r\n\t\t\t@include last;\r\n\t\t}\r\n  \t}\r\n```"}}