Created
November 22, 2023 00:57
-
-
Save manabuyasuda/9eb083a253d87d8a3e45f5ad681f875a to your computer and use it in GitHub Desktop.
縁取り文字
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.bordering { | |
position: relative; | |
color: #fff; | |
-webkit-text-stroke: 4px #000; // デザインデータ上の縁取り×2 | |
&::before { | |
content: attr(data-text); | |
position: absolute; | |
-webkit-text-stroke: 0; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p class="bordering" data-text="テキスト">テキスト</p> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment