iqra785 commited on
Commit
c65c276
·
verified ·
1 Parent(s): 4c93b81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -25,24 +25,25 @@ st.markdown("""
25
  }
26
  .flashcard-container {
27
  display: flex;
28
- overflow-x: auto;
29
- white-space: nowrap;
30
  gap: 1rem;
 
31
  }
32
  .flashcard {
33
  width: 250px;
34
  height: 200px;
35
- border: 2px solid #4682b4;
36
  border-radius: 5px;
37
  font-size: 16px;
38
  color: black;
39
- background-color: #f0f8ff;
40
  perspective: 1000px;
41
  cursor: pointer;
42
  display: flex;
43
  align-items: center;
44
  justify-content: center;
45
- flex-shrink: 0;
46
  }
47
  .flashcard-inner {
48
  position: relative;
@@ -65,10 +66,10 @@ st.markdown("""
65
  padding: 1rem;
66
  }
67
  .flashcard-front {
68
- background-color: #f0f8ff;
69
  }
70
  .flashcard-back {
71
- background-color: #ffffff;
72
  transform: rotateY(180deg);
73
  }
74
  </style>
@@ -197,4 +198,4 @@ if st.session_state.flashcards:
197
  data=st.session_state.flashcards,
198
  file_name="flashcards.txt",
199
  mime="text/plain"
200
- )
 
25
  }
26
  .flashcard-container {
27
  display: flex;
28
+ overflow-x: auto; /* Allows horizontal scrolling */
29
+ white-space: nowrap; /* Prevents wrapping */
30
  gap: 1rem;
31
+ padding: 1rem;
32
  }
33
  .flashcard {
34
  width: 250px;
35
  height: 200px;
36
+ border: 2px solid #4682b4; /* Steel Blue border */
37
  border-radius: 5px;
38
  font-size: 16px;
39
  color: black;
40
+ background-color: #f0f8ff; /* Alice Blue background */
41
  perspective: 1000px;
42
  cursor: pointer;
43
  display: flex;
44
  align-items: center;
45
  justify-content: center;
46
+ flex-shrink: 0; /* Prevent shrinking */
47
  }
48
  .flashcard-inner {
49
  position: relative;
 
66
  padding: 1rem;
67
  }
68
  .flashcard-front {
69
+ background-color: #f0f8ff; /* Alice Blue background */
70
  }
71
  .flashcard-back {
72
+ background-color: #ffffff; /* White background for the back */
73
  transform: rotateY(180deg);
74
  }
75
  </style>
 
198
  data=st.session_state.flashcards,
199
  file_name="flashcards.txt",
200
  mime="text/plain"
201
+ )