Fix pulsing on dark backgrounds
This commit is contained in:
@ -21,6 +21,17 @@
|
||||
blockquote {
|
||||
color: {{.Params.quote}};
|
||||
}
|
||||
{{ if (isset .Params "pulse_light")}}
|
||||
@keyframes flash {
|
||||
from {
|
||||
background-color: rgba(255, 255, 255, 0);
|
||||
}
|
||||
|
||||
to {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
}
|
||||
{{ end }}
|
||||
</style>
|
||||
{{end}}
|
||||
</head>
|
||||
|
||||
@ -157,11 +157,13 @@ code {
|
||||
background-color: rgba(128, 128, 128, 0.2);
|
||||
}
|
||||
}
|
||||
.pulse {
|
||||
.pulse, .pulse span {
|
||||
animation-name: flash;
|
||||
animation-duration: 1s;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
.pulse {
|
||||
padding: 0 3px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user