{"action":"created","issue":{"url":"https://api.github.com/repos/manabuyasuda/equip/issues/69","repository_url":"https://api.github.com/repos/manabuyasuda/equip","labels_url":"https://api.github.com/repos/manabuyasuda/equip/issues/69/labels{/name}","comments_url":"https://api.github.com/repos/manabuyasuda/equip/issues/69/comments","events_url":"https://api.github.com/repos/manabuyasuda/equip/issues/69/events","html_url":"https://github.com/manabuyasuda/equip/issues/69","id":168003919,"number":69,"title":"pxをremに変換するSassの関数を追加","user":{"login":"manabuyasuda","id":8683361,"avatar_url":"https://avatars.githubusercontent.com/u/8683361?v=3","gravatar_id":"","url":"https://api.github.com/users/manabuyasuda","html_url":"https://github.com/manabuyasuda","followers_url":"https://api.github.com/users/manabuyasuda/followers","following_url":"https://api.github.com/users/manabuyasuda/following{/other_user}","gists_url":"https://api.github.com/users/manabuyasuda/gists{/gist_id}","starred_url":"https://api.github.com/users/manabuyasuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manabuyasuda/subscriptions","organizations_url":"https://api.github.com/users/manabuyasuda/orgs","repos_url":"https://api.github.com/users/manabuyasuda/repos","events_url":"https://api.github.com/users/manabuyasuda/events{/privacy}","received_events_url":"https://api.github.com/users/manabuyasuda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-28T03:01:33Z","updated_at":"2016-07-28T04:05:52Z","closed_at":null,"body":"remのベースフォントサイズはブレイクポイントと連動して変更できるようにしておく。例えば、\r\n\r\n```scss\r\n$_font-size: (\r\n  'sm': 15px,\r\n  'md': 16px,\r\n) !default;\r\n\r\n@function _rem($px, $key: 'sm') {\r\n  $value: map-get($_font-size, $key);\r\n  @return ($px / $value) * 1rem;\r\n}\r\n\r\nhtml {\r\n  font-size: map-get($_font-size, sm);\r\n  @media (min-width: 768) {\r\n    font-size: map-get($_font-size, md);\r\n  }\r\n}\r\n\r\n.foo {\r\n  font-size: _rem(15px);\r\n  margin-bottom: _rem(30px);\r\n  @media (min-width: 768px) {\r\n    font-size: _rem(16px, md);\r\n    margin-bottom: _rem(32px, md);\r\n  }\r\n}\r\n```\r\n\r\n変換後、\r\n\r\n```css\r\nhtml {\r\n  font-size: 15px;\r\n}\r\n@media (min-width: 768) {\r\n  html {\r\n    font-size: 16px;\r\n  }\r\n}\r\n\r\n.foo {\r\n  font-size: 1rem;\r\n  margin-bottom: 2rem;\r\n}\r\n@media (min-width: 768px) {\r\n  .foo {\r\n    font-size: 1rem;\r\n    margin-bottom: 2rem;\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/manabuyasuda/equip/issues/comments/235795559","html_url":"https://github.com/manabuyasuda/equip/issues/69#issuecomment-235795559","issue_url":"https://api.github.com/repos/manabuyasuda/equip/issues/69","id":235795559,"user":{"login":"manabuyasuda","id":8683361,"avatar_url":"https://avatars.githubusercontent.com/u/8683361?v=3","gravatar_id":"","url":"https://api.github.com/users/manabuyasuda","html_url":"https://github.com/manabuyasuda","followers_url":"https://api.github.com/users/manabuyasuda/followers","following_url":"https://api.github.com/users/manabuyasuda/following{/other_user}","gists_url":"https://api.github.com/users/manabuyasuda/gists{/gist_id}","starred_url":"https://api.github.com/users/manabuyasuda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manabuyasuda/subscriptions","organizations_url":"https://api.github.com/users/manabuyasuda/orgs","repos_url":"https://api.github.com/users/manabuyasuda/repos","events_url":"https://api.github.com/users/manabuyasuda/events{/privacy}","received_events_url":"https://api.github.com/users/manabuyasuda/received_events","type":"User","site_admin":false},"created_at":"2016-07-28T04:05:52Z","updated_at":"2016-07-28T04:05:52Z","body":"pxからemに変換する関数も必要かも。\r\n\r\n```scss\r\n@function _em($self, $parent) {\r\n  @return ($self / $parent) * 1em;\r\n}\r\n```"}}
{"actor":{"display_login":"manabuyasuda"}}