Spaces:
Running
Running
File size: 6,348 Bytes
bb12dd4 |
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 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 |
.gradio-container {
background: url('https://images.unsplash.com/photo-1514361726087-38371321b5cd?q=80&w=2370&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
}
.centered-image {
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: -20px;
max-width: 500px; /* Maximum width of the image */
width: 100%;
}
.custom-input {
background: linear-gradient(to right, rgba(232, 243, 214, 0.8), rgba(252, 249, 190, 0.8)); /* Or any color you'd like */
opacity: 0.8
color: #333; /* Text color */
padding: 10px; /* Padding inside the input */
border: 2px solid #ddd; /* Border color */
border-radius: 5px; /* Rounded corners */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
transition: all 0.3s ease; /* Smooth transition for interactions */
}
.custom-input:focus {
border-color: #F0E68C; /* Highlight color when the input is focused */
box-shadow: 0 0 8px rgba(240, 230, 140, 0.8); /* Glow effect on focus */
}
.custom-checkbox-group1 {
background: linear-gradient(to right, rgba(252, 249, 190, 0.8), rgba(255, 220, 169, 0.8));
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.custom-checkbox-group1 input[type="checkbox"] + label {
margin-right: 10px; /* Space between checkboxes */
cursor: pointer; /* Mouse pointer changes to indicate clickable area */
}
.custom-checkbox-group1 input[type="checkbox"]:checked + label {
color: #FF6347; /* Text color when checkbox is checked */
font-weight: bold;
}
.custom-checkbox-group2 {
background: linear-gradient(to right, rgba(255, 220, 169, 0.8), rgba(250, 171, 120, 0.8));
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.custom-input1 {
background: linear-gradient(to right, rgba(232, 243, 214, 0.8), rgba(255, 220, 169, 0.8));
color: #333; /* Text color */
padding: 10px; /* Padding inside the input */
border: 20px solid #FFDA42; /* Initial border color, change as needed */
border-color: #FFDA42
border-radius: 5px; /* Rounded corners */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
transition: all 0.3s ease; /* Smooth transition for interactions */
}
.custom-input2 {
background: linear-gradient(to right, rgba(255, 220, 169, 0.8), rgba(250, 171, 120, 0.8));
color: #333; /* Text color */
padding: 10px; /* Padding inside the input */
border: 20px solid #FFDA42; /* Initial border color, change as needed */
border-color: #FFDA42
border-radius: 5px; /* Rounded corners */
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
transition: all 0.3s ease; /* Smooth transition for interactions */
}
.custom-input2:focus {
border-color: #FFDA42; /* Highlight color when the input is focused */
box-shadow: 0 0 8px rgba(240, 230, 140, 0.8); /* Glow effect on focus */
}
.slider-sweetness {
background: linear-gradient(to right, rgba(232, 243, 214, 0.8), rgba(252, 249, 190, 0.8));
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.slider-sweetness::-webkit-slider-runnable-track {
background: rgba(200, 152, 152, 0.8);
}
.slider-sour {
background: linear-gradient(to right, rgba(252, 249, 190, 0.8), rgba(251, 230, 180, 0.8));
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.slider-sour::-webkit-slider-runnable-track {
background: rgba(200, 152, 152, 0.8);
}
.slider-savory {
background: linear-gradient(to right,rgba(251, 230, 180, 0.8), rgba(255, 220, 169, 0.8));
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.slider-savory::-webkit-slider-runnable-track {
background: rgba(200, 152, 152, 0.8);
}
.slider-bitter {
background: linear-gradient(to right,rgba(255, 220, 169, 0.8), rgba(252, 200, 135, 0.8));
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.slider-bitter::-webkit-slider-runnable-track {
background: rgba(200, 152, 152, 0.8);
}
.slider-soberness_level {
background: linear-gradient(to right, rgba(252, 200, 135, 0.8), rgba(250, 171, 120, 0.8));
padding: 10px;
border: 2px solid #ddd;
border-radius: 5px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.slider-soberness_level::-webkit-slider-runnable-track {
background: rgba(200, 152, 152, 0.8);
}
.custom-checkbox-group2 input[type="checkbox"] + label {
margin-right: 10px; /* Space between checkboxes */
cursor: pointer; /* Mouse pointer changes to indicate clickable area */
}
.custom-checkbox-group2 input[type="checkbox"]:checked + label {
color: #FF6347; /* Text color when checkbox is checked */
font-weight: bold;
}
.generate-button {
background: linear-gradient(to right, #F0E68C, #E0FFFF, #FF6347);
color: black;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-weight: bold;
text-transform: uppercase;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
outline: none; /* Removes the outline on focus for some browsers */
}
.generate-button:hover, .generate-button:active {
background: linear-gradient(to right, #E0FFFF, #FF6347, #F0E68C);
/* Combines the glow from each color in the gradient */
box-shadow:
0 0 15px rgba(240, 230, 140, 0.7),
0 0 25px rgba(240, 230, 140, 0.7),
0 0 15px rgba(224, 255, 255, 0.7),
0 0 25px rgba(224, 255, 255, 0.7),
0 0 15px rgba(255, 99, 71, 0.7),
0 0 25px rgba(255, 99, 71, 0.7);
transform: translateY(2px); /* Optional: Slightly push the button down on active */
}
.generate-button:active {
/* You may want to add an extra inset shadow to give a sense of depth when clicked */
box-shadow:
0 0 15px rgba(240, 230, 140, 0.7),
0 0 25px rgba(240, 230, 140, 0.7),
0 0 15px rgba(224, 255, 255, 0.7),
0 0 25px rgba(224, 255, 255, 0.7),
0 0 15px rgba(255, 99, 71, 0.7),
0 0 25px rgba(255, 99, 71, 0.7),
0 0 20px rgba(30, 255, 255, 0.5) inset;
} |