~nhanb/pytaku

09d948b6431345adc1718d952eb3603586697e9f — Nhân 1 year, 2 months ago 76601f3
lazy dark mode
2 files changed, 18 insertions(+), 0 deletions(-)

A src/pytaku/static/darkmode.css
M src/pytaku/templates/spa.html
A src/pytaku/static/darkmode.css => src/pytaku/static/darkmode.css +17 -0
@@ 0,0 1,17 @@
@media (prefers-color-scheme: dark) {
  :root {
    background-color: #333;
    color: #eee;
  }

  footer {
    background-color: var(--bg-black);
    color: #eee;
    border: none;
  }

  .follows--title.non-empty,
  .title--descriptions {
    background-color: #555;
  }
}

M src/pytaku/templates/spa.html => src/pytaku/templates/spa.html +1 -0
@@ 13,6 13,7 @@
    <link rel="stylesheet" href="{{ url_for('static', filename='feathericons/iconfont.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='lookandfeel.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='spa.css') }}">
    <link rel="stylesheet" href="{{ url_for('static', filename='darkmode.css') }}">

    {% if open_graph %}
    <meta property="og:title" content="{{ open_graph['title'] }}">