Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ç§ãéç¨ãã¦ããWebã¢ã㪠(Perfume Headlineã¨ããã®ããã°ã¨ã) ã§ä½¿ã£ã¦ããã©ã¤ãã©ãªãªã©ãç´¹ä»ãã¾ããã¤ã¾ããæè¿ã¨ã¯æè¿æµè¡ãã¨ããæå³ã§ã¯ãªããããã¾ã§æè¿ç§ã使ã£ã¦ããã¨ããæå³ã«éãã¾ããããããããã ç´¹ä»ããã®ã¯ä»¥ä¸ã®ãã®ã§ãããããã£ã¦ä¸¦ã¹ãã¨ã»ãã¨ã«ããããã®ã½ããã¦ã§ã¢ã«æ¯ãããã¦ãããã¨ããããã¾ãããæè¬ããªãã使ãããã§ããã Webã¢ããªã±ã¼ã·ã§ã³ãã¬ã¼ã ã¯ã¼ã¯ Sinatra ãã¼ã¿ãã¼ã¹ SQLite DataMapper ãã³ãã¬ã¼ãã¨ã³ã¸ã³ Haml Sass Compass ã¢ã»ãã管ç sprockets sprockets-sass sprockets-helpers 管çç¨ã³ãã³ã Thor ããã rufus-scheduler ããã»ã¹èµ·å foreman æ»æ´»ç£è¦ daemontools ããã㤠Git Webãµã¼ã
éçºã³ãã¥ããã£ã®ç¬ç¹ã®é°å²æ°ã«è§¦ãããã¦ãè¯ãä¸æ¥ã§ããã åå åã«æã£ããã¨ã¨ã ã¤ã³ã¿ã¼ã³å ã®Railsãµã¼ãã¹ã¯ãããã³ããSass/Haml ãèªåã¯è¦æ £ãã¦ããªãæãã§ãã Ruby Hiroba ã®P4Dï¼ãã¶ã¤ãã¼åãããã°ã©ã é¨ï¼ã¯ã@machidaããã @ayumikoãããã¹ã¿ãããããã¦ããããã§ããã²åå ãã¦ã¿ããã¨æãã¾ããã åç¥ãè¦ã¦ããåæç¥èã¯ãRubyãSassã¨Compassãªã®ã ãããã¨ããããã¤ããã Ruby ç°å¢ã¯ãããsass/compassã¯ãç¡ç¥ã»ã»ã»ãâåæ¥ã«ãããã¤ã³ã¹ãã¼ã«ãè¦ã¦ããããç解ããã Sass/SCSSå ¥é Compasså ¥é Ruby Hiroba P4D ãããªã«å¯æãã¹ããã«ã¼ãå·®ãç½®ãã¦ãã«ããªã®ã¹ããã«ã¼ã¯æ®å¿µãªãããã§ã«å£²ãåãã ç´ æµã¹ã©ã¤ããå ¬éããã¦ããã®ã§ãæ¬ç·¨ã«ã¤ãã¦ã¯ãã¡ãã«ã¯æ¸ãã¾ããã
Sass ã§é¢æ°ãæ¸ãæ¹æ³ã¯ 2 ã¤ããã¾ããã²ã¨ã¤ã¯ Sass ã® @function ãã£ã¬ã¯ãã£ã ã使ã£ã¦ Sass ãã¡ã¤ã«å ã«å®ç¾©ããæ¹æ³ã $grid-width: 40px; $gutter-width: 10px; @function grid-width ($n) { @return $n * $grid-width + ($n - 1) * $gutter-width; } ç°¡åãã¤ã«ã¸ã¥ã¢ã«ã«æ¸ããåé¢ãå½ç¶ãªãã Sass ã®ãã¤ãã£ãé¢æ°ããã£ã¬ã¯ãã£ãã®å¶éãåããã®ã§ãã§ããªããã¨ãå¤ãã§ããã¨ãã« Sass ã¯æååç³»ã®é¢æ°ããã¾ãç¨æããã¦ããããä¸æºãæãããã¨ãå°ãªãããã¾ããã ããã²ã¨ã¤ã®æ¹æ³ã¯ãRuby ã§ã«ã¹ã¿ã é¢æ°ãæ¸ã㦠Sass ãæ¡å¼µãã ã¨ããæ¹æ³ã§ããRuby ã®ç¥èãå¿ è¦ã§ãã㤠Sass ãã¡ã¤ã«ã«ç´æ¥å®ç¾©ããã®ã¨ã¯éã£ã¦å¥ã
title: scss (sass) + compassãã¹ã¼ãã¼ä¾¿å©ã§ã³ã£ãããããã¦ä»ããç°å¢ãä½ã£ãããKoalaã§ã â»2013.06.19 ã«æ¸ãã Preprops ã Koala ãã便å©ã£ã½ãã§ãã é£ä¼ä¸ã«ãã¼ããä½ããããããããããã¤ãã§ã«scssã£ã¦ã®ã¨compassã£ã¦ã®ããªããã©ãã便å©ã£ã½ãã®ã§ã¡ãã£ã¨èª¿ã¹ã¦ã¿ãã£ããªã ããå§ã¾ã£ã¦ã çµè«ããè¨ãã¨ãçãããã»ã©ä¾¿å©ã§ä»ã¾ã§ã¼ãã¯ä½ããã¦ããã ãã¨ããã¬ãã«ã§ããã ç°å¢ä½ãã®ãå¿ããªãããã«Ï(ï½Ð´Â´)ï¾ï¾ï¾ï¾â¦ ç°å¢ä½ãã®ã¯ã¡ãã£ã¨ããã©ãã§ããããã°ãã¾ãããã â»ä»åã¯å ¨ã¦windows7 x64ç°å¢ã«ãªãã¾ãã compassã¨scssã¯ä½ãã©ãããã®ã è«ãããªãã¡ãããããè¦ãããããã¾ããscssã¯sassã®æ´¾çããããscssã®ã»ãã使ããããã£ãã®ã§ã¼ãã¯ãã¡ããé¸æã compassã¨
æãã¾ãã¦ããã§ã¨ããããã¾ãï¼ä»å¹´ãã©ãããããããé¡ããããã¾ãã 2013 å¹´ã¯ã26 å¹´ã¶ãã« 4 ã¤å ¨ã¦ã®æ°åãç°ãªã£ã¦ããã¿ããã§ãããã¿ãªããã©ã®ãããªãæ£æããéããã§ãããããç§ã¯å¯æ£æã大æºå«ãã¾ããã ãã¦ãWindows ã§ã Mac ã§ã Sass + Compass ç°å¢ãªãã° config.rb ã§è¨å®ãæ¸ããã®ã§ãä»æ¥ã¯ããã«ã¤ãã¦ããSass ã¨ã¯ä½ãï¼ããCompass ã¨ã¯ä½ãï¼ãã¯çãã¾ããã¤ã³ã¹ãã¼ã«ããè¨å®ã楽ãã¦ç£è¦éå§ãããããã Sass + Compass ã使ãã«ã¯ï¼ ã¾ãåºæ¬ã®ã¨ãããä¸å¿ããã£ã¨ï¼ æè¿ã¯ç°¡åãªæ¹æ³ãããããåºã¦ãã¾ãããå°éã«ãããªãã° Rubyï¼ã¨ RubyGemsï¼ãå ¥ãã¦ãSass 㨠Compass ãå ¥ãã¦ãã¨ãªãã¾ãã Ruby + RubyGem ã¤ã³ã¹ãã¼ã« Windows ã ã£ãã RubyFor
å æ¥ã®ããã°ã©ãåããã¶ã¤ã³åå¼·ä¼ã§çºè¡¨ããããå°ãªãæéã¨ç¥èã§âãããªãâã«è¦ããããºã«ããã¶ã¤ã³ãã¯ããã¯ãï¼by 赤å¡ããï¼ã®ä¸ã«æ¸ããã¦ããSassã®MixinãRailsã§ä½¿ããGemã«ãã¦ã¿ã¾ããã zurui-sass-rails: https://github.com/mahm/zurui-sass-rails sample: http://zurui-sample.herokuapp.com/ ããããããï¼ï½ RT @mah_lab: .@ken_c_lo ããã®ãºã«ããã¶ã¤ã³ãGemã«ãã¦ã¿ã¾ããã github.com/mahm/zurui-sas⦠ãµã³ãã«ã¯ãã¡ã zurui-sample.herokuapp.com (based on github.com/machida/Customâ¦) â TAEãã (@ken_c_lo) 11æ 7, 2012 @m
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}