math2latex / theme.css
msdkhairi's picture
Upload folder using huggingface_hub
e0a5998 verified
Raw History Blame Contribute Delete
10.1 kB
:root { color-scheme: light; }
body { margin: 0; background: #f6f5f0 !important; }
.gradio-container { max-width: 1160px !important; margin: 0 auto !important; padding: 0 !important; background: #f6f5f0 !important; color: #202d35 !important; }
.gradio-container footer { display: none !important; }
.gradio-container .page-footer { display: flex !important; }
.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 !important; 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 !important; }
.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 !important; align-items: stretch; }
.workspace-card { min-width: 0 !important; padding: 24px !important; border: 1px solid #e0e2d9 !important; border-radius: 18px !important; background: #fff !important; box-shadow: 0 5px 20px #202d3505 !important; gap: 12px !important; }
.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 !important; background: #fafbf7 !important; border-radius: 12px !important; overflow: hidden; }
#equation-upload .upload-container { background: #fafbf7 !important; }
#equation-upload button, #equation-upload .upload-text { color: #66756a !important; }
#equation-upload img { object-fit: contain !important; 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 !important; font-size: 13px !important; font-weight: 600; letter-spacing: .1px; box-shadow: none !important; }
#convert-button:disabled { opacity: .6 !important; }
.examples-label { margin: 9px 0 0; font-size: 10px; font-weight: 650; letter-spacing: 1.3px; color: #8a9186; }
#example-buttons { gap: 7px !important; flex-wrap: nowrap !important; }
.example-chip { min-width: 0 !important; min-height: 32px !important; padding: 5px 8px !important; border: 1px solid #e3e6dc !important; background: #f8f9f4 !important; color: #526650 !important; font-size: 12px !important; font-weight: 500 !important; box-shadow: none !important; border-radius: 7px !important; }
.example-chip:hover { background: #edf1e5 !important; border-color: #b9c5af !important; }
#clear-button { align-self: center; background: transparent !important; border: 0 !important; box-shadow: none !important; color: #849080 !important; font-size: 12px !important; min-height: 22px !important; margin-top: 2px; }
#preview-panel { background: #f6f7f1 !important; border: 1px solid #e6e9df !important; border-radius: 12px !important; min-height: 202px; overflow: hidden; padding: 0 !important; }
.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 !important; 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 !important; border-radius: 10px !important; background: #fff !important; overflow: hidden; }
#latex-code label { color: #6d7970 !important; font-size: 11px !important; font-weight: 500; }
#latex-code textarea { font: 12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace !important; color: #395446 !important; background: #fafbf7 !important; border: 0 !important; padding: 13px !important; }
#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 !important; }
#result-actions button { min-width: 0 !important; min-height: 39px !important; border-radius: 8px !important; font-size: 12px !important; box-shadow: none !important; }
#copy-latex { background: #395848 !important; border: 1px solid #395848 !important; color: white !important; }
#copy-latex:hover { background: #2b4639 !important; }
#download-latex { background: white !important; color: #59705d !important; border: 1px solid #dce3d5 !important; }
#result-actions button:disabled { opacity: .4 !important; }
.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 !important; 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 !important; padding: 25px 0 22px; }
#hero-aside { display: none !important; }
.hero-copy h1 { font-size: 42px; }
.hero-copy p { font-size: 13px; } .desktop-break { display: none; }
#workspace { flex-direction: column !important; gap: 15px !important; }
.workspace-card { padding: 19px !important; }
#equation-upload { height: 210px !important; }
.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 !important; width: 100% !important; }
@media (max-width: 740px) { .gradio-container main { padding: 18px 16px !important; } }
/* Keep intrinsic math/image widths from expanding the responsive workspace. */
.gradio-container { width: 100% !important; min-width: 0 !important; }
.gradio-container main, .gradio-container main > .wrap,
#workspace, #input-card, #result-card, #preview-panel, #math-preview {
min-width: 0 !important; max-width: 100% !important; box-sizing: border-box;
}
.gradio-container main > .wrap { width: 100%; }