Image_Generator / asset_style.css
vishalvarkhede's picture
Upload folder using huggingface_hub
fbb9523 verified
Raw
History Blame Contribute Delete
7.03 kB
```css
/* =========================================================
Global Styling
========================================================= */
body {
background: #020617;
margin: 0;
padding: 0;
font-family: "Inter", sans-serif;
}
/* Main App Container */
.gradio-container {
max-width: 1500px !important;
margin: auto !important;
padding: 20px !important;
background:
radial-gradient(circle at top left,
rgba(124, 58, 237, 0.18),
transparent 25%),
radial-gradient(circle at bottom right,
rgba(59, 130, 246, 0.18),
transparent 25%),
#020617 !important;
color: white !important;
}
/* =========================================================
Hero Section
========================================================= */
.hero-section {
padding: 50px;
border-radius: 30px;
background:
linear-gradient(
135deg,
rgba(15, 23, 42, 0.95),
rgba(30, 41, 59, 0.92)
);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow:
0 10px 40px rgba(0, 0, 0, 0.45);
margin-bottom: 25px;
position: relative;
overflow: hidden;
}
.hero-section::before {
content: "";
position: absolute;
width: 450px;
height: 450px;
background: rgba(124, 58, 237, 0.15);
border-radius: 50%;
top: -180px;
right: -150px;
}
.hero-section h1 {
font-size: 3.2rem;
font-weight: 900;
margin-bottom: 15px;
background: linear-gradient(
90deg,
#ffffff,
#a78bfa,
#60a5fa
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.hero-section p {
font-size: 1.15rem;
color: #cbd5e1;
max-width: 800px;
line-height: 1.7;
}
/* =========================================================
Glass Panels
========================================================= */
.glass-panel {
background: rgba(15, 23, 42, 0.72) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
backdrop-filter: blur(18px);
border-radius: 24px !important;
padding: 22px !important;
box-shadow:
0 8px 30px rgba(0, 0, 0, 0.35);
}
/* =========================================================
Textboxes
========================================================= */
textarea,
input {
background: rgba(255, 255, 255, 0.06) !important;
color: white !important;
border-radius: 16px !important;
border: 1px solid rgba(255, 255, 255, 0.10) !important;
padding: 14px !important;
transition: all 0.3s ease !important;
}
textarea:focus,
input:focus {
border: 1px solid rgba(124, 58, 237, 0.7) !important;
box-shadow:
0 0 0 3px rgba(124, 58, 237, 0.2) !important;
}
/* =========================================================
Dropdowns
========================================================= */
select {
background: rgba(255, 255, 255, 0.06) !important;
color: white !important;
border-radius: 14px !important;
border: 1px solid rgba(255, 255, 255, 0.10) !important;
}
/* =========================================================
Buttons
========================================================= */
button {
border-radius: 16px !important;
transition:
transform 0.25s ease,
box-shadow 0.25s ease !important;
font-weight: 700 !important;
}
/* Main Generate Button */
.generate-btn {
background:
linear-gradient(
135deg,
#7c3aed,
#2563eb
) !important;
border: none !important;
color: white !important;
height: 56px !important;
font-size: 1rem !important;
box-shadow:
0 10px 30px rgba(99, 102, 241, 0.35);
}
.generate-btn:hover {
transform: translateY(-3px);
box-shadow:
0 15px 35px rgba(99, 102, 241, 0.45);
}
/* Secondary Buttons */
.secondary-btn {
background:
rgba(255, 255, 255, 0.08) !important;
border:
1px solid rgba(255, 255, 255, 0.12) !important;
color: white !important;
height: 50px !important;
}
.secondary-btn:hover {
transform: translateY(-2px);
background:
rgba(255, 255, 255, 0.12) !important;
}
/* Example Prompt Buttons */
.examples button,
button.secondary {
background:
rgba(255, 255, 255, 0.07) !important;
border:
1px solid rgba(255, 255, 255, 0.08) !important;
color: #e2e8f0 !important;
}
.examples button:hover {
background:
rgba(124, 58, 237, 0.18) !important;
}
/* =========================================================
Image Output
========================================================= */
.image-output {
border-radius: 24px !important;
overflow: hidden !important;
border:
1px solid rgba(255, 255, 255, 0.08);
background:
rgba(255, 255, 255, 0.04);
padding: 10px;
}
/* =========================================================
JSON History Panel
========================================================= */
.json-container {
background:
rgba(255, 255, 255, 0.04) !important;
border-radius: 18px !important;
border:
1px solid rgba(255, 255, 255, 0.08) !important;
}
/* =========================================================
Markdown Styling
========================================================= */
.markdown {
color: #f8fafc !important;
}
.markdown h1,
.markdown h2,
.markdown h3 {
color: white !important;
}
.markdown p {
color: #cbd5e1 !important;
}
/* =========================================================
Scrollbars
========================================================= */
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar-track {
background: #0f172a;
}
::-webkit-scrollbar-thumb {
background:
linear-gradient(
180deg,
#7c3aed,
#2563eb
);
border-radius: 999px;
}
/* =========================================================
Footer
========================================================= */
.footer {
text-align: center;
margin-top: 30px;
padding: 20px;
color: #94a3b8;
font-size: 0.95rem;
}
/* =========================================================
Responsive Design
========================================================= */
@media (max-width: 768px) {
.hero-section {
padding: 30px;
}
.hero-section h1 {
font-size: 2.2rem;
}
.hero-section p {
font-size: 1rem;
}
.glass-panel {
padding: 18px !important;
}
}
```