38 lines
1.0 KiB
CSS
38 lines
1.0 KiB
CSS
|
|
.stroke-text {
|
||
|
|
font-weight: bold;
|
||
|
|
text-transform: uppercase;
|
||
|
|
color: white;
|
||
|
|
position: relative;
|
||
|
|
display: inline-block;
|
||
|
|
z-index: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.stroke-text:after, .stroke-text:before {
|
||
|
|
content: attr(data-text);
|
||
|
|
position: absolute;
|
||
|
|
height: 100%;
|
||
|
|
width: 100%;
|
||
|
|
-webkit-text-stroke: .2em #000;
|
||
|
|
z-index: -1; /* 确保它们位于主文本前 */
|
||
|
|
}
|
||
|
|
.stroke-text:after{
|
||
|
|
left: .05em;
|
||
|
|
top: .05em;
|
||
|
|
}
|
||
|
|
.stroke-text:before{
|
||
|
|
left: 0;
|
||
|
|
top: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.glow-text-effect{
|
||
|
|
color: var(--text-color, #4ade80);
|
||
|
|
text-shadow: 0 0 .3em rgba(0, 0, 0, .7), 0 0 .05em var(--text-color, #4ade80), 0 0 .1em var(--text-color, #4ade80), 0 0 .15em var(--text-color, #4ade80), 0 0 .2em var(--text-color, #4ade80), 0 0 .25em var(--text-color, #4ade80);
|
||
|
|
}
|
||
|
|
.bevel-text-effect {
|
||
|
|
display: inline-flex;
|
||
|
|
position: relative;
|
||
|
|
color: var(--text-color, #4ade80);
|
||
|
|
-webkit-text-stroke: .025em var(--text-color, #4ade80);
|
||
|
|
-webkit-text-fill-color: transparent;
|
||
|
|
text-shadow: 0 .025em .0375em var(--text-color, #4ade80), 0 0 0 #fff;
|
||
|
|
}
|