{"action":"created","issue":{"url":"https://api.github.com/repos/Jarzka/stylefy/issues/14","repository_url":"https://api.github.com/repos/Jarzka/stylefy","labels_url":"https://api.github.com/repos/Jarzka/stylefy/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/Jarzka/stylefy/issues/14/comments","events_url":"https://api.github.com/repos/Jarzka/stylefy/issues/14/events","html_url":"https://github.com/Jarzka/stylefy/issues/14","id":307118468,"number":14,"title":"with-classes deprecated","user":{"login":"fwaddle","id":4109161,"avatar_url":"https://avatars1.githubusercontent.com/u/4109161?v=4","gravatar_id":"","url":"https://api.github.com/users/fwaddle","html_url":"https://github.com/fwaddle","followers_url":"https://api.github.com/users/fwaddle/followers","following_url":"https://api.github.com/users/fwaddle/following{/other_user}","gists_url":"https://api.github.com/users/fwaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/fwaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwaddle/subscriptions","organizations_url":"https://api.github.com/users/fwaddle/orgs","repos_url":"https://api.github.com/users/fwaddle/repos","events_url":"https://api.github.com/users/fwaddle/events{/privacy}","received_events_url":"https://api.github.com/users/fwaddle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-21T04:38:18Z","updated_at":"2018-03-21T23:48:02Z","closed_at":null,"author_association":"NONE","body":"Hi, I'm trying to create set of styles and I really don't want to 'pollute' my code with styles and classes so I really liked that with-classes existed. \r\nIt however is deprecated and I'm not even sure I'm using it correctly.\r\n\r\nI was hoping to do something like this:\r\n```\r\n(def active-cell {:stylefy/sub-styles {:typeA {:background-color \"white\"\r\n                                               ::stylefy/with-classes [\"mb-2\" \"btn\" \"btn-block\"]}\r\n```\r\n\r\nAnd later on:\r\n```\r\n(defn all-cells []\r\n  [:a (use-sub-style active-cell :typeA {:href ....})\r\n    [:h5 \"Blah Blah cell\"]])\r\n```\r\n\r\nSo hoping to avoid having to do this:\r\n```\r\n(defn all-cells []\r\n  [:a (use-sub-style active-cell :typeA {:href \".....\"  :class \"mb-2 btn btn-block\"})\r\n    [:h5 \"Blah Blah cell\"]])\r\n```\r\n\r\nThis is not the best example because I'm already having to do a :href but I have a tonne of other places I don't do anything except classes and inline styles. \r\n\r\nIs there anything I can do to avoid having to use :class ?\r\n"},"comment":{"url":"https://api.github.com/repos/Jarzka/stylefy/issues/comments/375132490","html_url":"https://github.com/Jarzka/stylefy/issues/14#issuecomment-375132490","issue_url":"https://api.github.com/repos/Jarzka/stylefy/issues/14","id":375132490,"user":{"login":"fwaddle","id":4109161,"avatar_url":"https://avatars1.githubusercontent.com/u/4109161?v=4","gravatar_id":"","url":"https://api.github.com/users/fwaddle","html_url":"https://github.com/fwaddle","followers_url":"https://api.github.com/users/fwaddle/followers","following_url":"https://api.github.com/users/fwaddle/following{/other_user}","gists_url":"https://api.github.com/users/fwaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/fwaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fwaddle/subscriptions","organizations_url":"https://api.github.com/users/fwaddle/orgs","repos_url":"https://api.github.com/users/fwaddle/repos","events_url":"https://api.github.com/users/fwaddle/events{/privacy}","received_events_url":"https://api.github.com/users/fwaddle/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T23:48:02Z","updated_at":"2018-03-21T23:48:02Z","author_association":"NONE","body":"One other thing that's bugging me related to classes is the inability for you to create a class that inherits other classes. \r\n\r\nSomething like this would be perfect:\r\n```\r\n(stylefy/class \"blah\" {:class \"col-sm-12 col-md-5 col-lg-5\"})\r\n\r\n[:div.blah ....]\r\n```\r\n\r\nI'm trying to avoid having to have things like this everywhere:\r\n```\r\n[:div.col-sm-12.col-md-5.col-lg-5.standard-background .....]\r\n```\r\nDo you think there is anything in CSS that would prevent us from writing something like that?"}}
{"actor":{"display_login":"fwaddle"}}