diff --git a/app.py b/app.py index ee9a7cb..1c9570b 100644 --- a/app.py +++ b/app.py @@ -120,221 +120,194 @@ def post_detail(post_id): post["template"] = "components/timeline_post.html" post["timeline"] = """ -
  • +
  • + + + + +

    + moved some web-based tools to localhost +

    + +
    +

    + a testing page for blog preview and some string formatter...
    It's also my first time to correctly using git, to upload edited pages directly via rsync and synchronization via git. +

    +
    +
  • - - -
    - - - -
    - -

    -moved some web-based tools to localhost -

    - -

    -a testing page for blog preview and some string formatter...
    It's also my first time to correctly using git, to upload edited pages directly via rsync and synchronization via git. -

    - -
    - -
    - - - -
  • +
  • + + + + +

    + Editing +

    + +
    +

    + added a timeline component,
    but I have to generate a timeline html and paste it as text,
    then paste into content generation, and the upload to blog. +

    +
    +
  • - - -
    - - - -
    - -

    -Editing -

    - -

    -added a timeline component,
    but I have to generate a timeline html and paste it as text,
    then paste into content generation, and the upload to blog. -

    - -
    - -
    - - - -
  • +
  • + + + + +

    + Packing blog in Docker +

    + +
    +

    + uwsgi + flask -> caddy, gunicorn, flask, docker +

    +
    +
  • - - -
    - - - -
    - -

    -Packing blog in Docker -

    - -

    -uwsgi + flask -> caddy, gunicorn, flask, docker -

    - -
    - -
    - - - -
  • +
  • + + + + +

    + moved all wiki pages into one repository +

    + +
    +

    + have been using gitea's wiki page to take notes, which is a life-saver
    I made a script to pull all wiki pages into one repository, now I have a way to save all my notes. +

    +
    +
  • - - -
    - - - -
    - -

    -moved all wiki pages into one repository -

    - -

    -have been using gitea's wiki page to take notes, which is a life-saver
    I made a script to pull all wiki pages into one repository, now I have a way to save all my notes. -

    - -
    - -
    - - - -
  • +
  • + + + + +

    + scoop update vscode +

    + +
    +

    + VS Code was always hanging for two months. +

    +
    +
  • - - -
    - - - -
    - -

    -/root partition is full -

    - -

    -pacman -Sc doesnt work anymore
    I am confused very confused
    started to move gitea from /etc to /home
    accidentally deleted all gitea data...then recovered with a previous gitea dump -

    - -
    - -
    - - - -
  • +
  • + + + + +

    + /root partition is full +

    + +
    +

    + pacman -Sc doesnt work anymore
    I am confused very confused
    started to move gitea from /etc to /home
    accidentally deleted all gitea data...then recovered with a previous gitea dump +

    +
    +
  • - - -
    - - - -
    - -

    -have another gitea instance, docker -

    - -

    -all repositories have a mirror now -

    - -
    - -
    - - - -
  • +
  • + + + + +

    + have another gitea instance, docker +

    + +
    +

    + all repositories have a mirror now +

    +
    +
  • - - -
    - - - -
    - -

    -Tailscale ip doesnt work -

    - -

    -system-wide caddy worked for https://ip
    but docked caddy didnt work for https://ip
    I have no clue... -

    - -
    - -
    - - - -
  • +
  • + + + + +

    + Tailscale ip doesnt work +

    + +
    +

    + system-wide caddy worked for https://ip
    but docked caddy didnt work for https://ip
    I have no clue... +

    +
    +
  • - - -
    - - - -
    - -

    -language tool -

    - -

    -trying to use language tool, which helps with spelling but it doesnt work well for grammar checking, also the current setting should be fixed, I am not sure if I am running locally or querying via API. -

    - -
    - -
    - - +
  • + + + + +

    + language tool +

    + +
    +

    + trying to use language tool, which helps with spelling but it doesnt work well for grammar checking, also the current setting should be fixed, I am not sure if I am running locally or querying via API. +

    +
    +
  • """ diff --git a/static/css/components/timeline.css b/static/css/components/timeline.css index c681f1e..f9b84c6 100644 --- a/static/css/components/timeline.css +++ b/static/css/components/timeline.css @@ -1,24 +1,49 @@ +/* 1. Reset the LI to ensure no Bootstrap frames/padding interfere */ +li.tw-list-none { + border: none !important; + background: transparent !important; + padding-left: 0 !important; /* Forces alignment control to the Button */ + margin-left: 1.5rem !important; /* This is the 'tw-ml-6' equivalent */ +} + +/* 2. The Precision Dot */ .timeline-button { position: absolute; - left: -0.375rem; + + /* MATH: The li has ml-6 (1.5rem). + To center a 0.75rem dot on the line at the edge of that margin: + We move it left by (1.5rem + half the dot width). */ + left: -1.9rem !important; + top: 0.25rem; width: 0.75rem; height: 0.75rem; - border-radius: 9999px; - background: #d1d5db; display: flex; align-items: center; justify-content: center; - font-size: 10px; - line-height: 1; - + /* This creates the 'gap' around the dot so it looks clean */ + border: 2px solid white !important; + z-index: 10; transition: all 0.2s ease; + cursor: pointer; } +/* 3. Force the Line to be visible and solid */ +ol.tw-border-l-2 { + border-left: 2px solid #d1d5db !important; + border-right: none !important; + border-top: none !important; + border-bottom: none !important; +} + +/* Ensure the dot stays put when screen shrinks */ +.tw-relative { + position: relative !important; +} /* hover only when expanded */ .timeline-button:hover:not(.collapsed) { background: #6b7280; diff --git a/templates/base.html b/templates/base.html index 36c68e5..3064740 100644 --- a/templates/base.html +++ b/templates/base.html @@ -26,14 +26,12 @@ rel="stylesheet" /> - diff --git a/templates/components/timeline.html b/templates/components/timeline.html index e253b83..224b98d 100644 --- a/templates/components/timeline.html +++ b/templates/components/timeline.html @@ -1,8 +1,13 @@ -
    -
    -
      -

      hint

      - {{ post.timeline | safe}} -
    -
    +
    +
      + {{ post.timeline | safe}} +