ã¯ã¦ãªããã°ã®ãã¼ããèªä½ãã¦ã¿ã
ã¯ã¦ãªããã°ã®ãã¼ããåãã¦ä½ã£ã¦ã¿ãã®ã§ã
åãªãã®ä½ãæ¹ã¿ãããªã®ãç´¹ä»ãã¾ãã
1. ãµã³ãã«ãã¼ããcloneãã
ã¯ã¦ãªããã°ã®ãµã³ãã«ãã¼ããBoilerplateããåå°ã«ãã¦ä½ãã¨ç°¡åã«ä½ããã¨ã®ãã¨ãªã®ã§ããªãã¸ããªãgit clone
ãã¾ãã
git clone git://github.com/hatena/Hatena-Blog-Themes.git
2. boilerplate.lessã®èªåã³ã³ãã¤ã«è¨å®
WinLess使ãã¨ããã好ããªæ¹æ³ã§boilerplate.less
ãèªåã³ã³ãã¤ã«ããããã«è¨å®ãã¦ããã¾ãã
3. 確èªç¨HTMLã®ä½æ
èªåã®ã¯ã¦ãªããã°ãéãã¦ããããã¼ã¸ã¨ã¢ã¼ã«ã¤ããã¼ã¸ãHTMLã§ä¿åãã¾ãã
ä¿åå ´æã¯boilerplate.less
ã¨åãé層ã§ãã
ä¿åããHTMLã®
<link rel="stylesheet" type="text/css" href="/style/e4cc78e04db942fed2f0c078ac7ff1871a94fc7e"/>
ãããªæãã®link
ã¿ã°ã®href
å±æ§ãå¤æ´ãã¦
<link rel="stylesheet" type="text/css" href="boilerplate.css"/>
ã«ãã¦ããã¾ãã
4. ãã¬ãã¥ã¼ã®èªåæ´æ°è¨å®
ãã¬ãã¥ã¼ç¢ºèªã¯Chromeã®Tincrã使ãã¨èªåæ´æ°ãã¦ãããã®ã§æ¥½ã§ãã
éããHTMLã®ä¸ã§Developer Toolséãã¦ããã ãã§CSSãæ´æ°ãããã¨èªåæ´æ°ãã¦ããã¾ãã
â»Developer Toolsãéãã¦ãªãã¨æ´æ°ãããªãã®ã§æ³¨æ
5. Lessãã¡ã¤ã«ãç·¨éãã¦ãã
Developer Toolsã®Elementsã¿ãã¨ãè¦ãªããå種Lessãã¡ã¤ã«ã好ããªããã«ç·¨éãã¦ãã¾ãã
ãã©ã¦ã¶ã®ã¦ã£ã³ãã¦å¹
ã¨ã縮ãããããªããã¬ã¤ã¢ã¦ãå´©ããªãããã«è¦ãªããããã¨è¯ãã§ãã
6. ããã°ã«é©ç¨
ãã¶ã¤ã³è¨å®ç»é¢ã®ãã¶ã¤ã³cssã®ã¨ããã«boilerplate.css
ã®ä¸èº«ãã³ãããã¾ãã
å
ããè¨è¿°ãã¦ããã³ã¼ãã¯åé¤ãã¡ãã£ã¦æ§ãã¾ããã
7. ããã°ã確èª
ããã°ã®ããããã¼ã¸ã»è¨äºãã¼ã¸ã»ã¢ã¼ã«ã¤ããã¼ã¸ã確èªãã¦ã åé¡ãªããããªãå®æã§ãã
追è¨ï¼ã¯ã¦ãªããã°ãã¼ãå¶ä½ã®æå¼ããªãã¦ããã®ããã£ããã§ããâ¦