Spaces:
Build error
Build error
File size: 4,503 Bytes
d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 9bfa604 4ab9e38 9bfa604 4ab9e38 9bfa604 4ab9e38 9bfa604 35f6854 9bfa604 4ab9e38 9bfa604 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 d631e96 4ab9e38 9d16b17 d631e96 9d16b17 d631e96 9d16b17 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 | /* EuropaLex Custom CSS β Plain White */
/* === Page Background: White === */
body, .gradio-container {
background: #ffffff !important;
min-height: 100vh;
}
/* Hide Gradio's default top bar */
.header {
background: transparent !important;
box-shadow: none !important;
}
/* === App Container === */
.main-app-container {
background: #ffffff !important;
border-radius: 10px !important;
box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
padding: 20px !important;
}
/* === Input Panel Styling === */
.input-panel {
padding: 10px 0;
}
.input-panel .form {
gap: 12px !important;
}
/* === Flashcard Gallery Layout === */
.flashcard-gallery {
display: flex;
flex-wrap: wrap;
gap: 16px;
justify-content: center;
padding: 16px 0;
}
/* === Individual Flashcard === */
.flashcard {
background: #ffffff !important;
border-radius: 8px !important;
padding: 14px 16px !important;
box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
border: 1px solid #e0e0e0 !important;
width: 170px;
min-height: 120px;
display: flex;
flex-direction: column;
justify-content: center;
}
.flashcard:hover {
box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
transition: all 0.2s ease;
}
/* === Card Text Styling === */
.flashcard .front-text {
font-size: 0.95em;
font-weight: bold;
color: #1a1a1a;
margin-bottom: 6px;
line-height: 1.35;
}
.flashcard .back-text {
font-size: 0.78em;
color: #666666;
line-height: 1.35;
border-top: 1px solid #e0e0e0;
padding-top: 6px;
}
/* === Media Boxes β separate containers for image and audio === */
.media-boxes-row {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 6px;
}
.media-box {
border-radius: 6px;
border: 1px solid #e0d8c8;
background: #faf8f2;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
}
/* Image box β slightly larger, with dashed border when empty */
.media-box-image {
min-height: 50px;
border-style: dashed;
}
.media-box-image.img-placeholder {
background: #f5f3ed;
}
/* Audio box β compact, with subtle shadow */
.media-box-audio {
padding: 6px 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
/* βββ Constrain native audio controls inside media boxes ββββββββββ */
.media-box-audio audio {
width: 100% !important;
height: 32px !important;
}
/* Placeholder button inside audio box */
.media-btn {
font-size: 14px;
cursor: default;
}
/* === Export Bar === */
.export-bar {
padding-top: 12px;
margin-top: 8px;
border-top: 1px solid #e0e0e0;
display: flex;
gap: 10px;
justify-content: center;
}
.export-btn {
padding: 5px 14px !important;
background: #f0f0f0 !important;
color: #999999 !important;
border-radius: 6px !important;
font-size: 0.75em !important;
cursor: default !important;
opacity: 0.55 !important;
text-decoration: line-through !important;
box-shadow: none !important;
}
.export-btn:hover {
opacity: 0.55 !important;
transform: none !important;
}
/* === Section Headers === */
.section-title {
color: #1a1a1a;
font-size: 0.9em;
margin-bottom: 8px;
padding-bottom: 4px;
border-bottom: 1px solid #e0e0e0;
}
/* === Generate Button Styling === */
.generate-btn {
background: #1a1a1a !important;
color: white !important;
font-weight: bold;
border-radius: 6px !important;
box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
}
.generate-btn:hover {
background: #333333 !important;
}
/* === Dropdown & Textbox Overrides === */
.gradio-dropdown, .gradio-textbox {
border-radius: 6px !important;
border: 1px solid #d0d0d0 !important;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.04) !important;
}
/* === Slider Overrides === */
.gradio-slider {
border-radius: 6px !important;
}
/* βββ Two-Phase Generation: Disabled States βββββββββββββββββββββββ */
.europalex-btn-disabled {
opacity: 0.45;
cursor: not-allowed;
pointer-events: none;
}
.europalex-toggle-disabled .md:has(input[type="checkbox"]) {
opacity: 0.45;
cursor: not-allowed;
pointer-events: none;
}
/* Card placeholder back side styling */
.card-placeholder-back {
border-top: 2px dashed #d0d0d0;
padding-top: 6px;
font-size: 0.78em;
color: #aaaaaa;
min-height: 1.2em;
}
|