Spaces:
Build error
Build error
| /* EuropaLex Custom CSS β Plain White */ | |
| /* === Page Background: White === */ | |
| body, .gradio-container { | |
| background: #ffffff ; | |
| min-height: 100vh; | |
| } | |
| /* Hide Gradio's default top bar */ | |
| .header { | |
| background: transparent ; | |
| box-shadow: none ; | |
| } | |
| /* === App Container === */ | |
| .main-app-container { | |
| background: #ffffff ; | |
| border-radius: 10px ; | |
| box-shadow: 0 1px 3px rgba(0,0,0,0.08) ; | |
| padding: 20px ; | |
| } | |
| /* === Input Panel Styling === */ | |
| .input-panel { | |
| padding: 10px 0; | |
| } | |
| .input-panel .form { | |
| gap: 12px ; | |
| } | |
| /* === Flashcard Gallery Layout === */ | |
| .flashcard-gallery { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 16px; | |
| justify-content: center; | |
| padding: 16px 0; | |
| } | |
| /* === Individual Flashcard === */ | |
| .flashcard { | |
| background: #ffffff ; | |
| border-radius: 8px ; | |
| padding: 14px 16px ; | |
| box-shadow: 0 1px 3px rgba(0,0,0,0.1) ; | |
| border: 1px solid #e0e0e0 ; | |
| 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) ; | |
| 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% ; | |
| height: 32px ; | |
| } | |
| /* 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 ; | |
| background: #f0f0f0 ; | |
| color: #999999 ; | |
| border-radius: 6px ; | |
| font-size: 0.75em ; | |
| cursor: default ; | |
| opacity: 0.55 ; | |
| text-decoration: line-through ; | |
| box-shadow: none ; | |
| } | |
| .export-btn:hover { | |
| opacity: 0.55 ; | |
| transform: none ; | |
| } | |
| /* === 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 ; | |
| color: white ; | |
| font-weight: bold; | |
| border-radius: 6px ; | |
| box-shadow: 0 1px 3px rgba(0,0,0,0.15) ; | |
| } | |
| .generate-btn:hover { | |
| background: #333333 ; | |
| } | |
| /* === Dropdown & Textbox Overrides === */ | |
| .gradio-dropdown, .gradio-textbox { | |
| border-radius: 6px ; | |
| border: 1px solid #d0d0d0 ; | |
| box-shadow: inset 0 1px 2px rgba(0,0,0,0.04) ; | |
| } | |
| /* === Slider Overrides === */ | |
| .gradio-slider { | |
| border-radius: 6px ; | |
| } | |
| /* βββ 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; | |
| } | |