SmokeyTokyo's picture
Update style.css
7fd5b67 verified
/* ============================
GLOBAL MOBILE FIRST STYLES
============================ */
body, html {
margin: 0;
padding: 0;
overflow-x: hidden;
font-family: "Inter", sans-serif;
}
/* Header */
#header {
background: linear-gradient(90deg, #8e2de2, #4a00e0);
padding: 10px;
color: white;
display: flex;
align-items: center;
}
/* Hamburger button */
#hamburger > button,
#hamburger {
background: transparent !important;
border: none !important;
font-size: 30px !important;
color: white !important;
cursor: pointer;
padding: 0;
box-shadow: none !important;
}
/* Login button must remain clickable */
#login-btn {
margin-left: auto;
}
/* ============================
DRAWER MENU / SIDE PANEL
============================ */
#drawer {
display: none;
position: fixed;
top: 0;
left: 0;
width: 260px;
height: 100%;
overflow-y: auto;
padding: 20px;
background: #ffffff;
border-right: 2px solid #ddd;
z-index: 9999;
}
#drawer .gradio-container {
padding: 5px !important;
}
/* Inputs inside drawer */
#drawer input,
#drawer select,
#drawer textarea,
#drawer .gradio-slider input {
font-size: 15px !important;
}
/* Hide oversized Gradio labels on mobile */
#drawer label {
font-size: 14px !important;
font-weight: 600;
}
/* ============================
CHAT AREA
============================ */
.gradio-chatbot,
gradio-app {
width: 100%;
}
#chatbot {
width: 100%;
}
/* Prevent overflow issues in iPhone Safari */
.gradio-container {
max-width: 100% !important;
}
/* ============================
FILE OUTPUT
============================ */
#file_output,
.gradio-file {
margin-top: 15px;
}
/* ============================
RESPONSIVE RULES
============================ */
@media only screen and (min-width: 900px) {
#drawer {
display: block;
position: relative;
width: 250px;
border-right: none;
}
#hamburger {
display: none;
}
#header {
justify-content: center;
}
}