Spaces:
Sleeping
Sleeping
| /* =============================== | |
| Tvinga vit bakgrund i HF Spaces | |
| =============================== */ | |
| html, body { | |
| background: #ffffff ; | |
| } | |
| /* Gradio root */ | |
| .gradio-container { | |
| background: #ffffff ; | |
| } | |
| } | |
| /* HF wrapper runt appen */ | |
| #root, | |
| #app, | |
| .app, | |
| main { | |
| background: #ffffff ; | |
| } | |
| /* ===================================================== | |
| BAS / RESET (kontrollerad) | |
| ===================================================== */ | |
| :root { | |
| color-scheme: light ; | |
| --body-background-fill: #ffffff ; | |
| --background-fill-primary: #ffffff ; | |
| --body-text-color: #000000 ; | |
| --block-label-background-fill: #ffffff ; | |
| --background-fill-secondary: #ffffff ; | |
| --panel-background-fill: #ffffff ; | |
| --block-label-text-color: #000000 ; | |
| --checkbox-background-color: #ffffff; | |
| } | |
| body { | |
| background: #ffffff ; | |
| color: #000000 ; | |
| font-family: Arial, Helvetica, sans-serif; | |
| } | |
| h1 { | |
| color: #1e5bd7 ; | |
| text-align: center; | |
| } | |
| h2, h3, h4, p, span, label, li { | |
| color: #000000 ; | |
| background-color: #ffffff ; | |
| background: #ffffff ; | |
| border: none ; | |
| } | |
| /* =============================== | |
| BILD – brain.png (SLUTGILTIG) | |
| =============================== */ | |
| /* Dölj bildens toolbar (zoom / download / share) */ | |
| .brain-icon .image-toolbar, | |
| .brain-icon button, | |
| .brain-icon [role="toolbar"] { | |
| display: none ; | |
| } | |
| /* Själva bilden */ | |
| .brain-icon img { | |
| width: 100px; | |
| height: auto; | |
| pointer-events: none; !important; | |
| user-select: none; !important; | |
| display: block; | |
| margin: 0 auto; | |
| border: none ; | |
| } | |
| .icon-button-wrapper { | |
| display: none; | |
| border: none ; | |
| } | |
| /* =============================== | |
| TA BORT GRADIO IMAGE TOOLBAR | |
| =============================== */ | |
| /* Själva toolbaren */ | |
| .brain-icon .image-toolbar { | |
| display: none ; | |
| } | |
| /* Alla toolbar-knappar (säkerhetsnät) */ | |
| .brain-icon button, | |
| .brain-icon [role="toolbar"] { | |
| display: none ; | |
| } | |
| /* Se till att bilden inte är klickbar */ | |
| .brain-icon img { | |
| pointer-events: none; | |
| user-select: none; | |
| } | |
| .icon-button-wrapper, | |
| .image-container, | |
| .brain-header { | |
| border: none ; | |
| } | |
| /* =============================== | |
| TOP HEADER – BRAIN IMAGE | |
| =============================== */ | |
| .header { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| padding: 16px 0 8px 0; | |
| background: #ffffff; | |
| } | |
| /* Själva bilden */ | |
| .brain-header { | |
| max-width: 120px; | |
| height: auto; | |
| display: block; | |
| } | |
| .brain-icon img { | |
| display: block; | |
| margin: 0 auto; | |
| width: 120px; | |
| } | |
| .gradio-container hr { | |
| display: none ; | |
| } | |
| /* =============================== | |
| TA BORT GRADIO TOP BAR / BLÅ LINJE | |
| =============================== */ | |
| /* Gradio container header */ | |
| .gradio-container > header, | |
| .gradio-container > footer, | |
| .gradio-container .topbar, | |
| .gradio-container .app-header { | |
| display: none ; | |
| } | |
| /* Ibland ligger den som hr */ | |
| .gradio-container hr { | |
| display: none ; | |
| } | |
| /* Ta bort Gradio-h1-linjen */ | |
| .prose h1 { | |
| border-bottom: none ; | |
| } | |
| /* Header */ | |
| .header { | |
| display: flex; | |
| justify-content: center; | |
| margin: 20px 0; | |
| } | |
| .brain-header { | |
| width: 120px; | |
| height: auto; | |
| } | |
| /* ===================================================== | |
| HUVUDFRÅGOR (Buttons / Cards) | |
| ===================================================== */ | |
| .card, | |
| .card .wrap, | |
| .card.gr-button { | |
| background-color: #ffffff ; | |
| color: #000000 ; | |
| width: 260px; | |
| height: 150px; | |
| background: #ffffff ; | |
| color: #000000 ; | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 14px ; | |
| display: inline-flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| text-align: center; | |
| line-height: 1.2; | |
| white-space: normal; | |
| } | |
| .card.gr-button:hover { | |
| background: #eef3ff ; | |
| } | |
| button.gr-button.card { | |
| background-color: #ffffff ; | |
| color: #000000 ; | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 14px ; | |
| } | |
| /* Innehåll i huvudfråge-kort */ | |
| .card-content { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| text-align: center; | |
| } | |
| /* Titel – fet */ | |
| .card-title { | |
| font-weight: 700; | |
| font-size: 14px; | |
| color: #000000; | |
| } | |
| /* Huvudfråga – normal text */ | |
| .card-question { | |
| font-weight: 400; | |
| font-size: 13px; | |
| color: #000000; | |
| } | |
| .card { | |
| position: relative; | |
| padding: 12px; | |
| } | |
| /* Osynlig klick-yta */ | |
| .card-overlay { | |
| position: absolute ; | |
| inset: 0; | |
| opacity: 0; | |
| cursor: pointer; | |
| } | |
| .card { | |
| position: relative; | |
| padding: 12px; | |
| } | |
| /* Osynlig klickyta ovanpå kortet */ | |
| .card-overlay { | |
| position: absolute ; | |
| inset: 0; | |
| opacity: 0; | |
| cursor: pointer; | |
| } | |
| /* ===================================================== | |
| UNDERFRÅGOR (Dataframe / ag-grid) | |
| ===================================================== */ | |
| /* Ytterram */ | |
| .question-list *, | |
| .question-list .wrap, | |
| .question-list .table, | |
| .question-list .cell-menu-button, | |
| .question-list .thead, | |
| .question-list .header-button, | |
| .question-list .text, | |
| .question-list .cell-wrap, | |
| .question-list .header-content, | |
| .question-list.gr-box { | |
| background: #ffffff ; | |
| border: none ; | |
| } | |
| .question-list { | |
| background: #ffffff ; | |
| border: none ; | |
| min-height: 220px; | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 16px ; | |
| padding: 10px; | |
| } | |
| /* | |
| .question-list cell-wrap{ | |
| background: #ffffff !important; | |
| }*/ | |
| /* Ta bort ALLA inre ramar */ | |
| .question-list *, | |
| .question-list .ag-root, | |
| .question-list .ag-body, | |
| .question-list .ag-body-viewport, | |
| .question-list .ag-center-cols-container, | |
| .question-list .ag-row, | |
| .question-list .ag-cell { | |
| border: none ; | |
| box-shadow: none ; | |
| background: #ffffff ; | |
| color: #000000 ; | |
| } | |
| /* Ta bort svart header-rad */ | |
| .question-list .ag-header { | |
| display: none ; | |
| } | |
| /* Celler */ | |
| .question-list td { | |
| background: #ffffff ; | |
| color: #000000 ; | |
| padding: 10px; | |
| cursor: pointer; | |
| } | |
| /* Hover */ | |
| .question-list tr:hover td { | |
| background: #eef3ff ; | |
| } | |
| /* Ingen orange selection */ | |
| .question-list .ag-row-selected { | |
| background: #eef3ff ; | |
| } | |
| /* Ingen fokusram */ | |
| .question-list *:focus { | |
| outline: none ; | |
| box-shadow: none ; | |
| } | |
| /* Ingen scrollbar */ | |
| .question-list, | |
| .question-list .ag-root, | |
| .question-list .ag-body-viewport { | |
| overflow: hidden ; | |
| } | |
| /* Yttre ram – behåll */ | |
| .question-list { | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 16px ; | |
| background: #ffffff ; | |
| } | |
| /* Tillåt intern scroll (annars buggar ag-grid) */ | |
| .question-list .ag-body-viewport { | |
| overflow-y: auto ; | |
| } | |
| /* Markering av vald rad */ | |
| .question-list .ag-row-selected, | |
| .question-list .ag-row-selected .ag-cell { | |
| background-color: #eef3ff ; | |
| } | |
| /* Hover */ | |
| .question-list .ag-row:hover .ag-cell { | |
| background-color: #eef3ff ; | |
| } | |
| /* Ta bort onödiga ramar */ | |
| .question-list .ag-cell, | |
| .question-list .ag-row { | |
| border: none ; | |
| } | |
| /* Ta bort markeringsrutor / fokusramar helt */ | |
| .question-list .ag-cell-focus, | |
| .question-list .ag-cell-focus:focus, | |
| .question-list .ag-cell-focus:focus-visible, | |
| .question-list .ag-row-focus, | |
| .question-list .ag-row-focus * { | |
| outline: none ; | |
| box-shadow: none ; | |
| } | |
| /* Ta bort selection-outline */ | |
| .question-list .ag-cell::after { | |
| display: none ; | |
| } | |
| /* ===================================================== | |
| MEDDELANDE (Textbox) – STABIL LÖSNING | |
| ===================================================== */ | |
| /* Yttre container */ | |
| .message-box { | |
| background: #ffffff ; | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 16px ; | |
| padding: 10px ; | |
| min-height: 220px; | |
| } | |
| /* Ta bort Gradio-inre effekter */ | |
| .message-box .wrap, | |
| .message-box.gr-box { | |
| background: #ffffff ; | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| /* YTTRE BLOCK – döda Gradio-ram + mörka hörn */ | |
| .block.message-box { | |
| background: #ffffff ; | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| /* Label-container som Gradio använder för extra ram */ | |
| .message-box label.show_textbox_border { | |
| border: none ; | |
| box-shadow: none ; | |
| background: #ffffff ; | |
| } | |
| /* Själva textarea – ALL text ritas här */ | |
| .message-box textarea { | |
| width: 100% ; | |
| /*padding: 14px !important;*/ | |
| background-color: #ffffff ; | |
| color: #000000 ; | |
| border: none ; | |
| outline: none ; | |
| resize: none; | |
| font-size: 15px; | |
| line-height: 1.4; | |
| -webkit-text-fill-color: #000000 ; | |
| } | |
| /* Placeholder */ | |
| .message-box textarea::placeholder { | |
| color: #6b6b6b ; | |
| opacity: 1 ; | |
| } | |
| /* =============================== | |
| TA BORT YTTRE GRADIO-RAM PÅ TEXTBOX | |
| =============================== */ | |
| /* Label-containern runt textbox */ | |
| label.show_textbox_border, | |
| label.container.show_textbox_border { | |
| border: none ; | |
| background: #ffffff ; | |
| box-shadow: none ; | |
| padding: 10px ; | |
| } | |
| /* Säkerhetsnät – om Gradio ändrar klassnamn */ | |
| .block:has(.message-box) > label { | |
| border: none ; | |
| background: #ffffff ; | |
| box-shadow: none ; | |
| } | |
| /* =============================== | |
| TA BORT FOCUS-RUTA I TEXTAREA | |
| =============================== */ | |
| /* Browser focus */ | |
| .message-box textarea:focus, | |
| .message-box textarea:focus-visible, | |
| .message-box textarea:active { | |
| outline: none ; | |
| box-shadow: none ; | |
| } | |
| /* Gradio / Svelte focus-layer */ | |
| .message-box textarea::after, | |
| .message-box textarea::before { | |
| display: none ; | |
| } | |
| /* Om Gradio lägger focus på wrapper */ | |
| .message-box .wrap:focus, | |
| .message-box .wrap:focus-within { | |
| outline: none ; | |
| box-shadow: none ; | |
| border-color: #1e5bd7 ; /* behåll din blå ram */ | |
| } | |
| /* Safari / Chromium specialfall */ | |
| .message-box textarea { | |
| -webkit-tap-highlight-color: #ffffff ; | |
| } | |
| /* ===================================================== | |
| SVAR | |
| ===================================================== */ | |
| .answer-box .wrap, | |
| .answer-box.gr-box { | |
| color: #1e5bd7 ; | |
| background: #ffffff ; | |
| border: none ; | |
| } | |
| .answer-box { | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 10px ; | |
| min-height: 220px; | |
| padding: 10px; | |
| } | |
| .answer-box * { | |
| color: #000000 ; | |
| background: #ffffff ; | |
| border: none ; | |
| /*border: 2px solid #000000 !important; | |
| border-radius: 10px !important;*/ | |
| } | |
| /* =============================== | |
| SKICKA & RENSA – ABSOLUT LJUST | |
| =============================== */ | |
| .gradio-container button.gr-button.send-btn, | |
| .gradio-container button.gr-button.send-btn.primary, | |
| .gradio-container button.gr-button.send-btn.secondary { | |
| background-color: #ffffff ; | |
| color: #000000 ; | |
| border: 2px solid #000000 ; | |
| border-radius: 10px ; | |
| box-shadow: none ; | |
| font-weight: 600; | |
| --button-primary-background-fill: #ffffff ; | |
| --button-primary-background-fill-hover: #f2f2f2 ; | |
| --button-primary-text-color: #000000 ; | |
| } | |
| .gradio-container button.gr-button.send-btn:hover { | |
| background-color: #f2f2f2 ; | |
| } | |
| /* =============================== | |
| CHECKBOX – TA BORT SVART BAKGRUND | |
| =============================== */ | |
| /* Wrapper runt checkbox */ | |
| .gradio-container .gr-checkbox, | |
| .gradio-container .gr-checkbox *, | |
| .gradio-container .form:has(.gr-checkbox) { | |
| background: #ffffff ; | |
| box-shadow: none ; | |
| border: none ; | |
| } | |
| /* Själva checkboxen */ | |
| .gradio-container .gr-checkbox input[type="checkbox"] { | |
| accent-color: #000000; | |
| } | |
| /* Texten */ | |
| .gradio-container .gr-checkbox label { | |
| color: #000000 ; | |
| font-weight: 500; | |
| } | |
| /* =============================== | |
| TA BORT SVARTA HÖRN I MEDDELANDE | |
| =============================== */ | |
| label.show_textbox_border::before, | |
| label.show_textbox_border::after { | |
| display: none ; | |
| content: none ; | |
| } | |
| label.show_textbox_border { | |
| background: #ffffff ; | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| /* =============================== | |
| TVINGA LJUSA KNAPPAR (ÄVEN SECONDARY) | |
| =============================== */ | |
| .gradio-container button.gr-button.secondary, | |
| .gradio-container button.gr-button.primary { | |
| background-color: #ffffff ; | |
| color: #000000 ; | |
| border: 2px solid #000000 ; | |
| border-radius: 10px ; | |
| box-shadow: none ; | |
| } | |
| .gradio-container button.gr-button.secondary:hover, | |
| .gradio-container button.gr-button.primary:hover { | |
| background-color: #f2f2f2 ; | |
| } | |
| /* =============================== | |
| TA BORT SVART PLATTA BAKOM CHECKBOX | |
| =============================== */ | |
| .gradio-container .form:has(.gr-checkbox) { | |
| background: #ffffff ; | |
| box-shadow: none ; | |
| border: none ; | |
| } | |
| label.checkbox-container * input[type="checkbox"] { | |
| background-color: #ffffff ; | |
| border-color: #000000 ; | |
| /* You might also want to ensure the border style and width are consistent */ | |
| border-style: solid; | |
| border-width: 2px; | |
| } | |
| /* =============================== | |
| CHECKBOX – FUNGERANDE SVART BOCK | |
| =============================== */ | |
| /* | |
| .gradio-container input[type="checkbox"] { | |
| accent-color: #000000 !important; | |
| background-color: #ffffff !important; | |
| } | |
| */ | |
| .form .block{ | |
| background: #ffffff ; | |
| } | |
| /* =============================== | |
| CHECKBOX – KORREKT STYLING | |
| =============================== */ | |
| .gradio-container .gr-checkbox { | |
| --checkbox-background-color: #ffffff; | |
| --checkbox-border-color: #000000; | |
| } |