ahmadsanafarooq commited on
Commit
894f550
·
verified ·
1 Parent(s): 24b6a35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -22
app.py CHANGED
@@ -1657,31 +1657,19 @@ def show_main_app():
1657
  }
1658
 
1659
 
1660
- /* File Uploader Text Color Fixes */
1661
- [data-testid="stFileUploaderDropzone"] {
1662
  border-radius: 12px; /* More rounded */
1663
  border: 2px dashed #a0a8b4;
1664
- background-color: #5d6dbe;
1665
  padding: 25px; /* More padding */
1666
  transition: border-color 0.3s ease, background-color 0.3s ease;
1667
  margin-bottom: 1.5rem;
1668
  }
1669
  [data-testid="stFileUploaderDropzone"]:hover {
1670
- border-color: #5d6dbe;
1671
  background-color: #f7f9fb;
1672
  }
1673
- [data-testid="stFileUploader"] div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > div > button {
1674
- background-color: white !important;
1675
- color: black !important; /* Ensure the text on the white button is black */
1676
- border: 1px solid #ced4da !important; /* Add a light border for definition */
1677
- box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Add a subtle shadow */
1678
- }
1679
-
1680
- /* Hover effect for the white "Browse files" button */
1681
- [data-testid="stFileUploader"] div:nth-child(1) > div:nth-child(2) > div:nth-child(2) > div > button:hover {
1682
- background-color: #f8f9fa !important; /* Slightly lighter on hover */
1683
- border-color: #adb5bd !important;
1684
- }
1685
  /* Force ALL text inside file uploader dropzone to black */
1686
  [data-testid="stFileUploaderDropzone"] *,
1687
  [data-testid="stFileUploaderDropzone"] p,
@@ -1946,12 +1934,6 @@ def show_main_app():
1946
  margin: 0; /* Remove default paragraph margin */
1947
  }
1948
 
1949
- /* If you want bold text within this custom info box to also be black
1950
- .custom-info-box .info-text strong,
1951
- .custom-info-box .info-text b {
1952
- color: black !important;
1953
- -webkit-text-fill-color: black !important;
1954
- opacity: 1 !important; */
1955
  }
1956
 
1957
 
 
1657
  }
1658
 
1659
 
1660
+ * File Uploader */
1661
+ [data-testid="stFileUploaderDropzone"] {
1662
  border-radius: 12px; /* More rounded */
1663
  border: 2px dashed #a0a8b4;
1664
+ background-color: #ffffff;
1665
  padding: 25px; /* More padding */
1666
  transition: border-color 0.3s ease, background-color 0.3s ease;
1667
  margin-bottom: 1.5rem;
1668
  }
1669
  [data-testid="stFileUploaderDropzone"]:hover {
1670
+ border-color: #5d6dbe; /* Highlight on hover */
1671
  background-color: #f7f9fb;
1672
  }
 
 
 
 
 
 
 
 
 
 
 
 
1673
  /* Force ALL text inside file uploader dropzone to black */
1674
  [data-testid="stFileUploaderDropzone"] *,
1675
  [data-testid="stFileUploaderDropzone"] p,
 
1934
  margin: 0; /* Remove default paragraph margin */
1935
  }
1936
 
 
 
 
 
 
 
1937
  }
1938
 
1939