Refactor streak modal into a single card with top border-b iframe animation and bottom greetings, daily check-in Snapchat-like streak update/reset logic
This commit is contained in:
@@ -19,9 +19,13 @@ def port_html():
|
||||
body::after {
|
||||
display: none !important;
|
||||
}
|
||||
#stage, .hint {
|
||||
background: transparent !important;
|
||||
box-shadow: none !important;
|
||||
.stage {
|
||||
height: 280px !important;
|
||||
width: 100% !important;
|
||||
max-width: 100% !important;
|
||||
padding: 0 !important;
|
||||
gap: 0 !important;
|
||||
justify-content: center !important;
|
||||
}
|
||||
.count, .panel, .hint {
|
||||
display: none !important;
|
||||
@@ -54,6 +58,9 @@ def port_html():
|
||||
html = html.replace("const sad = target<5;", "const sad = target<=2;")
|
||||
html = html.replace("Math.max(target,5)/5", "Math.max(target,3)/3")
|
||||
html = html.replace("(4 - target) / 3", "(3 - target) / 3")
|
||||
|
||||
# 5. Adjust badge size from 230px to 190px
|
||||
html = html.replace("--badge:230px;", "--badge:190px;")
|
||||
|
||||
with open(dest_path, 'w', encoding='utf-8') as f:
|
||||
f.write(html)
|
||||
|
||||
Reference in New Issue
Block a user