GitHub ã«ã¯ã¢ã©ã¼ãè¨æ³ã¨ããé常ã«ä¾¿å©ãªè¨æ³ãåå¨ãã¾ãã
> [!NOTE] > Highlights information that users should take into account, even when skimming.
ã®ããã«æ¸ãã¨ã以ä¸ã®ããã«è¡¨ç¤ºããã¾ãã
ãã®ã¢ã©ã¼ãè¨æ³ãã¯ã¦ãªããã°ã§åç¾ãã¦ã¿ã¾ããã
Note
Highlights information that users should take into account, even when skimming.
Tip
Optional information to help a user be more successful.
Important
Crucial information necessary for users to succeed.
Warning
Critical content demanding immediate user attention due to potential risks.
Caution
Negative potential consequences of an action.
ã©ãã§ããããï¼ããæãã§ãããï¼ï¼
å®è£ æ¹æ³
ã¯ã¦ãªããã°å´ã§ã¯ [!NOTE]
ã¨ãã£ãç¹æ®è¨æ³ãå®è£
ããå ´åãjsãä½ã£ã¦èªã¿è¾¼ãå¿
è¦ãããã¾ããä»åã¯å°ãé¢åãããã£ãã®ã§å¼ç¨å
ã« p ã¿ã°ãç¨æãããã¨ã§å®ç¾ãã¾ããã
> <p class="note">Note</p> > Highlights information that users should take into account, even when skimming. > <p class="tip">Tip</p> > Optional information to help a user be more successful. > <p class="important">Important</p> > Crucial information necessary for users to succeed. > <p class="warning">Warning</p> > Critical content demanding immediate user attention due to potential risks. > <p class="caution">Caution</p> > Negative potential consequences of an action.
ãããã® pã¿ã°ã®ã¯ã©ã¹ã«ãã£ã¦ã¹ã¿ã¤ã«ãåºãåãã¦ãã¾ããå¼ç¨ã®å·¦ãã¼ã¯ :has
ã使ã£ã¦è²ãå¤ãã¦ãã¾ãã
&:has(p.note)::before { background-color: $blockquote-color-note; }
ã¾ããã¢ã¤ã³ã³ã¯ SVG ã base64 ã«å¤æã㦠mask-image
ã§æç»ãã¦ãã¾ããmask
ã使ãã®ã¯è²ãå¤æ´ããããã§ãã
p.note { &::before { content: ""; width: 1rem; height: 1rem; padding-right: .5rem; display: inline-block; mask-size: 1.5cap; mask-repeat: no-repeat; mask-image: url($blockquote-image-note); background-color: $blockquote-color-note; } color: $blockquote-color-note; }
SCSS å ¬éãã¦ãã¾ã
ãèªç±ã«ã©ããã