EMNIST-OCR / frontend /style.css
compendious's picture
Upload folder using huggingface_hub
e6f5f64 verified
/* Each style is basically just for 1 element */
body {
font-family: 'Consolas', 'Courier New', monospace;
margin: 0;
padding: 0;
background-color: #f5f5f5;
color: #333;
min-height: 100vh;
display: flex;
flex-direction: column;
}
.header {
background-color: #ffffff;
text-align: center;
padding: 20px;
border-bottom: 1px solid #e0e0e0;
margin-bottom: 20px;
}
.header h1 {
margin: 0;
font-size: 2.5em;
color: #333;
}
.header p {
margin: 10px 0 0 0;
font-size: 1.1em;
color: #666;
}
.container {
display: flex;
justify-content: center;
align-items: flex-start;
gap: 40px;
padding: 20px;
flex-grow: 1;
}
.drawing-section, .prediction-section {
background-color: #ffffff;
border: 1px solid #e0e0e0;
border-radius: 8px;
padding: 20px;
min-width: 300px;
}
.drawing-section h2 {
text-align: center;
margin-top: 0;
color: #333;
}
#draw-canvas {
display: block;
margin: 0 auto 20px;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
cursor: crosshair;
}
.controls {
text-align: center;
}
#clear-btn {
background-color: #777;
color: white;
border: none;
padding: 10px 20px;
border-radius: 4px;
font-size: 1em;
cursor: pointer;
transition: background-color 0.3s;
}
#clear-btn:hover {
background-color: #555;
}
.prediction-section h2 {
text-align: center;
margin-top: 0;
color: #292929;
}
#prediction-canvas {
display: block;
margin: 0 auto;
border: 1px solid #ccc;
border-radius: 4px;
background-color: white;
}
@media (max-width: 768px) {
.container {
flex-direction: column;
align-items: center;
}
.drawing-section, .prediction-section {
min-width: 280px;
}
}
.slider-container {
width: 100%; /* Occupy full width of parent */
text-align: center;
padding: 10px 0;
}
#k-slider {
/* -webkit-appearance: none; */
width: 100%;
height: 4px;
background: #e0e0e0;
border-radius: 2px;
outline: none;
margin: 0;
padding: 0;
cursor: pointer;
}
/* Chrome/Safari/Edge Thumb */
#k-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 16px;
height: 16px;
background: black;
border-radius: 50%;
cursor: pointer;
transition: transform 0.1s;
}
#k-slider::-webkit-slider-thumb:hover {
transform: scale(1.2);
}
/* Firefox Thumb */
#k-slider::-moz-range-thumb {
width: 16px;
height: 16px;
background: black;
border: none;
border-radius: 50%;
cursor: pointer;
}
#k-value {
font-family: monospace;
font-size: 14px;
margin-top: 8px;
color: #333;
}
/* Footer Styles */
footer.footer {
background-color: #ffffff;
border-top: 1px solid #e0e0e0;
padding: 20px;
margin-top: 40px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
font-size: 0.9em;
color: #666;
flex-wrap: wrap;
}
.footer-left {
flex: 1;
min-width: 150px;
}
.footer-center {
flex: 2;
text-align: center;
min-width: 300px;
}
.footer-right {
flex: 1;
text-align: right;
min-width: 120px;
}
.footer-right a {
display: inline-flex;
align-items: center;
gap: 8px;
color: #333;
text-decoration: none;
transition: color 0.3s ease;
font-weight: 500;
}
.footer-right a:hover {
color: #0969da;
}
.footer-right svg {
transition: fill 0.3s ease;
}
.footer-right a:hover svg {
fill: #0969da;
}