Created
August 4, 2020 10:14
-
-
Save logue/0bce34144393ac12554591aba64e3954 to your computer and use it in GitHub Desktop.
text-shadowで袋文字(アウトライン)を作る関数
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
/// Outlined text shadow | |
/// | |
/// @author Logue <logue@hotmail.co.jp> | |
/// @version 1.0.0 | |
/// @copyright 2020 Masashi Yoshikawa <https://logue.dev/> All rights reserved. | |
/// @license MIT | |
/// | |
/// @example | |
/// text-shadow: outline(black, 1px, 1px); | |
/// | |
/// @param $color 色 | |
/// @param $width 線の太さ | |
/// @param $blur ぼかし | |
/// | |
/// @return text-shadow | |
@function outline($color, $width, $blur) { | |
@return $width $width $blur $color, -$width $width $blur $color, | |
$width -$width $blur $color, -$width -$width $blur $color, | |
$width 0px $blur $color, 0px $width $blur $color, -$width 0px $blur $color, | |
0px -$width $blur $color; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment