CSS/SCSS/SASS
â ã¯ããã« ã¬ã¹ãã³ã·ã対å¿ãããã³ãã¼ã¬ã¼ã¡ãã¥ã¼ãä½ãã㨠ãããã§æ¼ã£ããã©ãã»ã¨ãã©ã jQuery ã使ã£ããã®ã ã£ãã ä»åã¯ãjQuery ã使ããã«ãCSSã®ã¿ã§ä½ã£ããã®ã調ã¹ã¦ã¿ãã ç®æ¬¡ ãï¼ããã³ãã¼ã¬ã¼ã¡ãã¥ã¼ï¼Hamburger menuï¼ ãï¼ãâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2021/03/15/221755 ã®ç¶ãã ååã§ãSassï¼ãµã¹ï¼ã® ãã¹ãæ§é ãåãæ±ã£ãã®ã§ ä»åã¯ãåºæ¬çãªææ³ãå¦ãã§ããã SassMeister https://www.sassmeister.com/ ç®æ¬¡ ãï¼ãï¼ï¼ã¢ã³ããµã³ãï¼ ãï¼ãâ¦
â ã¯ããã« æè¿ãããã³ãã¨ã³ããæ¸ãã¦ã㦠Sass (ãµã¼ã¹ / ãµã¹) ã«ã¤ãã¦ãããã¾ãåå¼·ãã¦ãªãã£ãã®ã§ ããæ©ä¼ãªã®ã§ãåå¼·ãã¦ã¿ã ç®æ¬¡ ãï¼ãSassã¨ã¯ ç¹å¾´ ãï¼ãè¨æ³ ãï¼ãéçºç°å¢ ï¼ï¼Web ï¼ï¼VS Code ãï¼ããµã³ãã« ãï¼ãSassã¨ã¯ * Sasâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2021/03/06/234935 https://dk521123.hatenablog.com/entry/2021/03/05/113518 https://dk521123.hatenablog.com/entry/2015/05/15/000926 ãªã©ã§ãCSSã»ã¬ã¯ã¿ãJavaScriptã®document.querySelector/querâ¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/37602012.html ã§ãã£ãå¹ãåºãã®åããããã¤ã¹ã«ãã£ã¦å¤ãã¦ã¿ã è£è¶³ï¼å¹ãåºã * å¹ãåºãã®å¾©ç¿ã«ã¤ãã¦ã¯ã以ä¸ã®åç»ãµã¤ããåç §ã åç» https://dotinstall.com/lessons/balloon_css â ã¡ãã£ã¢ã¯â¦
â ã¯ããã« Font Awesomeã®ã¢ã¤ã³ã³ããã¦ã¹ãªã¼ãã¼ããéã«åããã¦ããã¦è²ã ã¨èª¿ã¹ã¦ãã ãFont Awesome Animationãã£ã¦ã®ããã£ãã®ã§è©¦ãã¦ã¿ãã è£è¶³ : Font Awesomeã®ã¿ã§å¯è½ãªã¢ãã¡ã¼ã·ã§ã³ * ã¢ã¤ã³ã³ããåãï¼fa-spinï¼ãããã«ãã«ï¼fa-puâ¦
â ã¯ããã« https://blogs.yahoo.co.jp/dk521123/37632575.html ã§ãæ±ã£ãããç¡æçã® Material Design for Bootstrap 4 ã§ã¯ 丸ãã¿ã³ãããªãã 以ä¸ã®ãµã¤ããåèã«èªä½ãã¦ã¿ã http://materialdesignblog.com/creating-a-simple-material-design-actâ¦
â ã¯ããã« ããã¼ãã£ã³ã°ã©ãã«ï¼placeholder ãåãã¦ã©ãã«ã«ãªãï¼ãèå³ãã£ãã®ã§ è²ã ã¨èª¿ã¹ã¦ã¿ã â ç¬èªå®è£ https://coliss.com/articles/build-websites/operation/css/css-only-floating-label.html ãåèã«å®è£ ã ãµã³ãã« * 以ä¸ã®é¢é£è¨äºâ¦
ãï¼ãåºæ¬çãªææ³ HTML <h1>Hello World</h1> CSS h1 { color: red; } æ§æ ãã»ã¯ã¿ã¼ã { ãå®£è¨ (ããããã£: å¤)ã; } ãï¼ãåºæ¬ã«ã¼ã« ï¼ï¼å¾ã«è¨è¼ããæ¹ãæå¹ã«ãªã å¾åã¡ ãµã³ãã« h1 { color: red; color: blue; /* ãã£ã¡ãæå¹ */ } ãï¼ãã³ã¡ã³ãæâ¦
â CSSã§åè§å½¢ãæãã«ã¯... / widthã»heightã»background-color ãµã³ãã« <html lang="jp"> <head> <meta charset="utf-8"> <title>Demo</title> <style type="text/css"> /* åè§å½¢ */ .square { width: 100px; height: 200px; background-color: #ff9800; } </style> </head> <body> <div class="square"></div> </body> <â¦</html>
â z-index * ããã¯ã¹ã®éãªãã®é åºãæå®ãã * 0ãåºæºã¨ãã¦ãå¤ã大ãããã®ã»ã©ä¸ã«ãªãã 注æ [1] z-indexãå¹ããªãå ´åããã http://d.hatena.ne.jp/masomi79/20131125/1385392242 ãã ï½ï½ï½ï½ï½ï½ï½ 1) 親è¦ç´ ãposition:staticï¼ãããã¯positâ¦
â 対å¦ç 1) overflowã§ãé åå ã«åã¾ããããªãå ´åã®å¯¾å¦ãæå®ãã 2) flowã§ãããã¯ã¹ãå·¦/å³ã«å¯ãã¦ãéå´ã«ããã¹ããªã©ãåãè¾¼ã¾ãã 3) word-break:break-allã§èªåæãè¿ããè¡ã åèæç® * ãword-break:break-allã§èªåæãè¿ããè¡ãã httâ¦
â ã¯ããã« * ã¢ã¤ã³ã³ãæ¢ãã¦ãã®ã ããåç¨OKãªããªã¼ã§ãªããªãããã®ããªãã£ãã CSSãã¼ã¹ã§ã§ãããã¤ãè²ãä»ãããããã¼ã« Font Awesome ããã£ãã®ã§è©¦ãã¦ã¿ãã â Font Awesomeã¨ã¯ï¼ * ã¢ã¤ã³ã³ãã©ã³ã * åç¨å©ç¨å¯è½ï¼è©³ç´°ã¯ã以ä¸ã®ãã©â¦
â ãµã³ãã«1ï¼ç»åã2ã¤éããå ´å <html> <body> <h1>ãµã³ãã«1</h1> <div style="position: relative;"> <img src="./ImageA.jpg" alt="éããç»å" style="position:absolute;"/> <img src="./BaseImage.jpg" alt="ãã¼ã¹ç»å" /> </div> </body> </html> è£è¶³ï¼ä½¿ç¨ãã¦ãã主ãªæè¡ï¼ãpositionã * absolute : 絶対ä½ç½® * relative : ç¸å¯¾ä½ç½®ï¼é常ã®ä½ç½®ãåºæºã¨ããç¸å¯¾ä½ç½®ï¼ * fixed : â¦
â Fonté¢é£ HTMLã®ã½ã¼ã¹ä¾ <div class="sample">XXXX</div> CSSã®ã½ã¼ã¹ä¾ div.sample { text-align:center; // æåä½ç½® padding:10px; // 空ç½ãµã¤ãº font-weight:bold; // 太å text-size:200%; // æåãµã¤ãº background-color:#FFCACA; // æåã®èæ¯è² } â åä½ ãï¼ã emæå® /â¦
â HTMLå é¨ã«è¨è¿°ããæ¹æ³ * styleã¿ã°ã«æ¸ã æ§æä¾ <style> h1 {color: red; } </style> â å¤é¨CSSãåãè¾¼ãæ¹æ³ * å¤é¨CSSãcss1.cssããåãè¾¼ãã§ãã æ§æä¾ <link rel="stylesheet" href="./css1.css" type="text/css"> â è¤æ°ã¯ã©ã¹ãæå®ããæ¹æ³ * CSSã®ã¯ã©ã¹ãbgcRedãã¨ãfsSmallããpã¿ã°ã«æå®ãã¦ãã æ§æä¾ <p class="bgcRed fsSmall">赤ãã¦</p></link>â¦
â ã¯ããã« ç®æ¬¡ ãï¼ã1px移åãããã«ã¯ - position ãï¼ã表示ã»é表示ã®è¨å® - visibility:visible/hidden ãï¼ã表示ã»é表示ã®è¨å® - display ãï¼ãéé度ãæå®ãã - opacity ãï¼ã1px移åãããã«ã¯ - position <div style="position:relative; left:1px;"> ãããã </div> ãï¼ã表示ã»é表示ã®â¦