DigitalOcean provides cloud products for every stage of your journey. Get started with $200 in free credit! With more people than ever writing in Sass, it bears some consideration how we format it. CSS style guides are common, so perhaps we can extend those to cover choices unique to Sass. Here are some ideas that Iâve been gravitating toward. Perhaps they are useful to you or help you formulate i
ã¿ãªãã¾ããã«ã¡ãã Webãµã¤ãé«éåãSCSSã®é£è¼ãæ¸ãã¦ããéä¸ã§ãã ããããã°Google Readerãçµäºããã¨ã®ãã¨ã§ã¨ã¦ãæ®å¿µã§ããã èªè ã®ã¿ãªãã¾ã次ã®å¼ã£è¶ãå ãã¼ã«æ¢ãã§å¿ããã¨ããã ã¨æãã¾ãã ããã§ãã¯ã©ã¹ã¡ã½ããéçºããã°ã®RSSãå¿ããã«ç»é²ããé¡ããã¾ãã ã¨ã¦ãæ´æ°é »åº¦ã®é«ãããã°ã¨ãããã¨ãããããããããªåãå£ã®RSSãç¨æãã¦ãã¾ãã æ¬é¡ ããã§ã¯æ¬é¡ã§ãããã¬ã¤ã¢ã¦ãç³»ã®CSSãã¬ã¼ã ã¯ã¼ã¯ã£ã¦è²ã ããã¾ãããã å人çã«ã¯HTMLä¸ã®ã¯ã©ã¹ã«ãã¾ãæå³ã®ãªãæååã¯å ¥ããããªãã®ã§ä½¿ã£ã¦ãã¾ããã§ãããHTMLãç·¨éããªããã°ãªããªãã®ã§ã ãµã¨Sass/SCSSã§ExtendãããMixinsã§å¶å¾¡ã§ãããã®ã§ããã°ç¡é§ãªã¯ã©ã¹æå®ãæ¸ããã¦å¯å¤ã§ã¬ã¹ãã³ã·ããªã°ãªããå¶å¾¡ãã§ããããããªããæã£ã¦æ¢ãã¦ã¿ããè²ã ã¨ããã¾ããã æå
ã³ã¼ãã¼å¿ è¦ãSCSSã»Compassã§éçºå¹çã¢ããï½Retina Display対å¿CSS Spriteç·¨ ã¯ããã« ç¹ã«å¯ãä»æ¥ãã®é ã§ããèªè ã®çæ§ã¯å æ°ã«ãéããã§ããããï¼ 2æã®ãªã¢å ã¤ãã³ãã¨ããã°ãã¬ã³ã¿ã¤ã³ã§ããï¼ä¼æ¥æ¦ç¥ï¼ããã¬ã³ã¿ã¤ã³ç¨ã®ãã§ã³ã販売ãããåºãå¢ãã¦ãã¾ããã å¼ç¤¾ã¯ç§èåã¨ããç«å°ã§ããæå¤ãªãã¨ã«æ¢å©è ãå¤ãã®ã§ããªã¢å ççºãããã¨åãç·æ§ã¯å°æ°ã®ããã§ãã ã¡ãªã¿ã«ãã¿ã¼ãã§ã³ã好ãã§ãã æ¬é¡ ä»åã¯å°ãåã«å·çãããã³ã¼ãã¼å¿ è¦ãSCSSã»Compassã§éçºå¹çã¢ããï½ä¾¿å©ãªCSS Spriteå®è£ ç·¨ããçºå±ããã¦SCSSã»Compassã§Retina Displayã«å¯¾å¿ããæ¹æ³ãç´¹ä»ãã¾ãã äºåã«å¿ è¦ãªç¥è ãã®è¨äºã§ã¯ã以ä¸ã®äºåç¥èãå¿ è¦ã«ãªãã¾ãã è¨äºä¸ã§ã解説ãæã¿ã¾ããã詳ããã¯è§£èª¬ã§æ¡å ãã¦ãããã¼ã¸ãåèã«ãã¦ãã ã
Sass 㯠ãã¤ãã£ãé¢æ° ã®ã»ãã«ã@function ãã£ã¬ã¯ãã£ã ã使ã£ã¦ã«ã¹ã¿ã é¢æ°ãèªç±ã«å®ç¾©ãããã¨ãã§ãã¾ããåãããå ±æãåå©ç¨ã®ãããããã®ãä½ãã¹ã試è¡é¯èª¤ãã¦ãã¾ãããããã§ã¯ãã®ãã¡æè¿è©¦ãã¦ããããã¤ãã®ãã¿ã¼ã³ã«ã¤ãã¦æ¸ãã¦ã¿ã¾ããããæè¦æ±ãã æ¥é è¾ attr() ã calc() ãªã© CSS ã®ãã¤ãã£ãé¢æ°ã percentage() ã type-of() ã¨ãã£ã Sass ã®ãã¤ãã£ãé¢æ°ã¨ååãè¡çªããã®ãé²ããããã«ã¹ã¿ã é¢æ°ã®é¢æ°åã«æ¥é è¾ãã¤ãããã¨ãæ¤è¨ãã¦ãã¾ããç¾è¡ã® CSS/Sass ã ãã§ã¯ãªãå°æ¥è¿½å ãããæ°ãããã¤ãã£ãé¢æ°ãèæ ®ããã¨ãã¯ãä½ããã®å¯¾çããã¦ããããã¨ããã§ãæ¥é è¾ã¯ç¾å®çãªè§£ã§ããããã«æãã¾ããSass ãªãã¡ã¬ã³ã¹ã® é¢æ°ãã£ã¬ã¯ãã£ãã®é ã§ã以ä¸ã®ããã«æ¥é è¾ã®æ¡ç¨ãå§ãã¦ãã¾ã: It is
ã¯ããã« ä»åãããããã«ä½¿ããSCSSå ¥éã·ãªã¼ãºãããã¿ã¤ãã«ãå¤ãã¦SCSSã»Compassã使ã£ãã³ã¼ãã¼åãéçºå¹çã¢ãããã¯ããã¯ãç´¹ä»ãã¦ããã¾ãï¼ã·ãªã¼ãºã¯ç¶ãã¾ãï¼ã ä»åä½æãããµã³ãã« ãã®ãµã³ãã«ã¯githubã§é å¸ãã¦ãã¾ãããã¦ã³ãã¼ããã¦ã½ã¼ã¹ãªã©ã確èªãã ããã åä½ããHTMLãµã³ãã«ã¯ãã¡ãã§ãã CSS Spriteã£ã¦ï¼ CSS Spriteã«ã¤ãã¦ã復ç¿ãã§ãã ç°¡åã«è¨ãã¨ç»åããã£ã¤ãã¦CSSã®backgroud-positionã§è¡¨ç¤ºãå¶å¾¡ãããã¯ããã¯ã§ãã CSS Spriteã®ã¡ãªãã ç»åããã£ã¤ãããã¨ã«ãã£ã¦HTTPãªã¯ã¨ã¹ãæ°ã®åæ¸ ãã¦ã¹ãªã¼ãã¼ãªã©ã§è¡¨ç¤ºãåãæ¿ãããã¹ã ã¼ãºï¼åå¥ã«ç»åãèªã¿è¾¼ãã§ããå ´åãåãæ¿ãã£ãã¨ãã«èªã¿è¾¼ã¿ãçºçãã¾ãï¼ CSSã®ã¿ã§ãã¿ã³ãªã©ã®ã¢ãã©ã¼ãã³ã¹ãåãæ¿ãããã¨ãã§ãã CSS Sp
ç¥ã£ã¦ãéãã§ã¡ãã£ã¨ã¾ã¨ãã¦ããã¾ãããLESSãSass+CompassãStylusãã³ã³ãã¤ã«ã§ããå種ãã¼ã«ã§ãï¼ãããã®Mixinséãªããã¯å ¥ãã¦ãã¾ããï¼ãä¸ã«ã¯ãHTMLã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ãªããããããã¦ã³ã³ãã¤ã«ã§ããã®ãå«ã¾ãã¦ãã¾ããä½ãã®ãåèã«ãªãã°ã GUIã§ã©ãã«ããããããªã㸠1. CodeKit CodeKitã¯ãæåã®ã¢ããªã±ã¼ã·ã§ã³ã§OS Xã§ãã使ãã¾ããã対å¿ãã¦ããããªããã»ããµããã³ãã¬ã¼ãã¨ã³ã¸ã³ã®ç¨®é¡ã¯å§åçã«å¤ãã®ãç¹å¾´ã§ããã¨ãããã使ããããªãã®ããããã¨ãLESSãSass/Compassï¼ã¨ãã®mixinã§ããBourbonï¼ãStylusã¨ãã£ãCSSããªããã»ããµã®é¡ãIEã®4095åã»ã¬ã¯ã¿ã®åé¡ãåé¿ããBlessãããã¦Hamlã«Jadeã«Slimã¨ãã£ããã³ãã¬ã¼ãã¨ã³ã¸ã³ãCoffeeScriptã«Node.
å°ãªãæéã¨ç¥èã§ãããªãã«è¦ããããºã«ããã¶ã¤ã³ãã¯ãã㯠with Sass / Compass (English Version) https://speakerdeck.com/ken_c_lo/zurui-design-technique-english-version 第ä¸åâ¦
culture27.com 2023 èä½æ¨©. ä¸è¨±è¤è£½ ãã©ã¤ãã·ã¼ããªã·ã¼
ã¯ããã« å£ç¯ã®å¤ãããã§é¢¨éªãã²ãã¦ãã¾ãããï¼åã¯38度ã®ç±ã§ä¼ç¤¾ãä¼ã¿ã¾ãããããããªããã ååã¯ããWebãã¶ã¤ãï¼ã»ã³ã¼ãã¼åããããã«ä½¿ããSCSSå ¥éï½åºç¤ç·¨ãã§GUIã§SCSSã使ããScout.appã®ã¤ã³ã¹ãã¼ã«ããã»ããã¢ããã«ã¤ãã¦ãã¾ãSCSSã®4ã¤ã®ä¸»ãªæ©è½ãå¤æ°ãã宣è¨ãããã¯ã®ãã¹ãããMixinsï¼é¢æ°ï¼ããã»ã¬ã¯ã¿ç¶æ¿ãã«ã¤ãã¦ãç´¹ä»ãã¾ããã ããã§ãä»åã¯GUIãã¼ã«ã®Scout.appã«å梱ããã¦ããCompassã«ã¤ãã¦æ´»ç¨æ¹æ³ãç´¹ä»ãããã¨æãã¾ããCompassã¯ãSCSS使ããªãå¿ é ã®ä¾¿å©ãªãã¬ã¼ã ã¯ã¼ã¯ã§ãã Compass - CSS ãªã¼ãµãªã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã¨ã¯ compassã¯Sassã使ã£ããªã¼ãã³ã½ã¼ã¹ã®CSSãªã¼ãµãªã³ã°ãã¬ã¼ã ã¯ã¼ã¯ã§ãã compassã使ããã¨ã§ãBender PrefixãCSS Spriteãèªå
ã¯ããã« æ©éã§ããã¿ãªãããé»ãç»é¢ï¼ã³ã³ã½ã¼ã«ãã¿ã¼ããã«ï¼ã¯ã好ãã§ããï¼ ã¡ãªã¿ã«åã¯æè¿ãã£ã¨é»ãç»é¢ã«å¯¾ãã¦ããã¤ãã®åªæ使ãããããã«ãªãã¾ãããæç³»çç³»ã§ãã©ã¡ãã§ããªãããã«ä½å¦æ´ã®åã«ã¨ã£ã¦ã¯æ½ãã°æ½ãã»ã©é»ãç»é¢ãã¤ãã¾ã¨ãã¾ããï¼ä»ã§ã¯å¥½ãã§ãããé»ãç»é¢ï¼ ä»åã¯ãããã«ä½¿ããSCSSå ¥éï½åºç¤ç·¨ã¨ãããã¨ã§ããé»ãç»é¢ãªã©è¦ãããªãï¼ãã¨ããããªãã«ããGUIæä½ã ãã§ããã«ä½¿ããã¢ããªã±ã¼ã·ã§ã³ã®ã¤ã³ã¹ãã¼ã«ããSCSSã®åºæ¬çãªå©ç¨æ¹æ³ã«ã¤ãã¦ãå®éã®éçºã«ä½¿ãããã¤ã³ããæ¼ããã¦è§£èª¬ãã¦ããããã¨æãã¾ãã SCSSãè¦ãã¦çç£çã§æ¥½ããWebãµã¤ãå¶ä½ã»ã¢ããªã±ã¼ã·ã§ã³éçºããã¦ããã¾ãããã ã¾ã SCSSãç¥ããªãæ¹åãã«ãSCSSãã£ã¦ï¼ ååã®è¨äºãMedia Queriesã®è¨è¿°ãå°ã楽ã«ãã¦ãããSCSSï¼Sassï¼ Mixinï¼èªä½ï¼ãããã®
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}