model_explorer2 / styles.css
dwb2023's picture
Update styles.css
9b80d20 verified
raw
history blame
1.78 kB
/* General styling for the Gradio app */
body {
background-color: #1c1e26;
color: #c0c0c0;
font-family: Arial, sans-serif;
}
/* Styling for the headers */
h1, h2, h3 {
color: #f0a500;
}
/* Styling for the buttons */
button {
background-color: #005f73;
color: #ffffff;
border: none;
padding: 10px 20px;
margin: 10px 0;
cursor: pointer;
border-radius: 5px;
}
button:hover {
background-color: #0a9396;
}
/* Styling for the textboxes */
textarea {
background-color: #242629;
color: #ffffff;
border: 1px solid #ccc;
padding: 10px;
border-radius: 5px;
}
/* Specific styling for the copy buttons to make them visible */
.gr-button.copy-button {
background-color: #ef476f;
color: #ffffff;
border: none;
padding: 5px 10px;
margin: 10px;
cursor: pointer;
border-radius: 5px;
}
.gr-button.copy-button:hover {
background-color: #d43d57;
}
/* Adjust layout to reduce unused space at the bottom */
.gradio-container {
display: flex;
flex-direction: column;
min-height: 100vh;
}
.gradio-content {
flex: 1;
}
/* Improved layout for rows and columns */
.gr-row {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.gr-column {
flex: 1;
padding: 10px;
}
/* Ensuring the model architecture and error boxes are aligned */
.model-architecture, .error-box {
flex: 1;
padding: 10px;
margin: 10px 0;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #242629;
}
/* Styling for markdown sections */
.markdown {
margin: 20px 0;
}
/* Ensure the examples have better spacing */
.gr-examples {
display: flex;
flex-wrap: wrap;
}
.gr-examples button {
flex: 1 1 45%;
margin: 5px;
}