Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
SASSã³ã³ãã¤ã©ãLibSassããDartSassã«ç§»è¡ããçµç·¯ã¨æé ã«ã¤ãã¦è§£èª¬ãã¾ãã è¨äºã®ä¸ã§æ³¨æç¹ãåå空éã®å¹²æ¸ã®èª¿æ´ãé¤ç®ã®å¤æ´ã«ã¤ãã¦ã詳ãã説æãã¦ããããã 移è¡ãèãã¦ããæ¹ãã¨ã©ã¼ã«å°ã£ã¦ããæ¹ã«åèã«ãªãå 容ã§ãã 詳細ã¯ä¸è¨ãã確èªãã ããã è¦ç´ LibSassãå ¬å¼ã§éæ¨å¥¨ã¨ãªã£ãããDartSassã¸ç§»è¡åå空éã®å®è£ ãé¤ç®ã®è¨æ³å¤æ´ãªã©ã«æ³¨æ çµç·¯ Webããã¢ã¼ã·ã§ã³ç 究室ã®ããã³ãã¨ã³ããã¼ã ã§ã¯ä»ã¾ã§ã«SASS(SCSSï¼ã®ã³ã³ãã¤ã«ã«LibSassã使ç¨ãã¦ãã¾ããããããLibSassã2020å¹´10æããå ¬å¼ã§ãéæ¨å¥¨ã¨ãªã£ããããDartSassã¸ã®ç§»è¡ãé 次é²ãããã¨ã¨ãªãã¾ããã å¼ç¤¾æ¡ç¨ãµã¤ãï¼recruit.gmo.jpï¼ã§DartSassã¸ã®ç§»è¡ä½æ¥ãè¡ãã¾ããã®ã§ãå¤æ´ç¹ãå°ã£ããã¨ã«ã¤ãã¦ã¾ã¨ãã¾ãã æé 1. gulp
Sassã§ãã¡ã¤ã«ãå¼ã³åºãéã«ä½¿ã£ã¦ãã@importã¯å»æ¢ãããäºå®ã§ãã¦ã代ããã«ã@useãã@forwardãã使ãããã«æ¨å¥¨ããã¦ãã¾ããèªåãéãè °ãä¸ãã¦@useã使ã£ã¦ã¿ã¾ããã ï¼â» Googleæ¥æ¬èªç¿»è¨³ï¼ Dart Sassã¨LibSassã®ä¸¡æ¹ãã¢ã¸ã¥ã¼ã«ã·ã¹ãã ã®ãµãã¼ããéå§ãã¦ãã1å¹´å¾ãã¾ãã¯Dart Sassãã¢ã¸ã¥ã¼ã«ã·ã¹ãã ã®ãµãã¼ããéå§ãã¦ãã2å¹´å¾ã®ããããæ©ãæ¹ï¼é ãã¨ã2021å¹´10æ1æ¥ï¼ã«ã@importã°ãã¼ãã«ã³ã¢ã©ã¤ãã©ãªé¢æ°å¼ã³åºãã¨åæ§ã«éæ¨å¥¨ã«ãªãã¾ããããã¯ã¢ã¸ã¥ã¼ã«ãéãã¦ä½ããã¨ãã§ãã¾ãã ãã®éæ¨å¥¨ãçºå¹ãã¦ãã1å¹´å¾ï¼ é ãã¨ã2022å¹´10æ1æ¥ï¼ã@importã»ã¨ãã©ã®ã°ãã¼ãã«æ©è½ã®ãµãã¼ããå®å ¨ã«çµäºãã¾ããããã«ã¯ããã¹ã¦ã®å®è£ ã®ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ãªãªã¼ã¹ãå«ã¾ãã¾ãã https://sass-la
ããã«ã¡ã¯ã Eight 㧠ã¨ã³ã¸ãã¢ããã¦ãã鳥山ï¼@pvcresinï¼ã§ãã éãéãã¨èªåã«è¨ãèããã¦ãã¾ãããããããè±ç²çã«ãªã£ã¦ãã¾ãã¾ãã 𥺠å¨å® å¤åã§è¯ãã£ãã§ãã ä»å㯠Sass ã®ã³ã³ãã¤ã«ã«ä½¿ç¨ãã¦ããã©ã¤ãã©ãªã node-sassï¼LibSassï¼ãã sassï¼Dart Sassï¼ã«ç§»è¡ãã話ããããã¨æãã¾ãã Sass å®è£ ä¸é士 Sass ã®å®è£ ã¨ãã¦ã¯ã以ä¸ã® 3 ã¤ãããã¾ãã Ruby Sass LibSass Dart Sass ã¾ãã¯ç§»è¡ä½æ¥ã®è©±ã®åã«ãåå®è£ ã«ã¤ãã¦ç°¡åã«æ¯ãè¿ã£ã¦ã¿ããã¨æãã¾ãã Ruby Sass Ruby Sass 㯠Sass ã®æåã®å®è£ ã§ããã çºè¡¨ããã 2006 å¹´å½æãRuby ã®ã¨ã³ã·ã¹ãã ã¯æ¥æé·ãã¦ãããããã«å¤ãã®äººã«ä½¿ãããããã«ãªãã¾ããã ããããå¾ã ã« Ruby 製ã§ãããã¨ã«èµ·å ã
åã®æænoteã§ãã åå人ãå³å®ãã¦ããCSSã³ã¼ãã£ã³ã°ã®ã«ã¼ã«ãããç¹ã«å®ã£ã¦ãããæ¹ãè¯ãã¨æãããã®ããã©ããã¦ãããè¯ãã®ãã»æªãã®ããã¨ãã£ã解説ãå«ãã¦30ç¹ã»ã©ããã¯ã¢ãããã¾ããã æåæ°ã¯å ¨é¨ã§28,000åãªã¼ãã¼ã¨åè«ã¬ãã«ã§ãããããã ãã³ã³ãã³ãã¯è©°ã¾ã£ã¦ã¾ããä¾¡æ ¼ã¯ç¸å ´ãããç¥ããªãã®ã§ã¯ã³ã³ã¤ã³ã§è²·ãã500åã«ãã¾ããã ï¼â»2019.12.22追è¨ï¼ãã¡ãã®noteã§ããããªãªã¼ã¹ããä¸é±éçµãããã¦å£²ãä¸ãã1000é¨ã«å±ãã¾ãããçæ§ãããã¨ããããã¾ãã å é±ãªãªã¼ã¹ããnoteãä¸é±éçµãããã¦å£²ãä¸ã1000é¨çªç ´ãããã¾ãããæãããã大å¤ãªã好è©ãããã ãã¾ãã¦ããããã¨ããããã¾ããhttps://t.co/Pj1tOGTlh5 pic.twitter.com/xfP08jfF1p â TAK (@tak_dcxi) December
Sassã¨ã¯CSSãå¹çããã³ã¼ãã£ã³ã°ããããã®ã¡ã¿è¨èªï¼æ¡å¼µè¨èªï¼ã§ããããã°ã©ã ã®ããã«å¤æ°ãé¢æ°ã使ã£ã¦ãå¹çããä¿å®æ§ã®é«ãã³ã¼ããè¨è¿°ãããã¨ãã§ãã¾ãã
Since the release of our framework a few months ago, we've been asked by many users why we opted for CSS variables, instead of SASS variables, even though we do use SASS in the framework. In this article, I'll go through the advantages of using custom properties and why they've become crucial in our workflow. Content: Creating and applying color themes Controlling the type scale Controlling the sp
ã¦ã§ããµã¤ãå¶ä½ã«ã¯ç ©éãªå¦çãèªååãããã¿ã¹ã¯ã©ã³ãã¼ããããã«ãã·ã¹ãã ãã¨ãããã¼ã«ãããã¾ãããã®è¨äºã§ã¯ãã¿ã¹ã¯ã©ã³ãã¼ãGulp.jsã¬ã«ããã®å°å ¥æé ã解説ãã¾ãã å°å ¥ã¯ç°¡åã§ãæ¬è¨äºã®æé ã§ã¯5åç¨åº¦ã§ã»ããã¢ããã§ãã¾ããGulpã¯ã³ãã³ãã©ã¤ã³ã§ä½¿ãã®ãä¸è¬çã§ããè¦æãªäººã§ãå®å¿ãã¦å¦ã¹ãããããããªã§ã解説ãã¾ãã ãã®è¨äºã§å¦ã¹ãã㨠ã¤ãããã®Gulpã®å°å ¥æé Gulp 5ã«å¯¾å¿ããæ¸ãæ¹ Sassãµã¹ã®å°å ¥æé GulpãSassã®å°å ¥ã使ãæ¹ã«ã¯ããããªæ¹æ³ãããã¾ããããã®è¨äºã§ã¯ç¾å ´ã§ä½¿ããã¦ããæ¹æ³ãç´¹ä»ãã¾ããGulpã®å ¥éè¨äºã¯ä»ã®ãµã¤ãã«ãããã¾ããã対象ãã¼ã¸ã§ã³ãå¤ãã¦ä½¿ããªãã£ãããã¾ããæ¬è¨äºã¯ææ°çã«å¯¾å¿ããã¦ããã®ã§ãå®å¿ãã¦èªã¿é²ãã¦ãã ããã â»ãã®è¨äºã§ã¯ãNode.js v18ãv20ã§åä½æ¤è¨¼ããã¦ãã¾ãã â»Gulp
ä»å¹´ãæºãã£ãæ¡ä»¶ã®ã»ã¨ãã©ãã¬ã¹ãã³ã·ãWebãã¶ã¤ã³ã§ããã ä»æ´ã§ãããç§ãã¬ã¹ãã³ã·ãWebãã¶ã¤ã³ã®ã³ã¼ãã£ã³ã°ã§ãã£ã¦ãããã¨ãæ°ãä»ãã¦ãããã¨ãæ´çãã¦ã¿ããã¨æãã¾ãã User Agent Style Sheetã®å¯¾å¿ ãã©ã¦ã¶ã®ããã©ã«ãã§è¨å®ããã¦ããã¹ã¿ã¤ã«ã·ã¼ãã®å·®ç°ãåããCSSã¯ãNormalize.cssãããã使ãã¾ãã ãã¶ã¤ã³ã«ãã£ã¦ã¯ãEric MeyerâsçãªRest CSSã®æ¹ããããããå ´åãããã®ã§ãããã¯è¦ãç®ã«è¨æ©å¿å¤ã«å¯¾å¿ãã¦ã¾ãã CSS Flexible Box ç§ãåãæã¤æ¡ä»¶ã§ã¯ãææ°ãã©ã¦ã¶ãåã³Internet Explorer 11ï¼IE11ï¼ã®ã¿ã®å¯¾å¿ãå¢ãããããè¿å¹´ã§ã¯ãFlexible Boxãã«ã¸ã¥ã¢ã«ã«ä½¿ç¨ã§ããããã«ãªãã¾ããã å人çã«ã¯ãåºãç»é¢ã§ã¯æ¨ªä¸¦ã³ã ã£ããã®ããdisplayããããã£ãå¤æ´ã
Webãã¼ã¸ãã¹ããã¢ããªã®ã¬ã¤ã¢ã¦ãã«ä½¿ç¨ãããmargin, paddingãªã©ã®ã¹ãã¼ã¹ãCSSã§å¹ççã«å®ç¾©ããæ¹æ³ãç´¹ä»ãã¾ãã em, remã®ç¸å¯¾çãªåä½ã使ããcalc()ãå¹æçã«æ´»ç¨ããæ¡å¼µæ§ãã¡ã³ããã³ã¹æ§ã«ãåªãããã¶ã¤ã³ã·ã¹ãã ãæ§ç¯ã§ãã¾ãã Create your design system, part 4: Spacing by CodyHouse ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«ã©ã¤ã»ã³ã¹ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã ã¯ããã« CSSã®å¤æ°ã使ç¨ãã¦ãã¹ãã¼ã¹ã®ã·ã¹ãã ãè¨å®ããæ¹æ³ ãã¹ã¦ã®ã³ã³ãã¼ãã³ãã«ããã©ã«ãã®paddingãè¨å®ããæ¹æ³ marginã®ã¦ã¼ãã£ãªã㣠ã¹ãã¼ã¹å¤ã追å ããå ´å åºå®ã®ã¹ãã¼ã¹å¤ãå¿ è¦ãªå ´å ã¹ãã¼ã¹ãå®ç¾©ããSCSSãã¡ã¤ã« ã¯ããã« å ã ã¯ãè¿æ¥å ¬éäºå®ã®ãWeb Comp
CSS Flexboxã®åããããã£ãã¬ã¹ãã³ã·ã対å¿ã®ã°ãªãããåç´ã»æ°´å¹³ã®æããªã©ã便å©ãªã³ã¼ããã¾ã¨ããããSassã®Mixinãç´¹ä»ãã¾ãã CSS Flexboxã®åããããã£ãã¾ã¨ããããSass Mixin CSS Flexboxã§ã°ãªãããå®è£ ããã³ã¼ããã¾ã¨ããããSass Mixin CSS Flexboxã®åããããã£ãã¾ã¨ããããSass Mixin flexboxã®ãã©ã¦ã¶ã®ãµãã¼ãç¶æ³ Internet Explorer 11+ï¼10ã¯ãã¬ãã£ãã¯ã¹ã-ms-ããå¿ è¦ï¼ Edge 12+ Chrome 29+ï¼21-28ã¾ã§ã¯ãã¬ãã£ãã¯ã¹ã-webkit-ããå¿ è¦ï¼ Firefox 28+ï¼2-21ã¾ã§ã¯ãã¬ãã£ãã¯ã¹ã-moz-ããå¿ è¦ï¼ Opera 17+ï¼15-16ã¾ã§ã¯ãã¬ãã£ãã¯ã¹ã-webkit-ããå¿ è¦ï¼ Safari 9+ï¼6.1-8ã¾ã§ã¯ãã¬
$ sudo gem install bootstrap-sass Fetching: sass-3.4.11.gem (100%) Successfully installed sass-3.4.11 Fetching: execjs-2.3.0.gem (100%) Successfully installed execjs-2.3.0 Fetching: autoprefixer-rails-5.1.5.gem (100%) Successfully installed autoprefixer-rails-5.1.5 Fetching: bootstrap-sass-3.3.3.gem (100%) Successfully installed bootstrap-sass-3.3.3 Parsing documentation for sass-3.4.11 Installing
Sassï¼Less.jsã®CSSã¸ã®ãã©ã³ã¹ãã¤ã«ãèªååããã Sassï¼Less.jsã¯CSSãæ¡å¼µããè¨èªã§ãããæçµçã«ã¯CSSã¸ã¨ãã©ã³ã¹ãã¤ã«ï¼ã³ã³ãã¤ã«ï¼ããããVS Codeã®çµ±åã¿ã¼ããã«ã使ãã°ããããªä½æ¥ãç°¡åã«è¡ããããtasks.jsonãã¡ã¤ã«ãä½æãããã¨ã§ã¯ã³ã¿ããã§ãã©ã³ã¹ãã¤ã«ãè¡ããã¨ãå¯è½ã ã ããã§ã¯ã次ã«ç¤ºãç°¡åãª.scssãã¡ã¤ã«ã®ãã©ã³ã¹ãã¤ã«ãä¾ã«åããã¾ããããã§ã¯ãnpm install -g sassãã³ãã³ããå®è¡ãã¦ãSassãã¤ã³ã¹ãã¼ã«æ¸ã¿ã¨ãªã£ã¦ããã $bgc: lightgray; $h1bgc: darkgray; $fgc: lightblue; body { background: $bgc; } h1 { background: $h1bgc; color: $fgc; }
çªç¶ã§ãããåã¯ãã£ã¨PostCSSã誤解ãã¦ãã¾ãã⦠ãã®ãã³æ´ãã¦èª¤è§£ã解ããã®ã§ãè¨å¿µã«è¨äºãæ¸ãããã¨æãã¾ãã Sassã®ä»£ããã§ã¯ãªã ã¯ããããã§ãã ãã®è¨äºã§è¨ããããã¨ã¯ããããã»ã¼å ¨ã¦ã§ãã åã¯ãPostCSSããã³ã³ãã¤ã«ãã¦CSSãçæããSassã®ãããªãã®ã ã¨æã£ã¦ãã¾ããï¼ ã§ãããããããSassã使ã£ã¦ããã®ã§å ¨ãã¨è¨ã£ã¦ããã»ã©å¿ è¦æ§ãæãã¦ã¾ããã§ããã PostCSSã¯èªåã§å¿ è¦ãªæ©è½ã ããé¸ã¹ãããã«ã¹ã¿ãã¤ãºæ§ãããï¼æ¥½ããï¼è»½ãï¼ ã¨ãè¨ããã¦ããSassé ããªããããããå¿ è¦ãªæ©è½ãé¸ãã§æ§æããã®ãããã©ãããã¨æã£ã¦ã¾ãããã¨ãããä»ãæã£ã¦ã¾ãã ãã¹ãããã»ããµã¼ã¨ãã¦ã®PostCSS PostCSSã¨ããããããªã®ã§ããã¹ãããã»ããµã¼ã¨ãã¦ãçæãããCSSã«å¯¾ãã¦å¾å¦çããããã¨ã«ä½¿ãã¾ãã (å°å ¥ãããã©ã°ã¤ã³ã«ãã£ã¦ã¯
å§ãã¯ãã Sassããã«ããããã£ã... å°ã£ããã¨ãããããã£ãã㨠sassããã«ãããè¨äºã¯ãããã©...compass?grunt?gulp?webpack? Windows/Mac/Linux ã§ãåãç°å¢ãä½ãããã JavaScriptããã«ããããã ä¸ã¤ã®ãã¡ã¤ã«ã«ã¾ã¨ãããã JavaScriptãES6ãæ¸ãããã SourceMapãåºåãããã ãããã¼ãããã¿ã¼ãã¡ãã¥ã¼ãªã©ã®å ±éåããããå ¨é¨ã®ãã¡ã¤ã«ãä¿®æ£ããããªãã ãã¡ã¤ã«ãå¤æ´ãããã... SassãJavaScriptã¯èªåã§ãã«ããããã ãã©ã¦ã¶ããã¡ã¤ã«å¤æ´ãæ¤ç¥ãã¦ãªãã¼ãããããã ãã©ã¦ã¶ã®ãã£ãã·ã¥ãæ®ããªããããã¼ã¸ã§ãã³ã°å¯¾çãããã ã¯ãªã¼ã³ãªHTML/CSSãæ¸ãããã ãã©ã¦ã¶ç¹æã®ãã³ãã¼ãã¬ãã£ãã¯ã¹ã¯èªåã§ä»ä¸ãããã 使ã£ã¦ããªãã¹ã¿ã¤ã«ã¯é¤å»ãããã æ¬çªç¨ã®ã
ããæè¿ä¸»ã«ããã²ã¼ã·ã§ã³ãªã©ã§ããã¼æã«ã¢ã³ãã¼ã©ã¤ã³ãã¢ãã¡ã¼ã·ã§ã³ãããã¨ãã§ã¯ãã®å®è£ è¦æãå¤ãã®ã§ãããã¨ä½¿ããããã«ããå©ç¨ãããã®ãã²ã¨éãã¾ã¨ããã®ã§ã·ã§ã¢ãã¾ãã ã¾ãã大ä½ãã®æã®ã¢ãã¡ã¼ã·ã§ã³ãå©ç¨ããéã¯ãµã¤ãå ¨ä½ã§åããçµ±ä¸ããããã¨ãå¤ãã®ã§ããããã¾ã«å ´æã«ãã£ã¦å°ãéããã¤ãããã¨ãããã¨ãããã®ã§ããããã£ãã¨ãã«ãã対å¿ã§ããããã«Sassã®mixinãç¨ãã¦å®è£ ããæ¹æ³ãä½µãã¦ç´¹ä»ãã¾ãã ããã§ç´¹ä»ãã¦ãããµã³ãã«ã§ä½¿ç¨ãã¦ããHTMLã¯ããã¹ã¦<a href="#">Lorem ipsum</a>ã®ãããªã·ã³ãã«ãªaè¦ç´ ã使ç¨ããæ³å®ã«ãªã£ã¦ãã¾ãã
ãã£ã±ã GUI ãã¼ã«ã使ããã ã³ã¼ãã£ã³ã°ä½æ¥ã«ã¯å調ãªç¹°ãè¿ãåä½ããã³ãã³ããã¾ããããããå¤æ°ãé¢æ°ãé§ä½¿ãã¦å¹çåãããã¨ããã®ã¯ã¨ã³ã¸ãã¢ã®ããã¹ã姿å¢ã§ã¯ãªãã§ããããã æè¿ã§ã¯ gulp ã®ãããªãã¿ã¹ã¯ã©ã³ãã¼ãã¨å¼ã°ãããã¼ã«ããWebpack ã®ãããªããã«ããã¼ã«ãããã³ã¨ã³ã¸ãã¢ã§ãå§ããããã¨ãã触ãè¾¼ã¿ã§ããåãä¸ãããã¦ãã¾ãã ãããã« Hello World! ã表示ããã®ã¯èª°ã§ãåºæ¥ã¾ãããå®éã«éç¨ãã¦ããããã«ã¯ãã¯ãããã¤ããã¼ãã«ãããã¾ãã ãªããã¨ããã¨ãããã㯠CUI ãã¼ã«ã ããã§ãã ã³ãã³ããæã£ã¦ãæä½ãããã¢ã¬ã ããã§ãã GUI ã§æä½ã§ããã³ã³ãã¤ã©ãPreprosã CUI ãã¼ã«ã¯ãã¡ããã¨ç解ãã¦ãªãã¨åããªãããã¨ãå¤ããç´æçãªæä½ãããã人ãããã¥ã¢ã«åãã¦ãã¼ã ã§å ±æããã人ã¯æ¬é ããã¡ã§ã¯ãªãã§ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}