t5-translator / style.css
boazchung's picture
Update style.css
8e04d5d verified
raw
history blame
1.57 kB
body {
padding: 2rem;
font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
text-align: center;
background-color: #f7f7f7;
margin: 0;
padding: 20px;
}
h1 {
font-size: 16px;
margin-top: 0;
}
/* Add styles for centering the form */
#hf-form {
width: 100%;
max-width: 400px; /* Adjust this value as per your design needs */
margin: auto; /* Centers the form */
padding: 20px; /* Optional: for some spacing inside the form */
box-sizing: border-box;
background: white;
border-radius: 8px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
margin: 40px auto;
}
/* Style for form fields */
#hf-form input[type="password"],
#hf-form input[type="submit"] {
width: calc(100% - 20px);
padding: 10px;
margin: 10px 0;
border: 1px solid #ddd;
border-radius: 4px;
box-sizing: border-box;
}
/* Style for the submit button */
#hf-form input[type="submit"] {
color: white;
background-color: #007BFF;
cursor: pointer;
border: none;
}
#hf-form input[type="submit"]:hover {
background-color: #0056b3;
}
p {
color: rgb(107, 114, 128);
font-size: 15px;
margin-bottom: 10px;
margin-top: 5px;
}
.card {
max-width: 620px;
margin: 0 auto;
padding: 16px;
border: 1px solid lightgray;
border-radius: 16px;
}
/* Card style */
.card {
background: white;
margin-bottom: 20px;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Style for the label */
label {
text-align: left;
display: block;
margin: 0 0 5px 0;
}