gtranslate/static/style.css

96 lines
1.2 KiB
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;
}
.form__line {
2021-01-18 18:59:14 +00:00
display: flex;
width: 100%;
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;
flex: 0.5;
2021-01-18 18:59:14 +00:00
}
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,
.form__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,
.form__textarea:focus,
.form__button:focus {
outline: 2px solid #5d94ff;
}
.form__textarea {
box-sizing: border-box;
2021-01-17 20:09:57 +00:00
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
}
.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;
}
2021-05-10 17:09:50 +00:00
a:visited {
color: #9759f6;
}
a {
color: #599bf6;
}
.form__input,
.form__button,
.form__textarea {
background-color: #131618;
border-color: #495057;
color: #f8f9fa;
}
}