gtranslate/static/style.css

96 lines
1.2 KiB
CSS

body {
font-family: sans-serif;
}
.title {
text-align: center;
}
.main-section {
max-width: 900px;
margin: 5px auto;
}
.form__line {
display: flex;
width: 100%;
}
.form__field {
display: flex;
align-items: center;
margin: 4px;
flex: 0.5;
}
.form__field .form__label {
margin-right: 8px;
}
.form__input,
.form__textarea {
font-size: 1rem;
padding: 4px;
border: 2px solid #888888;
}
.form__button {
padding: 4px 10px;
border: 2px solid #888888;
}
.form__input:focus,
.form__textarea:focus,
.form__button:focus {
outline: 2px solid #5d94ff;
}
.form__textarea {
box-sizing: border-box;
resize: vertical;
height: 5rem;
/* Stretch to form width */
width: 100%;
}
.form__translation {
resize: none;
height: 100%;
}
@media screen and (max-width: 560px) {
.form__line {
display: block;
}
.form__translation {
height: 10rem;
}
}
@media screen and (prefers-color-scheme: dark) {
body {
background-color: #212529;
color: #f8f9fa;
}
a:visited {
color: #9759f6;
}
a {
color: #599bf6;
}
.form__input,
.form__button,
.form__textarea {
background-color: #131618;
border-color: #495057;
color: #f8f9fa;
}
}