Just browsing Stack Overflow? Help us improve your experience. Sign up for research
Just browsing Stack Overflow? Help us improve your experience. Sign up for research
Sassã®ãã¨ã°ã£ããããã¦ããã§ããã©ãhtml5+α@ç¦å²¡ åå¼·ä¼ã§çããçºè¡¨ããããä»äºã§ä¹ ã ã«sassã°ã£ãã触ã£ã¦ãã®ããããã ã¨æãã¾ãã ãããªSassããå§ãããçç±ã®ä¸ã¤ãCompassã¨ããCSS Frameworkãªãã§ãã 便å©ãªMixinããFunctionãããããã§ããã©ãä¸çªããããã®ãé¢åãªCSS Spriteãèªååã§ãããã¨ã§ããããã ä¾ãã°hogeã¨ãããã£ã¬ã¯ããªã«Spriteãããç»åãæ ¼ç´ãã¦ããã°ã [code] $sprite: sprite-map("hoge/*.png"); [/code] ã§ç»åãçµåãã¦ããã¾ãã ãã¡ã¤ã«ã®çµåã«ã¯ãªãã·ã§ã³ãã¤ãããã¨ã§è²ã ã¨ã§ãã¦ã ä¾ãã°ãåç»åãã¡ã¤ã«ã®ééãããã¦çµåããããã¨ãã¯ã [code] $sprite: sprite-map("hoge/*.png", $spacing:
ããã«ã¡ãã Gaji-Labo ã® @neotag ã§ããä»æ¥ã¯ Less & Sass Advent calendar 2011 ã®24æ¥ç®ã§ãã ã¢ããã³ãã«ã¬ã³ãã¼ã¯ä¹ãé ããã¨ãã¿åãå±éºã§ããã ãã¦ã Compass ã¨ãã Sass ç¨ã® Framework ãããã¾ãã¦ãããããããã便å©ãªã®ã§ã使ãæ¹ãç°¡åãªãã®ãããã¤ã¾ãã§ãç´¹ä»ã§ãã http://compass-style.org/ ã¤ã³ã¹ãã¼ã«æ¹æ³ã¯ä¸è¨ã®ã¨ããã $ gem install compass ç®æ¬¡ sass --watch ã®ãªãã·ã§ã³ãããã¸ã§ã¯ããã¨ã«ç®¡ç ç»åã®é«ãã¨æ¨ªå¹ ãåå¾ Sprite ãèªåçæ éçºç¨CSSã¨ç´åç¨CSSã§ç»åã®èªã¿è¾¼ã¿å ãå¤æ´ãã éçºç¨ã¨æ¬çªç¨ã§è²ã å¤ãã¦ã¿ã â ãã®1 sass --watch ã®ãªãã·ã§ã³ãããã¸ã§ã¯ããã¨ã«ç®¡ç ãã®è¨äºãå ¬éããåã«ç¢ºèª
ã¯ããã« ååã®è¨äºããWebãã¶ã¤ãï¼ã»ã³ã¼ãã¼åããããã«ä½¿ããSCSSå ¥éï½Mixinsãä½ã£ã¦ã¿ããç·¨ããããã«ä½¿ããSCSSå ¥éã·ãªã¼ãºãã§SCSSã»Compassã®ä¸è¬çãªæ©è½ã®ç´¹ä»ããã¦ãã¾ããã ä»åã¯çªå¤ç·¨ã¨ãã¦SCSS, Compassã®è¨å®ãã¡ã¤ã«ã«ã¤ãã¦ç´¹ä»ãããã¨æãã¾ãã è¨å®ãã¡ã¤ã«ã§ä½ããããï¼ Compassã«ã¯ã¹ã¿ã¤ã«ã·ã¼ããJavascriptãç»åã»ãã©ã³ãã«é¢ããå¦çãããã¾ãã ãããã¯åºæ¬çã«è¨å®ãããããªãã¦ãå©ç¨ã§ãã¾ããããµã¼ãã¼ã®ç°å¢ãå©ç¨ããCMSãªã©ã«ãã£ã¦ãã¹ãå¶å¾¡ããå¿ è¦ãããæã«è¨å®ãã¡ã¤ã«ããåºåãããã¹ãå¶å¾¡ãããã¨ãã§ãã¾ãã ã©ããªè¨å®é ç®ããããï¼ æ¬å®¶ã®è¨å®ã«é¢ãããªãã¡ã¬ã³ã¹ã¯ãã¡ããConfiguration Referenceããã¯ãè±èªã§ãã ã§ããããªãªãã¨ãã§ã«æ¥æ¬èªã®è¶ 訳 Configuration
Compassã§ãã¼ã¿URI ã¹ãã¼ã Sassã®æ¡å¼µæ©è½ã§ããCompassãå©ç¨ããã¨CSS ã¹ãã©ã¤ãã ãã§ãªããã¼ã¿URI ã¹ãã¼ã ãç°¡åã«ä½æã§ãã¾ããCompassãããã 次ã®ããã«inline-image()ã§ç»è±¡ãã©ã«ãå ã®base64ã¨ã³ã³ã¼ããããç»è±¡ãæå®ãã¾ãã .dataUriImage{ background-image: inline-image("sprite/a.png"); width:50px; height:50px; } ããããã¨CSSå ã«æ¬¡ã®ããã«ç»è±¡ãbase64ã¨ã³ã³ã¼ãããããã¼ã¿URI ã¹ãã¼ã ã§åºåããã¾ãã .dataUriImage { background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABHNC
Warning: Trying to access array offset on value of type bool in /www/wwwroot/test/index.php on line 149 Warning: Trying to access array offset on value of type bool in /www/wwwroot/test/index.php on line 149 Warning: Trying to access array offset on value of type bool in /www/wwwroot/test/index.php on line 149 Warning: Trying to access array offset on value of type bool in /www/wwwroot/test/index.
This webpage was generated by the domain owner using Sedo Domain Parking. Disclaimer: Sedo maintains no relationship with third party advertisers. Reference to any specific service or trade mark is not controlled by Sedo nor does it constitute or imply its association, endorsement or recommendation.
ã³ã¼ãã¼å¿ è¦ãSCSSã»Compassã§éçºå¹çã¢ããï½Retina Display対å¿CSS Spriteç·¨ ã¯ããã« ç¹ã«å¯ãä»æ¥ãã®é ã§ããèªè ã®çæ§ã¯å æ°ã«ãéããã§ããããï¼ 2æã®ãªã¢å ã¤ãã³ãã¨ããã°ãã¬ã³ã¿ã¤ã³ã§ããï¼ä¼æ¥æ¦ç¥ï¼ããã¬ã³ã¿ã¤ã³ç¨ã®ãã§ã³ã販売ãããåºãå¢ãã¦ãã¾ããã å¼ç¤¾ã¯ç§èåã¨ããç«å°ã§ããæå¤ãªãã¨ã«æ¢å©è ãå¤ãã®ã§ããªã¢å ççºãããã¨åãç·æ§ã¯å°æ°ã®ããã§ãã ã¡ãªã¿ã«ãã¿ã¼ãã§ã³ã好ãã§ãã æ¬é¡ ä»åã¯å°ãåã«å·çãããã³ã¼ãã¼å¿ è¦ãSCSSã»Compassã§éçºå¹çã¢ããï½ä¾¿å©ãªCSS Spriteå®è£ ç·¨ããçºå±ããã¦SCSSã»Compassã§Retina Displayã«å¯¾å¿ããæ¹æ³ãç´¹ä»ãã¾ãã äºåã«å¿ è¦ãªç¥è ãã®è¨äºã§ã¯ã以ä¸ã®äºåç¥èãå¿ è¦ã«ãªãã¾ãã è¨äºä¸ã§ã解説ãæã¿ã¾ããã詳ããã¯è§£èª¬ã§æ¡å ãã¦ãããã¼ã¸ãåèã«ãã¦ãã ã
æãã¾ãã¦ããã§ã¨ããããã¾ãï¼ä»å¹´ãã©ãããããããé¡ããããã¾ãã 2013 å¹´ã¯ã26 å¹´ã¶ãã« 4 ã¤å ¨ã¦ã®æ°åãç°ãªã£ã¦ããã¿ããã§ãããã¿ãªããã©ã®ãããªãæ£æããéããã§ãããããç§ã¯å¯æ£æã大æºå«ãã¾ããã ãã¦ãWindows ã§ã Mac ã§ã Sass + Compass ç°å¢ãªãã° config.rb ã§è¨å®ãæ¸ããã®ã§ãä»æ¥ã¯ããã«ã¤ãã¦ããSass ã¨ã¯ä½ãï¼ããCompass ã¨ã¯ä½ãï¼ãã¯çãã¾ããã¤ã³ã¹ãã¼ã«ããè¨å®ã楽ãã¦ç£è¦éå§ãããããã Sass + Compass ã使ãã«ã¯ï¼ ã¾ãåºæ¬ã®ã¨ãããä¸å¿ããã£ã¨ï¼ æè¿ã¯ç°¡åãªæ¹æ³ãããããåºã¦ãã¾ãããå°éã«ãããªãã° Rubyï¼ã¨ RubyGemsï¼ãå ¥ãã¦ãSass 㨠Compass ãå ¥ãã¦ãã¨ãªãã¾ãã Ruby + RubyGem ã¤ã³ã¹ãã¼ã« Windows ã ã£ãã RubyFor
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}