Spaces:
Sleeping
Sleeping
Download theme.css from msdkhairi/math2latex: direct link, hf CLI and curl.
- Browser
- Download file 10.1 kB
-
https://huggingface.co/spaces/msdkhairi/math2latex/resolve/main/theme.css
- Command line
-
hf download hf://spaces/msdkhairi/math2latex/theme.css
-
curl -L -o theme.css https://huggingface.co/spaces/msdkhairi/math2latex/resolve/main/theme.css
10.1 kB
| :root { color-scheme: light; } | |
| body { margin: 0; background: #f6f5f0 ; } | |
| .gradio-container { max-width: 1160px ; margin: 0 auto ; padding: 0 ; background: #f6f5f0 ; color: #202d35 ; } | |
| .gradio-container footer { display: none ; } | |
| .gradio-container .page-footer { display: flex ; } | |
| .gradio-container button, .gradio-container input, .gradio-container textarea { font-family: inherit; } | |
| .masthead { display: flex; align-items: center; justify-content: space-between; padding: 0 0 22px; border-bottom: 1px solid #dedfd6; } | |
| .wordmark { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 650; letter-spacing: -1px; } | |
| .brand-icon { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 11px; background: #df613c; color: white; font: italic 28px Georgia,serif; transform: rotate(-7deg); } | |
| .brand-icon span { font-size: 22px; margin-left: -3px; } | |
| .brand-two { color: #df613c; } | |
| .nav-note { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: #66716d; } | |
| .status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #668475; } | |
| .status-dot.muted { background: #b1b9ac; } | |
| #hero { gap: 48px ; padding: 32px 0 24px; align-items: center; } | |
| .hero-copy .eyebrow { margin-bottom: 13px; font-size: 11px; letter-spacing: 1.9px; font-weight: 700; color: #718078; } | |
| .hero-copy h1 { margin: 0; font: 55px/.99 Georgia,'Times New Roman',serif; letter-spacing: -2.2px; color: #202d35; } | |
| .hero-copy h1 em { color: #df613c; font-weight: 400; } | |
| .hero-copy p { margin: 16px 0 0; font-size: 15px; line-height: 1.7; color: #66716d; } | |
| #hero-aside { align-items: center; justify-content: center; overflow: visible ; } | |
| .formula-note { position: relative; max-width: 305px; margin: 8px auto; padding: 22px 24px 17px; border: 1px solid #dfdfd4; border-radius: 13px; background: #eeefe6; transform: rotate(3deg); box-shadow: 7px 9px 0 #e6e7dd; } | |
| .note-label { color: #788474; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; } | |
| .note-formula { padding: 17px 0 20px; font: italic 44px Georgia,serif; letter-spacing: -1px; color: #3b5147; } | |
| .note-formula span { position: relative; top: -17px; font-size: 25px; } | |
| .note-bottom { display: flex; gap: 10px; align-items: center; } | |
| .note-file { font: 9px ui-monospace,monospace; color: #7b8378; } | |
| .note-file.active { color: #40554a; background: #dfe5d8; padding: 6px 8px; border-radius: 4px; } | |
| .note-arrow { font-size: 22px; color: #df613c; } | |
| .note-spark { position: absolute; top: 25px; right: 19px; font: 35px Georgia,serif; color: #df613c; } | |
| #workspace { gap: 22px ; align-items: stretch; } | |
| .workspace-card { min-width: 0 ; padding: 24px ; border: 1px solid #e0e2d9 ; border-radius: 18px ; background: #fff ; box-shadow: 0 5px 20px #202d3505 ; gap: 12px ; } | |
| .card-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 3px; } | |
| .step-number { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #ad603f; background: #fbede5; font: 10px ui-monospace,monospace; } | |
| .result-step { background: #eaf0e7; color: #627557; } | |
| .card-heading h2 { margin: 0; color: #26363a; font-size: 19px; font-weight: 600; letter-spacing: -.5px; } | |
| .card-heading p { margin: 4px 0 0; font-size: 12px; color: #78827b; } | |
| .heading-symbol { font-size: 23px; color: #899a86; margin-left: auto; } | |
| #equation-upload { border: 1px dashed #cdd4c7 ; background: #fafbf7 ; border-radius: 12px ; overflow: hidden; } | |
| #equation-upload .upload-container { background: #fafbf7 ; } | |
| #equation-upload button, #equation-upload .upload-text { color: #66756a ; } | |
| #equation-upload img { object-fit: contain ; background: #fff; } | |
| .upload-hint { margin: -3px 0 1px; color: #7b857c; font-size: 12px; } | |
| .upload-hint span { color: #df613c; margin-right: 5px; } | |
| #convert-button { min-height: 47px; border-radius: 9px ; font-size: 13px ; font-weight: 600; letter-spacing: .1px; box-shadow: none ; } | |
| #convert-button:disabled { opacity: .6 ; } | |
| .examples-label { margin: 9px 0 0; font-size: 10px; font-weight: 650; letter-spacing: 1.3px; color: #8a9186; } | |
| #example-buttons { gap: 7px ; flex-wrap: nowrap ; } | |
| .example-chip { min-width: 0 ; min-height: 32px ; padding: 5px 8px ; border: 1px solid #e3e6dc ; background: #f8f9f4 ; color: #526650 ; font-size: 12px ; font-weight: 500 ; box-shadow: none ; border-radius: 7px ; } | |
| .example-chip:hover { background: #edf1e5 ; border-color: #b9c5af ; } | |
| #clear-button { align-self: center; background: transparent ; border: 0 ; box-shadow: none ; color: #849080 ; font-size: 12px ; min-height: 22px ; margin-top: 2px; } | |
| #preview-panel { background: #f6f7f1 ; border: 1px solid #e6e9df ; border-radius: 12px ; min-height: 202px; overflow: hidden; padding: 0 ; } | |
| .preview-label { padding: 14px 16px 0; font-size: 10px; font-weight: 650; color: #899582; letter-spacing: 1.3px; } | |
| .empty-preview { min-height: 150px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 10px 12px 18px; } | |
| .empty-math { color: #b7c0ac; font: italic 38px Georgia,serif; letter-spacing: -1px; margin-bottom: 10px; } | |
| .empty-preview strong { font-size: 12px; font-weight: 550; color: #718168; } | |
| .empty-preview p { margin: 7px 0 0; color: #939d8d; font-size: 12px; line-height: 1.6; } | |
| #math-preview { --equation-font-size: 24px; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; min-height: 180px; display: flex; align-items: center; justify-content: center; padding: 14px 20px; background: transparent ; overflow-x: hidden; } | |
| #math-preview .prose { min-width: 0; width: 100%; max-width: 100%; text-align: center; } | |
| #math-preview .katex-display { width: 100%; max-width: 100%; min-width: 0; margin: 0; overflow: visible; padding: 12px 0; text-align: center; } | |
| #math-preview .katex { color: #2b4239; } | |
| #math-preview .katex-display > .katex { display: inline-block; width: max-content; max-width: none; white-space: nowrap; font-size: var(--equation-font-size); } | |
| #latex-code { border: 1px solid #e5e6df ; border-radius: 10px ; background: #fff ; overflow: hidden; } | |
| #latex-code label { color: #6d7970 ; font-size: 11px ; font-weight: 500; } | |
| #latex-code textarea { font: 12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace ; color: #395446 ; background: #fafbf7 ; border: 0 ; padding: 13px ; } | |
| #result-meta { min-height: 18px; } | |
| .result-status { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #798675; min-height: 16px; } | |
| #result-actions { gap: 9px ; } | |
| #result-actions button { min-width: 0 ; min-height: 39px ; border-radius: 8px ; font-size: 12px ; box-shadow: none ; } | |
| #copy-latex { background: #395848 ; border: 1px solid #395848 ; color: white ; } | |
| #copy-latex:hover { background: #2b4639 ; } | |
| #download-latex { background: white ; color: #59705d ; border: 1px solid #dce3d5 ; } | |
| #result-actions button:disabled { opacity: .4 ; } | |
| .result-tip { margin: 3px 0 0; font-size: 11px; color: #92998e; text-align: center; } | |
| .page-footer { justify-content: space-between; align-items: center; gap: 20px; margin-top: 23px; padding: 0 2px; } | |
| .page-footer strong { display: block; font: italic 18px Georgia,serif; font-weight: 400; color: #66755e; } | |
| .page-footer span { display: block; font-size: 11px; margin-top: 5px; color: #8f9788; } | |
| .footer-credit { font-size: 10px; color: #919a8c; line-height: 1.8; text-align: right; } | |
| .footer-credit span { display: inline; margin: 0; font-size: 10px; color: #61785f; } | |
| button:focus-visible, textarea:focus-visible { outline: 2px solid #df613c ; outline-offset: 3px; } | |
| @media (prefers-reduced-motion: no-preference) { .workspace-card { animation: arrive .45s ease-out both; } #result-card { animation-delay: .06s; } @keyframes arrive { from {opacity: 0; transform: translateY(6px);} to {opacity: 1; transform: translateY(0);} } } | |
| @media (max-width: 740px) { | |
| .nav-note { font-size: 11px; } .wordmark { font-size: 20px; } | |
| #hero { gap: 0 ; padding: 25px 0 22px; } | |
| #hero-aside { display: none ; } | |
| .hero-copy h1 { font-size: 42px; } | |
| .hero-copy p { font-size: 13px; } .desktop-break { display: none; } | |
| #workspace { flex-direction: column ; gap: 15px ; } | |
| .workspace-card { padding: 19px ; } | |
| #equation-upload { height: 210px ; } | |
| .page-footer { align-items: flex-start; margin-top: 20px; gap: 15px; } | |
| .page-footer strong { font-size: 16px; } .footer-credit { font-size: 7px; } | |
| .footer-credit span { font-size: 7px; } | |
| } | |
| @media (max-width: 390px) { .nav-note { display: none; } .page-footer { flex-direction: column; } .footer-credit { text-align: left; } } | |
| .gradio-container main { box-sizing: border-box; padding: 26px 34px 22px ; width: 100% ; } | |
| @media (max-width: 740px) { .gradio-container main { padding: 18px 16px ; } } | |
| /* Keep intrinsic math/image widths from expanding the responsive workspace. */ | |
| .gradio-container { width: 100% ; min-width: 0 ; } | |
| .gradio-container main, .gradio-container main > .wrap, | |
| #workspace, #input-card, #result-card, #preview-panel, #math-preview { | |
| min-width: 0 ; max-width: 100% ; box-sizing: border-box; | |
| } | |
| .gradio-container main > .wrap { width: 100%; } | |