Sass Color Generator # / %
æ§é ã¯åãã§å¤ãéãCSSã¯ã©ã¹ãããããç¨æããªãã¦ã¯ãããªãã±ã¼ã¹ã«ããã¦ãæåã§ä¸ã¤ãã¤ã³ãããã¦è¨è¿°ãã¦ããã¨ãã¹ãèµ·ããããã管çãç ©éã«ãªã£ã¦ãã¾ãã¾ãããããªã¨ãã¯Sassã使ã£ã¦è²ããã®ä»ã®è¨å®ãä¸ã¶æã«ã¾ã¨ãã¦ãã¾ããããªãã¾ãããªãã¾ãããããã§ããã Sassã®ã³ã¬ã¯ã·ã§ã³ã使ã Sassã§é åã使ãå ´åã¯()ã使ã£ã¦ä¸è¨ã®ããã«è¨è¿°ãã¾ãã $color-list: (#000, #333, #666, #999, #ccc); ãããããã°ã©ãã³ã°è¨èªã®ããã« $color-list[0] ãªã©ã¨ããããã¨ããã§ãããããã ã¨ã¨ã©ã¼ã«ãªã£ã¦ãã¾ãã¾ãã nthé¢æ°ã使ã nthé¢æ°ã¨ããlistã«ã¢ã¯ã»ã¹ããããã®é¢æ°ãç¨æããã¦ãã¾ãã®ã§ããã¡ããå©ç¨ãã¾ãã nth($color-list, 1); ããã§#000ãåå¾ã§ãã¾ããã¤ã³ããã¯ã¹ã¯1çªç®ããã§ãã
ã¯ããã« Sassã®**@mixin**ã¯ã¡ã³ãããã«ãªCSSè¨è¨ã«ãå½¹ç«ã¤å¼·åãªæ©è½ã§ãã ä¸æ¹ã§ããããæ¸ãã¦ãã¾ããããæ°ãã¤ããªãã¨ä¸æ ¼å¥½ãªCSSãç°¡åã«åºåããã¦ãã¾ãã¾ãã ããã§@mixinãèªä½ããã«ããã£ã¦ãç¥ã£ã¦ããããï¼ããããã£ãï¼åºæ¬ç¥èãã¾ã¨ãã¾ãããä½ãã®åèã«ã§ããªãã°å¹¸ãã§ãã åææ¡ä»¶ ã½ã¼ã¹ã³ã¼ãã¯**.scss**å½¢å¼ã§è¨è¿°ãã¦ãã¾ã Sass 3.4.4ã§åä½ã確èªãã¦ãã¾ã 使ç¨ãã¦ããModifierã¨ããåèªã¯ä»¥ä¸ã®éãã§ã BEMã¨å¼ã°ããå½åè¦åã§ä½¿ããããåºæ¬çãªã¹ã¿ã¤ã«ï¼ã»ã¬ã¯ã¿ã»classï¼ã«è¿½å ããå½¢ã§è£ 飾ã調æ´ããclassã®ã㨠ç®æ¬¡ @mixinã®ãããã åºæ¬çãªä½¿ãæ¹ @contentã®ä½¿ãæ¹ Modifierã«ç¡é§ãªã¹ã¿ã¤ã«ãé©ç¨ãããããªã... @contentã使ã£ã¦ã¿ã å¶å¾¡ç¨ã®å¼æ°ãç¨æãã¦ã¿ã å¼æ°ã«é åï¼
SassMeister is a playground for Sass. Add some Sass and SassMeister will show you the rendered CSS.
Chromeã®Developer Toolsã§ã¹ã¿ã¤ã«ã·ã¼ãã®ãããã°ãããã¨ãã«ãã³ã³ãã¤ã«å¾ã®CSSãã¡ã¤ã«ã§ãªãSassã®ãã¡ã¤ã«ã®å ´æã表示ããããã«ããã CSSã½ã¼ã¹ãããã使ãããã ããå¤ãæ å ±ãå¤ãã£ãã®ã§ä»ãããªããã¡ã¢ãCompassã使ç¨ãã¦ããæ³å®ã ç°å¢ OSX 10.9.5 Google Chrome 42 Sass 3.4.13 Compass 1.0.3 sourcemapã®çæ Sassã®ã³ã³ãã¤ã«æã«sourcemapãçæãããã config.rbã«sourcemap = trueã追å ããã ãã sass_options = {:sourcemap => true}ã¨ãsass_options = {:debug_info => true}ã¯ä¸è¦ã ç°å¢è¨å®ã«ãã£ã¦æ¯ãåãã¦ã以ä¸ã®ããã«ç·¨éããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}