131 lines
2.5 KiB
CSS
131 lines
2.5 KiB
CSS
html,
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgb(11, 13, 19);
|
|
color: #fff;
|
|
}
|
|
|
|
body {
|
|
margin: 1em;
|
|
width: calc(100% - 2em);
|
|
height: calc(100% - 2em);
|
|
}
|
|
.container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.content {
|
|
width: calc(50% - 70px);
|
|
padding: 1em;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
height: 40%;
|
|
resize: none;
|
|
}
|
|
|
|
#translateicon {
|
|
width: fit-content;
|
|
color: white;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
/* CSS für den HTML-Select */
|
|
select {
|
|
/* Setze die Größe und Positionierung des Select-Elements */
|
|
position: relative;
|
|
width: 100%;
|
|
height: 40px;
|
|
border: none;
|
|
border-radius: 5px;
|
|
padding: 10px 20px;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
background-color: #333;
|
|
color: #ffffff;
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 16 16'%3E%3Cpath fill='%23cccccc' d='M5.5 7l2.5 2.5L10.5 7z'/%3E%3C/svg%3E");
|
|
background-position: right 10px center;
|
|
background-repeat: no-repeat;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease-in-out;
|
|
}
|
|
|
|
select:hover {
|
|
background-color: #444;
|
|
}
|
|
|
|
/* Setze den aktiven Stil */
|
|
select:focus {
|
|
outline: none;
|
|
background-color: #333;
|
|
}
|
|
|
|
/* Ändere die Farbe der ausgewählten Option */
|
|
select option:checked {
|
|
background-color: #007bff;
|
|
color: #fff;
|
|
}
|
|
|
|
/* Ändere den Stil des Dropdown-Menüs */
|
|
select::-ms-expand {
|
|
display: none;
|
|
}
|
|
|
|
select option {
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
background-color: #333;
|
|
color: #f5f5f5;
|
|
}
|
|
|
|
/* CSS für den HTML-Textarea */
|
|
textarea {
|
|
/* Setze die Größe und Positionierung des Textarea-Elements */
|
|
border: none;
|
|
border-radius: 5px;
|
|
margin-top: 0.2em;
|
|
font-size: 16px;
|
|
font-weight: 400;
|
|
line-height: 1.5;
|
|
background-color: #333;
|
|
color: #f5f5f5;
|
|
/* Setze den Hover-Stil */
|
|
transition: all 0.2s ease-in-out;
|
|
width: calc(100% - 5px);
|
|
}
|
|
|
|
/* Setze den aktiven Stil */
|
|
textarea:focus {
|
|
outline: none;
|
|
}
|
|
|
|
textarea:hover {
|
|
background-color: #444;
|
|
}
|
|
|
|
/* Ändere den Stil der Scrollbar */
|
|
textarea::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
textarea::-webkit-scrollbar-track {
|
|
background-color: #f5f5f5;
|
|
}
|
|
|
|
textarea::-webkit-scrollbar-thumb {
|
|
background-color: #ccc;
|
|
border-radius: 10px;
|
|
} |