kaveh commited on
Commit
67b648a
·
1 Parent(s): 482c7f2

added bg for UI

Browse files
Files changed (1) hide show
  1. S2FApp/static/s2f_styles.css +47 -2
S2FApp/static/s2f_styles.css CHANGED
@@ -11,9 +11,45 @@ html, body, .stApp {
11
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
12
  }
13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  /* === Header banner === */
15
  .s2f-header {
16
- background: linear-gradient(135deg, var(--s2f-primary) 0%, var(--s2f-primary-dark) 40%, var(--s2f-primary-darker) 100%);
 
 
 
 
 
17
  padding: 1.1rem 1.5rem 1rem;
18
  border-radius: 12px;
19
  margin-bottom: 0.5rem;
@@ -63,7 +99,16 @@ html, body, .stApp {
63
  /* === Sidebar === */
64
  section[data-testid="stSidebar"] {
65
  width: 360px !important;
66
- background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
 
 
 
 
 
 
 
 
 
67
  border-right: 1px solid #e2e8f0 !important;
68
  }
69
  @media (max-width: 768px) {
 
11
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
12
  }
13
 
14
+ /* === Modern background patterns === */
15
+ .stApp {
16
+ background-color: #fafbfc !important;
17
+ background-image:
18
+ /* Subtle dot grid */
19
+ radial-gradient(circle at 1px 1px, rgba(148, 163, 184, 0.12) 1px, transparent 0);
20
+ background-size: 28px 28px !important;
21
+ background-position: 0 0, 0 0 !important;
22
+ }
23
+ /* Soft gradient overlay for depth */
24
+ .stApp::before {
25
+ content: '';
26
+ position: fixed;
27
+ top: 0;
28
+ left: 0;
29
+ right: 0;
30
+ bottom: 0;
31
+ background:
32
+ radial-gradient(ellipse 80% 50% at 70% -20%, rgba(var(--s2f-primary-rgb), 0.06) 0%, transparent 50%),
33
+ radial-gradient(ellipse 60% 40% at 0% 100%, rgba(var(--s2f-primary-rgb), 0.04) 0%, transparent 50%);
34
+ pointer-events: none;
35
+ z-index: 0;
36
+ }
37
+ /* Ensure content sits above background */
38
+ .stApp > div,
39
+ .block-container,
40
+ section[data-testid="stSidebar"] {
41
+ position: relative;
42
+ z-index: 1;
43
+ }
44
+
45
  /* === Header banner === */
46
  .s2f-header {
47
+ background:
48
+ /* Subtle grid overlay (drawn on top) */
49
+ linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
50
+ linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
51
+ linear-gradient(135deg, var(--s2f-primary) 0%, var(--s2f-primary-dark) 40%, var(--s2f-primary-darker) 100%);
52
+ background-size: 20px 20px, 20px 20px, 100% 100%;
53
  padding: 1.1rem 1.5rem 1rem;
54
  border-radius: 12px;
55
  margin-bottom: 0.5rem;
 
99
  /* === Sidebar === */
100
  section[data-testid="stSidebar"] {
101
  width: 360px !important;
102
+ background:
103
+ linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%),
104
+ /* Subtle vertical rhythm */
105
+ repeating-linear-gradient(
106
+ 90deg,
107
+ transparent,
108
+ transparent 89px,
109
+ rgba(203, 213, 225, 0.25) 89px,
110
+ rgba(203, 213, 225, 0.25) 90px
111
+ ) !important;
112
  border-right: 1px solid #e2e8f0 !important;
113
  }
114
  @media (max-width: 768px) {