3v324v23 commited on
Commit
77e7cc8
·
1 Parent(s): 7d35120

fix: optimize background image usage in path styling

Browse files
.gitattributes CHANGED
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  *.png filter=lfs diff=lfs merge=lfs -text
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  *.png filter=lfs diff=lfs merge=lfs -text
37
+ *.webp filter=lfs diff=lfs merge=lfs -text
static/assets/arabic-calligraphy-path.webp CHANGED

Git LFS Details

  • SHA256: 5385338af69999d8cc1e57f2b56b9df90626039a32fbc83b9fe6476c70ab80db
  • Pointer size: 131 Bytes
  • Size of remote file: 206 kB
static/index.html CHANGED
@@ -116,8 +116,7 @@ body.home:not(.manage) #toNow{bottom:76px} body.home:not(.manage) #logoutBtn{bot
116
  /* the way back to the path, at the head of the daily videos' screen (no tab of the foot's bar is lit there) */
117
  #vids button.back{display:inline-flex;align-self:flex-start;gap:6px;padding:6px 12px;border-radius:10px;background:var(--olive);border-color:var(--olive);color:var(--on-olive);font:700 15px var(--f-body)}
118
  #dailyDlg{width:min(92vw,380px)}
119
- .path{--track:color-mix(in srgb,var(--muted) 75%,var(--bg));position:relative;isolation:isolate;width:100%;max-width:460px;margin:4px auto 72px;background:#101510}
120
- .path::before{content:"";position:absolute;z-index:-1;inset:0;background:url("/static/assets/arabic-calligraphy-path.webp") top center/100% auto repeat-y;mix-blend-mode:screen;filter:brightness(1.9) saturate(.55);opacity:.24;pointer-events:none}
121
  .road{position:absolute;left:50%;top:0;width:1px;height:100%;overflow:visible;pointer-events:none}
122
  .road path{fill:none;stroke:var(--line);stroke-width:12;stroke-linecap:round}
123
  .road .went{stroke:var(--olive)}
 
116
  /* the way back to the path, at the head of the daily videos' screen (no tab of the foot's bar is lit there) */
117
  #vids button.back{display:inline-flex;align-self:flex-start;gap:6px;padding:6px 12px;border-radius:10px;background:var(--olive);border-color:var(--olive);color:var(--on-olive);font:700 15px var(--f-body)}
118
  #dailyDlg{width:min(92vw,380px)}
119
+ .path{--track:color-mix(in srgb,var(--muted) 75%,var(--bg));position:relative;width:100%;max-width:460px;margin:4px auto 72px;background:#101510 url("/static/assets/arabic-calligraphy-path.webp") top center/100% auto repeat-y}
 
120
  .road{position:absolute;left:50%;top:0;width:1px;height:100%;overflow:visible;pointer-events:none}
121
  .road path{fill:none;stroke:var(--line);stroke-width:12;stroke-linecap:round}
122
  .road .went{stroke:var(--olive)}