1
0
mirror of https://github.com/LibreTranslate/LibreTranslate.git synced 2024-12-18 08:27:03 +02:00
LibreTranslate/app/static/css/main.css

160 lines
2.4 KiB
CSS
Raw Normal View History

2021-06-02 22:57:10 +02:00
/* Custom styles for LibreTranslate page */
h3.header {
margin-bottom: 2.5rem;
}
.mb-0 {
margin-bottom: 0 !important;
}
.mt-0 {
margin-top: 0 !important;
}
.position-relative {
position: relative;
}
.language-select {
display: inline-flex;
align-items: center;
justify-content: flex-start;
}
.language-select select {
border: none;
width: auto;
cursor: pointer;
font-weight: 600;
text-decoration: underline;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
text-indent: 1px;
text-overflow: "";
padding: 0;
height: 2rem;
}
.btn-switch-language {
color: black;
margin-left: -1.5rem;
margin-right: 1rem;
}
.textarea-container {
margin-top: 0;
position: relative;
}
.btn-delete-text {
position: absolute;
right: 1.5rem;
top: 0.75rem;
border: 0;
background: none;
padding: 0;
cursor: pointer;
color: #777;
2021-06-02 22:57:10 +02:00
}
.btn-delete-text:focus,
.btn-copy-translated:focus {
background: none !important;
}
.characters-limit-container {
position: absolute;
right: 2rem;
bottom: 1rem;
color: #777;
2021-06-02 22:57:10 +02:00
pointer-events: none;
}
.btn-copy-translated {
position: absolute;
right: 2.75rem;
2021-06-02 22:57:10 +02:00
bottom: 1rem;
display: flex;
align-items: center;
color: #777;
2021-06-02 22:57:10 +02:00
font-size: 0.85rem;
background: none;
border: none;
cursor: pointer;
margin-right: -1.5rem;
}
.btn-copy-translated span {
padding-right: 0.5rem;
}
.btn-copy-translated .material-icons {
font-size: 1.35rem;
}
.progress {
background-color: #f3f3f3;
2021-06-02 22:57:10 +02:00
}
.progress.translate {
position: absolute;
}
.progress .indeterminate {
background-color: steelblue;
}
.textarea-container textarea {
font-size: 1.25rem;
resize: none;
border: 1px solid #ccc;
background: #f3f3f3;
2021-06-02 22:57:10 +02:00
padding: 1rem 2rem 1rem 1.5rem;
overflow-y: hidden;
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
border: 0;
}
2021-06-02 22:57:10 +02:00
.code {
font-size: 90%;
padding: 1rem 1.5rem;
border: 1px solid #ccc;
2021-06-02 22:57:10 +02:00
background: #fbfbfb;
overflow: auto;
font-family: monospace;
min-height: 280px;
width: 100%;
overflow: auto;
}
.page-footer .footer-copyright {
justify-content: center;
}
@media (max-width: 991px) {
.language-select {
}
}
@media (max-width: 760px) {
.language-select select{
text-align: center;
margin: auto;
}
.language-select span {
display: none;
}
}