Spaces:
Sleeping
Sleeping
Download style.css from helmfridsson/systeminforande: direct link, hf CLI and curl.
- Browser
- Download file 21.6 kB
-
https://huggingface.co/spaces/helmfridsson/systeminforande/resolve/main/style.css
- Command line
-
hf download hf://spaces/helmfridsson/systeminforande/style.css
-
curl -L -o style.css https://huggingface.co/spaces/helmfridsson/systeminforande/resolve/main/style.css
21.6 kB
| /* =============================== | |
| Tvinga vit bakgrund i HF Spaces | |
| =============================== */ | |
| html, body { | |
| background: #ffffff ; | |
| min-height: auto ; | |
| overflow-x: hidden ; | |
| } | |
| /* Gradio root */ | |
| .gradio-container { | |
| background: #ffffff ; | |
| border: none ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| .gradio-container > .wrap { | |
| background: #ffffff ; | |
| border: none ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| /* HF wrapper runt appen */ | |
| #root, | |
| #app, | |
| .app, | |
| main { | |
| background: #ffffff ; | |
| border: none ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| .gradio-container > .main, | |
| .gradio-container > .main > .wrap, | |
| .gradio-container .contain, | |
| .gradio-container .contain > .tabs, | |
| .gradio-container .block, | |
| .gradio-container .form { | |
| background: #ffffff ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| .gradio-container:focus, | |
| .gradio-container:focus-visible, | |
| .gradio-container:focus-within, | |
| .gradio-container > .wrap:focus, | |
| .gradio-container > .wrap:focus-visible, | |
| .gradio-container > .wrap:focus-within, | |
| .gradio-container > .main:focus, | |
| .gradio-container > .main:focus-visible, | |
| .gradio-container > .main:focus-within, | |
| .gradio-container > .main > .wrap:focus, | |
| .gradio-container > .main > .wrap:focus-visible, | |
| .gradio-container > .main > .wrap:focus-within, | |
| .gradio-container .contain:focus, | |
| .gradio-container .contain:focus-visible, | |
| .gradio-container .contain:focus-within { | |
| border: none ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| /* ===================================================== | |
| 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; | |
| } | |
| .app-header-row { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 12px; | |
| margin: 12px 0 18px 0; | |
| padding: 0; | |
| background: #ffffff ; | |
| } | |
| .app-header-logo { | |
| width: 72px; | |
| height: 72px; | |
| object-fit: contain; | |
| display: block; | |
| background: transparent ; | |
| } | |
| .app-header-row .title { | |
| margin: 0; | |
| text-align: left; | |
| background: transparent ; | |
| } | |
| h2, h3, h4, p, span, label, li { | |
| color: #000000 ; | |
| background-color: #ffffff ; | |
| background: #ffffff ; | |
| border: none ; | |
| } | |
| .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 ; | |
| } | |
| /* ===================================================== | |
| FLIKAR | |
| ===================================================== */ | |
| .tabs, | |
| .tabs > div, | |
| .tabs .tab-wrapper, | |
| .tabs .tab-nav, | |
| .tabs .tabitem { | |
| background: #ffffff ; | |
| border: none ; | |
| box-shadow: none ; | |
| outline: none ; | |
| } | |
| .tabs .tab-nav { | |
| display: flex ; | |
| } | |
| button[role="tab"] { | |
| flex: 1 1 0 ; | |
| justify-content: center ; | |
| text-align: center ; | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 12px ; | |
| color: #1e5bd7 ; | |
| background: #ffffff ; | |
| font-weight: 700 ; | |
| letter-spacing: 0.02em; | |
| } | |
| button[role="tab"][aria-selected="true"] { | |
| background: #eef3ff ; | |
| } | |
| .tabitem { | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| .tabs:focus, | |
| .tabs:focus-visible, | |
| .tabs:focus-within, | |
| .tabs > div:focus, | |
| .tabs > div:focus-visible, | |
| .tabs > div:focus-within, | |
| .tabs .tab-wrapper:focus, | |
| .tabs .tab-wrapper:focus-visible, | |
| .tabs .tab-wrapper:focus-within, | |
| .tabs .tabitem:focus, | |
| .tabs .tabitem:focus-visible, | |
| .tabs .tabitem:focus-within, | |
| .gradio-container .form:has(.tabs), | |
| .gradio-container div.form:has(.tabs), | |
| .gradio-container .block:has(.tabs), | |
| .gradio-container .wrap:has(.tabs) { | |
| border: none ; | |
| box-shadow: none ; | |
| outline: none ; | |
| background: #ffffff ; | |
| } | |
| .tab-intro { | |
| text-align: center; | |
| margin: 8px 0 14px 0; | |
| font-size: 15px; | |
| } | |
| /* ===================================================== | |
| HUVUDFRÅGOR (Buttons / Cards) | |
| ===================================================== */ | |
| .main-card-grid { | |
| display: grid ; | |
| grid-template-columns: repeat(4, minmax(190px, 1fr)) ; | |
| gap: 28px ; | |
| align-items: stretch ; | |
| justify-content: center ; | |
| width: 100% ; | |
| margin: 22px auto 28px auto ; | |
| } | |
| .main-card-grid > .card { | |
| min-width: 0 ; | |
| width: 100% ; | |
| } | |
| .card-shell { | |
| width: 100%; | |
| max-width: 240px; | |
| height: 130px; | |
| margin: 0 auto; | |
| background: #ffffff ; | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 14px ; | |
| display: flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| padding: 12px; | |
| box-sizing: border-box ; | |
| transition: background-color 0.15s ease, box-shadow 0.15s ease; | |
| } | |
| .card-shell.selected { | |
| background: #eef3ff ; | |
| box-shadow: inset 0 0 0 1px rgba(30, 91, 215, 0.08); | |
| } | |
| button.gr-button.card { | |
| background-color: #ffffff ; | |
| color: #000000 ; | |
| border: none ; | |
| 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: 13px; | |
| line-height: 1.2; | |
| color: #000000; | |
| } | |
| /* Huvudfråga – normal text */ | |
| .card-question { | |
| font-weight: 400; | |
| font-size: 12px; | |
| line-height: 1.25; | |
| color: #000000; | |
| } | |
| .card { | |
| position: relative; | |
| padding: 12px; | |
| background: transparent ; | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| /* 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; | |
| } | |
| @media (max-width: 980px) { | |
| .main-card-grid { | |
| grid-template-columns: repeat(2, minmax(220px, 1fr)) ; | |
| max-width: 620px ; | |
| } | |
| } | |
| @media (max-width: 560px) { | |
| .main-card-grid { | |
| grid-template-columns: 1fr ; | |
| max-width: 280px ; | |
| gap: 18px ; | |
| } | |
| } | |
| /* ===================================================== | |
| FAQ | |
| ===================================================== */ | |
| .question-list, | |
| .question-list *, | |
| .question-list > div, | |
| .question-list > div > div, | |
| .question-list .wrap, | |
| .question-list .wrap-inner, | |
| .question-list .form, | |
| .question-list .block, | |
| .question-list .container, | |
| .question-list fieldset, | |
| .question-list legend, | |
| .question-list label[data-testid="block-label"], | |
| .question-list label, | |
| .question-list .gr-radio { | |
| background: #ffffff ; | |
| border: none ; | |
| outline: none ; | |
| box-shadow: none ; | |
| } | |
| .question-list { | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 16px ; | |
| padding: 6px ; | |
| min-height: 0 ; | |
| height: auto ; | |
| overflow: visible ; | |
| box-sizing: border-box ; | |
| } | |
| .gradio-container .form:has(.question-list), | |
| .gradio-container div.form:has(.question-list), | |
| .gradio-container .block:has(.question-list) { | |
| background: #ffffff ; | |
| border: none ; | |
| border-radius: 0 ; | |
| box-shadow: none ; | |
| outline: none ; | |
| padding: 0 ; | |
| } | |
| .question-list > div, | |
| .question-list > div > div, | |
| .question-list fieldset, | |
| .question-list .wrap, | |
| .question-list .wrap-inner, | |
| .question-list .block, | |
| .question-list .container, | |
| .question-list .form { | |
| box-shadow: none ; | |
| border-color: transparent ; | |
| } | |
| .question-list::before, | |
| .question-list::after, | |
| .question-list > div::before, | |
| .question-list > div::after, | |
| .question-list > div > div::before, | |
| .question-list > div > div::after, | |
| .question-list fieldset::before, | |
| .question-list fieldset::after { | |
| display: none ; | |
| content: none ; | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| .question-list label[data-testid="block-label"], | |
| .question-list legend { | |
| display: none ; | |
| } | |
| .question-list:focus, | |
| .question-list:focus-visible, | |
| .question-list:focus-within, | |
| .question-list > div:focus, | |
| .question-list > div:focus-visible, | |
| .question-list > div:focus-within, | |
| .question-list fieldset:focus-within { | |
| outline: none ; | |
| box-shadow: none ; | |
| border-color: transparent ; | |
| } | |
| .question-list .gr-radio { | |
| display: flex ; | |
| flex-direction: column ; | |
| gap: 6px ; | |
| } | |
| .question-list .gr-radio label, | |
| .question-list label[data-testid="radio-label"] { | |
| display: block ; | |
| width: 100% ; | |
| margin: 0 ; | |
| padding: 10px 14px ; | |
| border-radius: 12px ; | |
| color: #000000 ; | |
| cursor: pointer ; | |
| box-sizing: border-box ; | |
| background: #ffffff ; | |
| } | |
| .question-list .gr-radio label::before, | |
| .question-list .gr-radio label::after, | |
| .question-list label[data-testid="radio-label"]::before, | |
| .question-list label[data-testid="radio-label"]::after, | |
| .question-list input[type="radio"] + *::before, | |
| .question-list input[type="radio"] + span::before { | |
| display: none ; | |
| content: none ; | |
| } | |
| .question-list input[type="radio"] { | |
| display: none ; | |
| } | |
| .question-list .gr-radio label span, | |
| .question-list label[data-testid="radio-label"] span { | |
| display: block ; | |
| margin: 0 ; | |
| padding: 0 ; | |
| border: none ; | |
| background: transparent ; | |
| white-space: normal ; | |
| word-break: break-word ; | |
| overflow-wrap: anywhere ; | |
| font-family: Arial, Helvetica, sans-serif ; | |
| font-size: 14px ; | |
| line-height: 1.45 ; | |
| color: #000000 ; | |
| } | |
| .question-list .gr-radio label:hover, | |
| .question-list label[data-testid="radio-label"]:hover, | |
| .question-list input[type="radio"]:checked + span, | |
| .question-list label[data-testid="radio-label"]:has(input[type="radio"]:checked) { | |
| background: #eef3ff ; | |
| border-radius: 12px ; | |
| } | |
| /* ===================================================== | |
| MEDDELANDE (Textbox) – STABIL LÖSNING | |
| ===================================================== */ | |
| /* Yttre container */ | |
| .message-box { | |
| background: #ffffff ; | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 16px ; | |
| padding: 12px ; | |
| min-height: 170px; | |
| box-shadow: none ; | |
| box-sizing: border-box ; | |
| } | |
| .gradio-container .message-box, | |
| .gradio-container .message-box > div, | |
| .gradio-container .message-box > label, | |
| .gradio-container .message-box > .wrap, | |
| .gradio-container .message-box .wrap, | |
| .gradio-container .message-box .block, | |
| .gradio-container .message-box .block-label, | |
| .gradio-container .message-box .form { | |
| border-color: #1e5bd7 ; | |
| border-radius: 16px ; | |
| box-shadow: none ; | |
| background: #ffffff ; | |
| } | |
| .gradio-container .form:has(.message-box), | |
| .gradio-container div.form:has(.message-box) { | |
| background: #ffffff ; | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 16px ; | |
| box-shadow: none ; | |
| padding: 0 ; | |
| } | |
| .gradio-container .message-box::before, | |
| .gradio-container .message-box::after, | |
| .gradio-container .message-box > div::before, | |
| .gradio-container .message-box > div::after, | |
| .gradio-container .message-box > label::before, | |
| .gradio-container .message-box > label::after, | |
| .gradio-container .message-box .wrap::before, | |
| .gradio-container .message-box .wrap::after { | |
| display: none ; | |
| content: none ; | |
| border: none ; | |
| box-shadow: none ; | |
| } | |
| /* 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 ; | |
| border-radius: 16px ; | |
| } | |
| /* Label-container som Gradio använder för extra ram */ | |
| .message-box label.show_textbox_border { | |
| border: none ; | |
| box-shadow: none ; | |
| background: #ffffff ; | |
| border-radius: 16px ; | |
| } | |
| /* Själva textarea – ALL text ritas här */ | |
| .message-box textarea { | |
| width: 100% ; | |
| min-height: 120px ; | |
| overflow-y: auto ; | |
| background-color: #ffffff ; | |
| color: #000000 ; | |
| border: none ; | |
| outline: none ; | |
| resize: none; | |
| font-size: 15px; | |
| line-height: 1.4; | |
| -webkit-text-fill-color: #000000 ; | |
| } | |
| .message-box .scroll-hide, | |
| .message-box .hide-container { | |
| overflow: visible ; | |
| } | |
| /* 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: 0 ; | |
| border-radius: 16px ; | |
| } | |
| /* Säkerhetsnät – om Gradio ändrar klassnamn */ | |
| .block:has(.message-box) > label { | |
| border: none ; | |
| background: #ffffff ; | |
| box-shadow: none ; | |
| border-radius: 16px ; | |
| } | |
| .gradio-container .message-box textarea, | |
| .gradio-container .message-box textarea:focus, | |
| .gradio-container .message-box textarea:focus-visible, | |
| .gradio-container .message-box textarea:active { | |
| border: none ; | |
| outline: none ; | |
| box-shadow: none ; | |
| } | |
| .message-box + .row, | |
| .message-box ~ .row { | |
| margin-top: -6px ; | |
| } | |
| .message-box ~ .row .send-btn, | |
| .message-box ~ .row button.gr-button.send-btn { | |
| margin-top: 0 ; | |
| } | |
| /* =============================== | |
| 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: 260px; | |
| padding: 14px; | |
| } | |
| .answer-box * { | |
| color: #000000 ; | |
| background: #ffffff ; | |
| border: none ; | |
| /*border: 2px solid #000000 !important; | |
| border-radius: 10px !important;*/ | |
| } | |
| .answer-box h1, | |
| .answer-box h2, | |
| .answer-box h3, | |
| .answer-box h4 { | |
| margin-top: 0 ; | |
| } | |
| .answer-box .faq-example-label { | |
| margin: 0.35rem 0 0.6rem ; | |
| font-size: 1.08rem ; | |
| line-height: 1.4 ; | |
| font-weight: 700 ; | |
| } | |
| .answer-box .faq-example-label strong { | |
| font-weight: 700 ; | |
| } | |
| .answer-note { | |
| margin-top: 8px ; | |
| font-size: 13px ; | |
| color: #000000 ; | |
| } | |
| .answer-note, | |
| .answer-note * { | |
| background: #ffffff ; | |
| color: #000000 ; | |
| } | |
| /* =============================== | |
| 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, | |
| .gradio-container .send-btn, | |
| .gradio-container .send-btn button { | |
| background-color: #1e5bd7 ; | |
| color: #ffffff ; | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 10px ; | |
| box-shadow: none ; | |
| font-weight: 600; | |
| --button-primary-background-fill: #1e5bd7 ; | |
| --button-primary-background-fill-hover: #1748aa ; | |
| --button-primary-text-color: #ffffff ; | |
| } | |
| .gradio-container button.gr-button.send-btn:hover { | |
| background-color: #1748aa ; | |
| border-color: #1748aa ; | |
| } | |
| .gradio-container .send-btn *, | |
| .gradio-container button.send-btn * { | |
| color: #ffffff ; | |
| } | |
| /* =============================== | |
| 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: #1e5bd7 ; | |
| color: #ffffff ; | |
| border: 2px solid #1e5bd7 ; | |
| border-radius: 10px ; | |
| box-shadow: none ; | |
| } | |
| .gradio-container button.gr-button.secondary:hover, | |
| .gradio-container button.gr-button.primary:hover { | |
| background-color: #1748aa ; | |
| border-color: #1748aa ; | |
| } | |
| /* =============================== | |
| DÖLJ GRADIO-FOOTER I EMBED | |
| =============================== */ | |
| footer, | |
| .gradio-container footer, | |
| .gradio-container .footer, | |
| .gradio-container a[href*="gradio.app"], | |
| .gradio-container a[href*="api"], | |
| .gradio-container button[aria-label*="Settings"], | |
| .gradio-container button[title*="Settings"] { | |
| display: none ; | |
| } | |
| .gradio-container .built-with, | |
| .gradio-container .prose footer, | |
| .gradio-container [class*="footer-links"] { | |
| display: none ; | |
| } | |
| /* =============================== | |
| 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; | |
| } | |