Fix pulsing on dark backgrounds

This commit is contained in:
Madison Scott-Clary
2019-08-25 21:24:24 -07:00
parent 11c6f40ba3
commit 43c2ed54fa
13 changed files with 25 additions and 2 deletions

View File

@ -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>

View File

@ -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;
}