sistine 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sistine
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: HTML builder with server routing for Python
5
5
  Author: Ararya Arka Anugraha
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "sistine"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "HTML builder with server routing for Python"
9
9
  authors = [
10
10
  {name = "Ararya Arka Anugraha"},
@@ -8,7 +8,8 @@ from .server import StreamlitServer
8
8
 
9
9
 
10
10
  _PAGE = """\
11
- <div class="sistine-wrap" style="opacity:0">
11
+ <div class="sistine-wrap">
12
+ <div class="sistine-overlay"></div>
12
13
  {global_css}
13
14
  {global_head}
14
15
  {content}
@@ -86,7 +87,7 @@ class Sistine:
86
87
  return decorator
87
88
 
88
89
  def _reveal_script(self) -> str:
89
- return "<script>(function(){var w=document.querySelector('.sistine-wrap');if(w){w.style.opacity='1';w.style.animation='none'}})()</script>"
90
+ return "<script>(function(){var o=document.querySelector('.sistine-overlay');if(o)o.remove()})()</script>"
90
91
 
91
92
  def _render(self, html: str) -> str:
92
93
  return _PAGE.format(
@@ -49,8 +49,12 @@ class StreamlitServer:
49
49
  [data-testid="stAppViewContainer"] > section:first-child {padding-top: 0 !important;}
50
50
  [data-testid="stAppDeployButton"] {display: none !important;}
51
51
  [data-testid="stToolbar"] {display: none !important;}
52
- @keyframes sistine-pulse { 0%,100%{opacity:0} 50%{opacity:.12} }
53
- .sistine-wrap { opacity:0; animation:sistine-pulse 1.5s ease-in-out infinite; }
52
+ @keyframes sistine-pulse { 0%,100%{opacity:1} 50%{opacity:.9} }
53
+ .sistine-overlay {
54
+ position:fixed;inset:0;z-index:999999;
55
+ background:var(--sistine-loading-bg,#0f0f0f);
56
+ animation:sistine-pulse 1.5s ease-in-out infinite;
57
+ }
54
58
  .stApp { margin: 0; padding: 0; background: transparent !important; }
55
59
  body { margin: 0; padding: 0; }
56
60
  * { margin: 0; padding: 0; box-sizing: border-box; }
@@ -65,7 +69,7 @@ class StreamlitServer:
65
69
  if not is_running_in_streamlit():
66
70
  script = sys.argv[0]
67
71
  print(
68
- f"\n \033[1mSistine v0.2.0\033[0m — Starting Streamlit backend on http://{host}:{port}...\n"
72
+ f"\n \033[1mSistine v0.2.1\033[0m — Starting Streamlit backend on http://{host}:{port}...\n"
69
73
  )
70
74
 
71
75
  import subprocess
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sistine
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: HTML builder with server routing for Python
5
5
  Author: Ararya Arka Anugraha
6
6
  License-Expression: MIT
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes