Spaces:
Paused
Paused
File size: 3,668 Bytes
9efa0c5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | /* ============================================================
Page
============================================================ */
.gradio-container {
max-width: 1120px !important;
width: 100%;
margin: 0 auto !important;
padding: 40px 24px !important;
box-sizing: border-box;
}
/* ============================================================
Header
============================================================ */
#header { align-items: flex-start; }
#title h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
#title p { font-size: 16px; color: var(--body-text-color-subdued); margin: 0; }
#theme-btn { flex: 0 0 auto !important; min-width: 0 !important; }
/* ============================================================
Search
============================================================ */
/* --- Card (shared by search and ask panel) --- */
.card {
background: var(--block-background-fill);
border: 1px solid var(--border-color-primary);
border-radius: 12px;
padding: 20px !important;
gap: 14px !important;
}
/* --- Search row --- */
#search-row { align-items: flex-end; gap: 12px; }
#search-btn { height: 46px; min-height: 46px; max-height: 46px; align-self: flex-end; }
/* --- Example chips --- */
#chips { align-items: center; flex-wrap: wrap; gap: 8px; }
#try-label { flex: 0 0 auto !important; min-width: 0 !important; }
#try-label p { margin: 0; font-size: 13px; color: var(--body-text-color-subdued); }
#chips .chip { flex: 0 0 auto !important; min-width: 0 !important; font-size: 13px; font-weight: 400; }
/* ============================================================
Results
============================================================ */
/* --- Results header --- */
#results-head { align-items: baseline; margin-top: 12px; }
#results-head h2 { font-size: 18px; font-weight: 600; margin: 0; }
#status { text-align: right; }
#status p { font-size: 13px; color: var(--body-text-color-subdued); margin: 0; }
/* --- Empty state --- */
#empty-state {
width: 100%;
box-sizing: border-box;
min-height: 540px;
display: flex;
align-items: center;
justify-content: center;
border: 1px dashed var(--border-color-primary);
border-radius: 12px;
text-align: center;
}
#empty-state p { margin: 0; font-size: 15px; color: var(--body-text-color-subdued); }
/* --- Gallery --- */
#gallery {
min-height: 540px;
background: transparent;
}
#gallery .grid-container { gap: 16px !important; }
#gallery .grid-wrap {
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
/* --- Tiles --- */
#gallery .thumbnail-item {
border-radius: 10px;
border: none;
box-shadow: none;
overflow: hidden;
}
#gallery .thumbnail-item.selected {
box-shadow: 0 0 0 3px var(--button-primary-background-fill) !important;
}
#gallery .caption-label {
background: var(--block-background-fill);
color: var(--body-text-color);
font-size: 12px;
font-weight: 600;
border-radius: 6px;
padding: 2px 8px;
}
/* ============================================================
Ask about this image
============================================================ */
#ask-panel { margin-top: 16px; scroll-margin-top: 24px; }
#ask-row { align-items: flex-start; gap: 20px; }
#ask-image img { border-radius: 8px; object-fit: cover; }
#ask-info p { margin: 0; font-size: 13px; color: var(--body-text-color-subdued); }
#ask-input-row { gap: 10px; align-items: stretch; }
#ask-answer {
background: var(--body-background-fill);
border-radius: 8px;
padding: 12px 14px;
}
#ask-answer p { margin: 0; color: var(--body-text-color-subdued); } |