gtranslate/static/style.css

75 lines
959 B
CSS
Raw Normal View History

2021-01-17 20:09:57 +00:00
body {
font-family: sans-serif;
}
.title {
text-align: center;
}
2021-01-18 18:59:14 +00:00
.main-section {
max-width: 900px;
2021-01-17 20:09:57 +00:00
margin: 5px auto;
}
2021-01-18 18:59:14 +00:00
.form {
display: flex;
flex-direction: column;
2021-01-17 20:09:57 +00:00
}
.form__field {
display: flex;
align-items: center;
2021-01-18 18:59:14 +00:00
margin: 4px;
}
2021-01-17 20:09:57 +00:00
2021-01-18 18:59:14 +00:00
.form__field .form__label {
margin-right: 8px;
2021-01-17 20:09:57 +00:00
}
2021-01-18 18:59:14 +00:00
.form__input,
.textarea {
2021-01-18 18:59:14 +00:00
font-size: 1rem;
padding: 4px;
border: 2px solid #888888;
2021-01-17 20:09:57 +00:00
}
.form__button {
2021-01-18 18:59:14 +00:00
padding: 4px 10px;
border: 2px solid #888888;
}
.form__input:focus,
.textarea:focus,
.form__button:focus {
outline: 2px solid #5d94ff;
}
.translation {
font-size: 1rem;
padding: 4px;
2021-01-17 20:09:57 +00:00
}
.textarea {
resize: vertical;
2021-01-18 18:59:14 +00:00
height: 5rem;
2021-01-17 20:09:57 +00:00
2021-01-18 18:59:14 +00:00
/* Stretch to form width */
width: 100%;
2021-01-17 20:09:57 +00:00
}
@media screen and (prefers-color-scheme: dark) {
body {
background-color: #212529;
color: #f8f9fa;
}
.form__input,
.form__button,
.textarea {
background-color: #131618;
border-color: #495057;
color: #f8f9fa;
}
}