Syntax (æ§æ) - .sassã¨.scssã®éãã«ã¤ãã¦
è£è¶³
ã¤ã¾ããããããSassã使ãå§ãããªããSCSSã®æ§æï¼ãã¡ã¤ã«å *.scssï¼ã§æ¸ããæ¹ãè¯ãã£ã¦ãã¨ã§ãã
åæãã¼ã¸
http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#syntax
è¶ æ訳
Sassã«ã¯äºã¤ã®æ§æãããã¾ããä¸ã¤ç®ã¯ãSCSSï¼Sassy CSSï¼ã¨ãã¦ç¥ããããã®ããã¥ã¡ã³ããéãã¦ä½¿ããã¦ãããCSS3ã®æ§æãæ¡å¼µãããã®ã§ããå ¨ã¦ã®æå¹ãªCSS3ã¹ã¿ã¤ã«ã·ã¼ãã¯ãSCSSãã¡ã¤ã«ã¨ãã¦ãæå¹ã§ããå ãã¦ãSCSSã¯å¤ãã®CSSããã¯ã¨ãIEã®å¤ããã£ã«ã¿æ§æãªã©ã®ãã©ã¦ã¶åºæã®æ§æã使ãã¾ãããã®æ§æã¯ã以ä¸ã§èª¬æããSassã®æ©è½ã§æ¡å¼µããã¦ãã¾ããSCSSã®æ§æã§æ¸ããããã¡ã¤ã«ã¯ã.scssã®æ¡å¼µåãæã¡ã¾ãã
äºã¤ç®ã¯å¤ãæ§æã§ãã¤ã³ãã³ãæ§æï¼åã«âSassâã¨ãè¨ããã¾ãï¼ã¨ãã¦ç¥ããã¦ãããã®ã§ãCSSãæ¸ãã®ã«ãããç°¡æ½ãªæ¹æ³ãæä¾ãã¾ãããã®æ§æã§ã¯ãã»ã¬ã¯ã¿ã®ãã¹ãã表ãã®ã«ãã«ãã³ãããã¤ã³ãã³ãããããããã£ãåºåãã®ã«ãã»ãã³ãã³ãããæ¹è¡ã使ãã¾ããä¸é¨ã®äººã¯ãSCSSãããããã®æ§æãèªã¿ããããã¾ããéãæ¸ãããã¨ã«æ°ã¥ãã¾ãããã¤ã³ãã³ãæ§æã¯ãSCSSã¨åãæ©è½ãæã£ã¦ãã¾ããããããæ§æãç°ãªã£ã¦ãã¾ããããã®éãã¯ãã¤ã³ãã³ãæ§æã®ãªãã¡ã¬ã³ã¹ã§èª¬æãã¦ãã¾ããã¤ã³ãã³ãæ§æã§æ¸ããããã¡ã¤ã«ã¯ã.sassã®æ¡å¼µåãæã¡ã¾ãã
ã©ã¡ãã®æ§æã§æ¸ãããå ´åã§ãããäºãã«ã¤ã³ãã¼ããããã¨ãå¯è½ã§ãããã¡ã¤ã«ã¯ãsass-convertã³ãã³ãã©ã¤ã³ãã¼ã«ã使ã£ã¦ãèªåçã«ãäºãã«å¤æãããã¨ãå¯è½ã§ãã
# Convert Sass to SCSS $ sass-convert style.sass style.scss # Convert SCSS to Sass $ sass-convert style.scss style.sass
ï¼æ³¨ï¼æ¡å¼µåã§å¤å®ãã¦ããããããã³ãã³ãã©ã¤ã³ãªãã·ã§ã³ã§ãã©ã¼ããããæ示ãããã¨ãå¯è½ã