Fix pulsing on dark backgrounds
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
type: single
|
type: single
|
||||||
|
pulse_light: true
|
||||||
---
|
---
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|||||||
@ -4,6 +4,7 @@ weight: 14
|
|||||||
background: '#333a18'
|
background: '#333a18'
|
||||||
color: '#cdc'
|
color: '#cdc'
|
||||||
quote: '#efe'
|
quote: '#efe'
|
||||||
|
pulse_light: true
|
||||||
---
|
---
|
||||||
|
|
||||||
Somewhere around 2018, a friend of mine went mad.
|
Somewhere around 2018, a friend of mine went mad.
|
||||||
|
|||||||
@ -4,6 +4,7 @@ weight: 17
|
|||||||
background: "#283a26"
|
background: "#283a26"
|
||||||
color: '#cdc'
|
color: '#cdc'
|
||||||
quote: '#efe'
|
quote: '#efe'
|
||||||
|
pulse_light: true
|
||||||
---
|
---
|
||||||
|
|
||||||
On two occasions, the world has slid away from me.
|
On two occasions, the world has slid away from me.
|
||||||
|
|||||||
@ -4,6 +4,7 @@ weight: 18
|
|||||||
background: "#082a16"
|
background: "#082a16"
|
||||||
color: '#bcb'
|
color: '#bcb'
|
||||||
quote: '#ded'
|
quote: '#ded'
|
||||||
|
pulse_light: true
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="cw">Self-harm</div>
|
<div class="cw">Self-harm</div>
|
||||||
|
|||||||
@ -4,6 +4,7 @@ weight: 19
|
|||||||
background: "#082010"
|
background: "#082010"
|
||||||
color: '#aba'
|
color: '#aba'
|
||||||
quote: '#cdc'
|
quote: '#cdc'
|
||||||
|
pulse_light: true
|
||||||
---
|
---
|
||||||
|
|
||||||
> And?
|
> And?
|
||||||
|
|||||||
@ -5,6 +5,7 @@ background: '#333a18'
|
|||||||
color: '#cdc'
|
color: '#cdc'
|
||||||
quote: '#efe'
|
quote: '#efe'
|
||||||
type: single
|
type: single
|
||||||
|
pulse_light: true
|
||||||
---
|
---
|
||||||
|
|
||||||
Somewhere around 2014, a friend of mine went mad.
|
Somewhere around 2014, a friend of mine went mad.
|
||||||
|
|||||||
@ -4,6 +4,7 @@ weight: 20
|
|||||||
background: "#001a06"
|
background: "#001a06"
|
||||||
color: '#aba'
|
color: '#aba'
|
||||||
quote: '#cdc'
|
quote: '#cdc'
|
||||||
|
pulse_light: true
|
||||||
---
|
---
|
||||||
|
|
||||||
I'm hypomanic now.
|
I'm hypomanic now.
|
||||||
|
|||||||
@ -3,5 +3,6 @@ type: serial
|
|||||||
background: '#1f183a'
|
background: '#1f183a'
|
||||||
color: '#ccd'
|
color: '#ccd'
|
||||||
quote: '#eef'
|
quote: '#eef'
|
||||||
|
pulse_light: true
|
||||||
back: /16
|
back: /16
|
||||||
---
|
---
|
||||||
|
|||||||
@ -3,5 +3,6 @@ type: serial
|
|||||||
background: '#000'
|
background: '#000'
|
||||||
color: '#ddd'
|
color: '#ddd'
|
||||||
quote: '#ddd'
|
quote: '#ddd'
|
||||||
|
pulse_light: true
|
||||||
back: /8
|
back: /8
|
||||||
---
|
---
|
||||||
|
|||||||
@ -6,7 +6,7 @@ weight: 45
|
|||||||
<div class="cw">Cognitive hazard, audio autoplay, color changes</div>
|
<div class="cw">Cognitive hazard, audio autoplay, color changes</div>
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
( <a class="pulse huh" href="/aside/3">...</a> )
|
( <a class="pulse huh" href="/aside/3">2, 3, 5, 7, 13</a> )
|
||||||
O
|
O
|
||||||
o
|
o
|
||||||
.
|
.
|
||||||
|
|||||||
@ -3,5 +3,6 @@ type: serial
|
|||||||
background: '#2f082a'
|
background: '#2f082a'
|
||||||
color: '#ccd'
|
color: '#ccd'
|
||||||
quote: '#eef'
|
quote: '#eef'
|
||||||
|
pulse_light: true
|
||||||
back: /38
|
back: /38
|
||||||
---
|
---
|
||||||
|
|||||||
@ -21,6 +21,17 @@
|
|||||||
blockquote {
|
blockquote {
|
||||||
color: {{.Params.quote}};
|
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>
|
</style>
|
||||||
{{end}}
|
{{end}}
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@ -157,11 +157,13 @@ code {
|
|||||||
background-color: rgba(128, 128, 128, 0.2);
|
background-color: rgba(128, 128, 128, 0.2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.pulse {
|
.pulse, .pulse span {
|
||||||
animation-name: flash;
|
animation-name: flash;
|
||||||
animation-duration: 1s;
|
animation-duration: 1s;
|
||||||
animation-iteration-count: infinite;
|
animation-iteration-count: infinite;
|
||||||
animation-direction: alternate;
|
animation-direction: alternate;
|
||||||
|
}
|
||||||
|
.pulse {
|
||||||
padding: 0 3px;
|
padding: 0 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user