2024-04-01ãã1ã¶æéã®è¨äºä¸è¦§
åã åã®detailsè¦ç´ ã¨ååã®grid-template-rowsã®åããæã§ããblog.kimizuka.org blog.kimizuka.orgdetailsè¦ç´ ã®ééã«ã¢ãã¡ã¼ã·ã§ã³ãè¨å®ãããå ´åãæ¬å½ã¯openå±æ§ã®æç¡ã§åè¦ç´ ã®grid-template-rowsãå¤æ´ãããã¨ã§ãJavaScriptãªãã§å®ç¾ã§ããâ¦
DOMã®é«ãã0ããautoã«CSSã¢ãã¡ã¼ã·ã§ã³ã§ã¹ã ã¼ãºã«å¤æ´ãããã¨ããgrid-template-rowsã使ãã¨ããæãã«ãªãã¨ãããã¨ãæãã¦ããã ãã¾ããã DEMO SCSSï¼æç²ï¼ dd { display: grid; // ⶠgrid-template-rows: 0fr; // ⸠transition: grid-templatâ¦
detailsè¦ç´ èªä½ãã¢ãã¡ã¼ã·ã§ã³ãããå ´å detailsè¦ç´ èªä½ã«transitionãè¨å®ããopenå±æ§ã®æç¡ã§ããããã£ãå¤åãããã¨ãã¯ã¢ãã¡ã¼ã·ã§ã³ãã¾ãã â» Google Chromeï¼123.0.6312.124ï¼ã§ãã確èªãã¦ãã¾ããã DEMO SCSS details { background: rgbâ¦
Node.jsããPythonã¹ã¯ãªãããå®è¡ã§ããpython-shellã åã¯Node.jsã®ãµã¼ãããmyCobotãæä½ããéã«æ´»ç¨ãã¦ãã¾ããblog.kimizuka.orgåºæ¬çã«ã¯runStringã¡ã½ããã使ã£ã¦Pythonã§ã³ã¼ããå®è¡ãã¦ãã¾ãã ãã®ãããã·ã³ãã«ã«æ¸ãã¨ã import { Pyâ¦
ãã¤ã¦ãæååãé åã«åå²ä»£å ¥ãããã¨ã§çµµæåãå«ãã æååã®lengthãç°¡æçã«åå¾ãããã¨ãããã¾ãããblog.kimizuka.orgãµãã²ã¼ããã¢ã«å¯¾ãã¦ãString.prototype.lengthã§æååã®é·ããåå¾ãããã¨ããã¨ããã¾ããããªãã¨ããããã¾ããã coâ¦
noteãcodocãªã©ãæç« ã®éä¸ã«ææã¨ãªã¢ãè¨å®ã§ãããã©ãããã©ã¼ã ãå¢ãã¦ãã¾ããã 大ä½ã©ã®ãã©ãããã©ã¼ã ã§ã課éåããææã¨ãªã¢ã®æåæ°ãç¥ããã¨ãã§ããããã«ãã¶ã¤ã³ããã¦ãã¾ãã noteã§ã®ææã¨ãªã¢ã®æåæ°ã®æ示ãã®æåæ°ã«ã¦ã³ãâ¦
useRouterã®å ¬å¼ããã¥ã¡ã³ãããã¡ããnextjs.orgasPathã®é ç®ã«ã¯ã asPath: String - The path as shown in the browser including the search params and respecting the trailingSlash configuration. basePath and locale are not included. https://nâ¦
\Aã§æ¹è¡ã§ãããã¨ãç¥ãã¾ããã white-space: pre-wrapã¨ã»ããã§è¨å®ããå¿ è¦ãããã¾ãã SCSS p { &:after { white-space: pre-wrap; content: 'æ¹\Aè¡'; } } DEMO é¢é£è¨äº blog.kimizuka.org