2021-06-02 20:57:10 +00:00
|
|
|
/* Custom styles for LibreTranslate page */
|
|
|
|
|
2021-06-13 17:11:58 +00:00
|
|
|
html,
|
|
|
|
body,
|
|
|
|
select {
|
|
|
|
font-size: 16px;
|
|
|
|
font-family: Arial, Helvetica, sans-serif !important;
|
|
|
|
}
|
|
|
|
|
2022-01-17 19:09:20 +00:00
|
|
|
a {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
2021-07-08 10:26:08 +00:00
|
|
|
#app {
|
|
|
|
min-height: 80vh;
|
|
|
|
}
|
|
|
|
|
2021-06-02 20:57:10 +00:00
|
|
|
h3.header {
|
|
|
|
margin-bottom: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mb-0 {
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mt-0 {
|
|
|
|
margin-top: 0 !important;
|
|
|
|
}
|
|
|
|
|
2021-10-24 10:53:52 +00:00
|
|
|
.mb-1 {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
2021-06-02 20:57:10 +00:00
|
|
|
.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;
|
|
|
|
appearance: none;
|
2021-06-13 17:11:58 +00:00
|
|
|
background-color: transparent;
|
2021-07-05 13:19:46 +00:00
|
|
|
padding: 0;
|
2021-06-13 17:11:58 +00:00
|
|
|
text-indent: 0.01px;
|
2021-06-02 20:57:10 +00:00
|
|
|
text-overflow: "";
|
2021-06-13 17:11:58 +00:00
|
|
|
margin: 0;
|
2021-07-05 13:19:46 +00:00
|
|
|
margin-left: 6px;
|
2021-06-02 20:57:10 +00:00
|
|
|
height: 2rem;
|
2021-06-13 17:11:58 +00:00
|
|
|
line-height: inherit;
|
|
|
|
outline: none;
|
|
|
|
position: relative;
|
|
|
|
}
|
2022-01-04 19:20:02 +00:00
|
|
|
|
2021-06-13 17:11:58 +00:00
|
|
|
@-moz-document url-prefix() {
|
|
|
|
.language-select select {
|
|
|
|
-moz-appearance: none;
|
|
|
|
text-indent: -2px;
|
|
|
|
margin-right: -8px;
|
|
|
|
}
|
2021-06-02 20:57:10 +00:00
|
|
|
}
|
|
|
|
|
2021-06-13 17:11:58 +00:00
|
|
|
.language-select:after {
|
|
|
|
content: "";
|
|
|
|
width: 0.5em;
|
|
|
|
height: 0.5em;
|
|
|
|
margin: 0 0 0.25rem -0.75rem;
|
|
|
|
border: solid black;
|
|
|
|
border-width: 0 2px 2px 0;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 3px;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
z-index: -1;
|
|
|
|
}
|
2021-06-02 20:57:10 +00:00
|
|
|
|
|
|
|
.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;
|
2022-01-17 19:09:20 +00:00
|
|
|
color: #666;
|
2021-06-02 20:57:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-delete-text:focus,
|
2021-10-08 16:36:24 +00:00
|
|
|
.btn-action:focus {
|
2021-06-02 20:57:10 +00:00
|
|
|
background: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.characters-limit-container {
|
|
|
|
position: absolute;
|
|
|
|
right: 2rem;
|
|
|
|
bottom: 1rem;
|
2022-01-17 19:09:20 +00:00
|
|
|
color: #666;
|
2021-06-02 20:57:10 +00:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
2021-10-08 16:36:24 +00:00
|
|
|
.actions {
|
2021-06-02 20:57:10 +00:00
|
|
|
position: absolute;
|
2021-10-08 16:36:24 +00:00
|
|
|
right: 1.25rem;
|
2021-06-02 20:57:10 +00:00
|
|
|
bottom: 1rem;
|
|
|
|
display: flex;
|
2021-10-08 16:36:24 +00:00
|
|
|
}
|
|
|
|
|
2021-10-24 10:53:52 +00:00
|
|
|
.btn-switch-type {
|
2022-01-04 19:20:02 +00:00
|
|
|
background-color: #fff;
|
2022-01-17 19:09:20 +00:00
|
|
|
color: #1565C0;
|
2022-01-04 19:20:02 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: .5rem;
|
2021-10-24 10:53:52 +00:00
|
|
|
}
|
|
|
|
|
2021-10-24 11:13:52 +00:00
|
|
|
.btn-switch-type:focus {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
|
|
|
|
2021-10-24 10:53:52 +00:00
|
|
|
.btn-switch-type:hover {
|
2021-10-24 11:13:52 +00:00
|
|
|
background-color: #eee !important;
|
2022-01-17 19:09:20 +00:00
|
|
|
color: #1565C0;
|
2021-10-24 10:53:52 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-switch-type.active {
|
2022-01-17 19:09:20 +00:00
|
|
|
background-color: #1565C0 !important;
|
2021-10-24 10:53:52 +00:00
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2021-10-24 11:22:44 +00:00
|
|
|
.file-dropzone {
|
|
|
|
font-size: 1.1rem;
|
|
|
|
border: 1px solid #ccc;
|
|
|
|
background: #f3f3f3;
|
|
|
|
padding: 1rem 2rem 1rem 1.5rem;
|
2021-10-24 15:38:53 +00:00
|
|
|
min-height: 220px;
|
2021-10-24 11:22:44 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropzone-content {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
}
|
|
|
|
|
2021-10-08 16:36:24 +00:00
|
|
|
.btn-action {
|
|
|
|
display: flex;
|
2021-06-02 20:57:10 +00:00
|
|
|
align-items: center;
|
2022-01-17 19:09:20 +00:00
|
|
|
color: #666;
|
2021-06-02 20:57:10 +00:00
|
|
|
font-size: 0.85rem;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-10-08 17:02:30 +00:00
|
|
|
.btn-blue {
|
2022-01-17 19:09:20 +00:00
|
|
|
color: #1565C0;
|
2021-10-08 17:02:30 +00:00
|
|
|
}
|
|
|
|
.btn-action:disabled {
|
2022-01-17 19:09:20 +00:00
|
|
|
color: #666;
|
2021-10-08 17:02:30 +00:00
|
|
|
}
|
|
|
|
|
2021-10-08 16:36:24 +00:00
|
|
|
.btn-action span {
|
2021-06-02 20:57:10 +00:00
|
|
|
padding-right: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2021-10-08 16:36:24 +00:00
|
|
|
.btn-action .material-icons {
|
2021-06-02 20:57:10 +00:00
|
|
|
font-size: 1.35rem;
|
|
|
|
}
|
|
|
|
|
2022-01-04 19:20:02 +00:00
|
|
|
#translation-type-btns {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
margin: -.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-text {
|
|
|
|
display: none;
|
|
|
|
margin-left: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
#translation-form {
|
|
|
|
padding-top: 1em;
|
|
|
|
}
|
|
|
|
|
2021-06-02 20:57:10 +00:00
|
|
|
.progress {
|
2021-06-11 19:03:38 +00:00
|
|
|
background-color: #f3f3f3;
|
2021-06-02 20:57:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.progress.translate {
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.progress .indeterminate {
|
|
|
|
background-color: steelblue;
|
|
|
|
}
|
|
|
|
|
|
|
|
.textarea-container textarea {
|
|
|
|
font-size: 1.25rem;
|
|
|
|
resize: none;
|
|
|
|
border: 1px solid #ccc;
|
2021-06-11 19:03:38 +00:00
|
|
|
background: #f3f3f3;
|
2021-06-02 20:57:10 +00:00
|
|
|
padding: 1rem 2rem 1rem 1.5rem;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
2021-06-11 18:30:09 +00:00
|
|
|
.sr-only {
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
padding: 0;
|
|
|
|
margin: -1px;
|
|
|
|
overflow: hidden;
|
2021-06-13 17:11:58 +00:00
|
|
|
clip: rect(0, 0, 0, 0);
|
2021-06-11 18:30:09 +00:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2021-06-02 20:57:10 +00:00
|
|
|
.code {
|
|
|
|
font-size: 90%;
|
|
|
|
padding: 1rem 1.5rem;
|
2021-06-11 18:30:09 +00:00
|
|
|
border: 1px solid #ccc;
|
2021-06-02 20:57:10 +00:00
|
|
|
background: #fbfbfb;
|
|
|
|
overflow: auto;
|
|
|
|
font-family: monospace;
|
|
|
|
min-height: 280px;
|
|
|
|
width: 100%;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-footer .footer-copyright {
|
|
|
|
justify-content: center;
|
2021-06-13 17:11:58 +00:00
|
|
|
padding: 0.5rem 1rem;
|
2021-06-02 20:57:10 +00:00
|
|
|
}
|
|
|
|
|
2021-06-13 17:11:58 +00:00
|
|
|
#logo-container {
|
2021-06-12 16:18:21 +00:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2021-06-13 17:11:58 +00:00
|
|
|
.logo {
|
2021-06-12 16:18:21 +00:00
|
|
|
height: 32px;
|
|
|
|
}
|
|
|
|
|
2022-01-17 19:09:20 +00:00
|
|
|
.brand-logo {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenav-trigger {
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 993px) {
|
|
|
|
nav button.sidenav-trigger {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-04 20:13:43 +00:00
|
|
|
#download-btn-wrapper {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 2em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#download-btn {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2022-01-04 19:20:02 +00:00
|
|
|
@media (min-width: 280px) {
|
|
|
|
.btn-text {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-02 20:57:10 +00:00
|
|
|
@media (max-width: 760px) {
|
2021-06-13 17:11:58 +00:00
|
|
|
.language-select select {
|
2021-06-02 20:57:10 +00:00
|
|
|
text-align: center;
|
|
|
|
margin: auto;
|
2021-06-13 17:11:58 +00:00
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.language-select:after {
|
|
|
|
content: none;
|
2021-06-02 20:57:10 +00:00
|
|
|
}
|
|
|
|
.language-select span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|