2021-06-02 22:57:10 +02:00
|
|
|
/* Custom styles for LibreTranslate page */
|
|
|
|
|
2023-07-04 20:38:35 +02:00
|
|
|
:root {
|
|
|
|
--pri-bg-color: #fff;
|
|
|
|
--sec-bg-color: #f3f3f3;
|
|
|
|
--code-bg-color: #fbfbfb;
|
|
|
|
--border-color: #ccc;
|
|
|
|
--fg-color: #000;
|
|
|
|
--nav-fg-color: #fff;
|
|
|
|
--accent-color: #1565c0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
:root {
|
|
|
|
--pri-bg-color: #111;
|
|
|
|
--sec-bg-color: #222;
|
|
|
|
--code-bg-color: #222;
|
|
|
|
--border-color: #444;
|
|
|
|
--fg-color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.atrule, .token.attr-value, .token.keyword {
|
|
|
|
color: #40b5e8;
|
|
|
|
}
|
|
|
|
|
|
|
|
.language-css .token.string, .style .token.string,
|
|
|
|
.token.entity, .token.operator, .token.url {
|
|
|
|
color: #eecfab;
|
|
|
|
background: hsla(0,0%, 15%, .5);
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.attr-name, .token.builtin, .token.char,
|
|
|
|
.token.inserted, .token.selector, .token.string {
|
|
|
|
color: #acd25f;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.boolean, .token.constant, .token.deleted, .token.number,
|
|
|
|
.token.property, .token.symbol, .token.tag {
|
|
|
|
color: #ff8bcc;
|
|
|
|
}
|
|
|
|
|
|
|
|
.token.class-name, .token.function {
|
|
|
|
color: #ff7994;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
html, body, select {
|
2021-06-13 19:11:58 +02:00
|
|
|
font-size: 16px;
|
|
|
|
font-family: Arial, Helvetica, sans-serif !important;
|
|
|
|
}
|
|
|
|
|
2023-07-04 20:38:35 +02:00
|
|
|
body {
|
|
|
|
background-color: var(--pri-bg-color);
|
|
|
|
color: var(--fg-color);
|
2022-01-17 20:09:20 +01:00
|
|
|
}
|
|
|
|
|
2023-07-04 20:38:35 +02:00
|
|
|
nav, #nav, #nav-mobile, .locale-panel, .page-footer {
|
|
|
|
background-color: var(--accent-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
nav, nav .material-icons {
|
|
|
|
color: var(--nav-fg-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.material-icons {
|
|
|
|
color: var(--fg-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
a:not(.noline) {
|
|
|
|
text-decoration: underline;
|
2023-01-05 20:54:56 +01:00
|
|
|
}
|
|
|
|
|
2021-07-08 12:26:08 +02:00
|
|
|
#app {
|
|
|
|
min-height: 80vh;
|
|
|
|
}
|
|
|
|
|
2023-10-09 20:36:20 +02:00
|
|
|
.component{
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
#app.loaded .component{
|
|
|
|
visibility: visible;
|
|
|
|
}
|
|
|
|
|
2021-06-02 22:57:10 +02:00
|
|
|
h3.header {
|
|
|
|
margin-bottom: 2.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mb-0 {
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.mt-0 {
|
|
|
|
margin-top: 0 !important;
|
|
|
|
}
|
|
|
|
|
2021-10-24 12:53:52 +02:00
|
|
|
.mb-1 {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
|
|
|
|
2021-06-02 22:57:10 +02:00
|
|
|
.position-relative {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2023-07-04 20:38:35 +02:00
|
|
|
.top-nav .locale-panel {
|
2023-01-05 22:06:19 +01:00
|
|
|
position: absolute;
|
|
|
|
top: 64px;
|
|
|
|
height: 68px;
|
2023-01-06 20:24:00 +01:00
|
|
|
right: 0;
|
2023-01-05 22:06:19 +01:00
|
|
|
padding: 0 16px;
|
|
|
|
width: 240px;
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
border-bottom-right-radius: 4px;
|
|
|
|
box-shadow: 0 2px 2px 0 rgb(0 0 0 / 14%), 0 3px 1px -2px rgb(0 0 0 / 12%), 0px 4px 5px 0 rgb(0 0 0 / 20%);
|
|
|
|
}
|
|
|
|
|
2023-01-06 16:27:39 +01:00
|
|
|
.locale-panel{
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2023-01-06 19:37:34 +01:00
|
|
|
#nav:hover .change-language:hover + .locale-panel,
|
|
|
|
#nav-mobile:hover .change-language:hover + .locale-panel,
|
|
|
|
.change-language.clicked + .locale-panel{
|
2023-01-06 16:27:39 +01:00
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
#nav:hover .locale-panel:hover,
|
|
|
|
#nav-mobile .locale-panel:hover{
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2023-07-08 03:36:01 +02:00
|
|
|
.locale-panel select {
|
2023-01-05 22:06:19 +01:00
|
|
|
display: block;
|
|
|
|
height: 32px;
|
|
|
|
font-size: 14px;
|
2023-07-08 03:36:01 +02:00
|
|
|
color: var(--fg-color);
|
|
|
|
background-color: var(--pri-bg-color);
|
2023-01-06 19:47:05 +01:00
|
|
|
border: none;
|
2023-01-05 22:06:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.locale-panel a{
|
|
|
|
line-height: normal;
|
|
|
|
font-size: 90%;
|
|
|
|
padding: 0;
|
|
|
|
margin-top: 6px;
|
|
|
|
text-align: right;
|
2023-01-06 16:27:39 +01:00
|
|
|
text-decoration: none;
|
|
|
|
height: 28px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.locale-panel a:hover{
|
|
|
|
text-decoration: underline;
|
2023-01-05 22:06:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.locale-panel a i.material-icons{
|
|
|
|
display: inline-block;
|
|
|
|
line-height: initial;
|
|
|
|
line-height: 14px;
|
|
|
|
font-size: 100%;
|
|
|
|
position: relative;
|
|
|
|
top: 2px;
|
|
|
|
left: 2px;
|
|
|
|
}
|
|
|
|
|
2023-10-09 21:46:50 +02:00
|
|
|
.locale-panel a:hover{
|
2023-01-06 19:47:05 +01:00
|
|
|
background-color: transparent !important;
|
2023-01-05 22:06:19 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#nav-mobile .locale-panel{
|
|
|
|
color: rgba(0,0,0,0.87);
|
|
|
|
padding: 0 32px;
|
2023-01-06 16:27:39 +01:00
|
|
|
padding-top: 12px;
|
2023-01-05 22:06:19 +01:00
|
|
|
}
|
|
|
|
|
2023-01-06 19:47:05 +01:00
|
|
|
#nav-mobile a, #nav-mobile a i.material-icons{
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2023-01-05 22:06:19 +01:00
|
|
|
#nav-mobile .locale-panel a{
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#nav-mobile .locale-panel a i.material-icons{
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
2023-07-04 20:38:35 +02:00
|
|
|
select {
|
|
|
|
color: var(--fg-color);
|
2023-10-09 21:15:39 +02:00
|
|
|
background-color: var(--pri-bg-color);
|
2023-09-17 00:00:10 +02:00
|
|
|
}
|
|
|
|
|
2021-06-02 22:57:10 +02:00
|
|
|
.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-07-05 15:19:46 +02:00
|
|
|
padding: 0;
|
2021-06-13 19:11:58 +02:00
|
|
|
text-indent: 0.01px;
|
2021-06-02 22:57:10 +02:00
|
|
|
text-overflow: "";
|
2021-06-13 19:11:58 +02:00
|
|
|
margin: 0;
|
2021-07-05 15:19:46 +02:00
|
|
|
margin-left: 6px;
|
2021-06-02 22:57:10 +02:00
|
|
|
height: 2rem;
|
2021-06-13 19:11:58 +02:00
|
|
|
line-height: inherit;
|
|
|
|
outline: none;
|
|
|
|
position: relative;
|
|
|
|
}
|
2022-01-04 20:20:02 +01:00
|
|
|
|
2021-06-13 19:11:58 +02:00
|
|
|
.language-select:after {
|
|
|
|
content: "";
|
|
|
|
width: 0.5em;
|
|
|
|
height: 0.5em;
|
|
|
|
margin: 0 0 0.25rem -0.75rem;
|
2023-07-04 20:38:35 +02:00
|
|
|
border: solid var(--fg-color);
|
2021-06-13 19:11:58 +02:00
|
|
|
border-width: 0 2px 2px 0;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 3px;
|
|
|
|
transform: rotate(45deg);
|
|
|
|
z-index: -1;
|
|
|
|
}
|
2021-06-02 22:57:10 +02:00
|
|
|
|
|
|
|
.btn-switch-language {
|
|
|
|
color: black;
|
|
|
|
margin-left: -1.5rem;
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.textarea-container {
|
|
|
|
margin-top: 0;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2023-07-04 20:38:35 +02:00
|
|
|
.textarea-container .material-icons {
|
|
|
|
color: #666;
|
|
|
|
}
|
|
|
|
|
2021-06-02 22:57:10 +02:00
|
|
|
.btn-delete-text {
|
|
|
|
position: absolute;
|
|
|
|
right: 1.5rem;
|
|
|
|
top: 0.75rem;
|
|
|
|
border: 0;
|
|
|
|
background: none;
|
|
|
|
padding: 0;
|
|
|
|
cursor: pointer;
|
2022-01-17 20:09:20 +01:00
|
|
|
color: #666;
|
2021-06-02 22:57:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-delete-text:focus,
|
2021-10-08 18:36:24 +02:00
|
|
|
.btn-action:focus {
|
2021-06-02 22:57:10 +02:00
|
|
|
background: none !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.characters-limit-container {
|
|
|
|
position: absolute;
|
|
|
|
right: 2rem;
|
|
|
|
bottom: 1rem;
|
2022-01-17 20:09:20 +01:00
|
|
|
color: #666;
|
2021-06-02 22:57:10 +02:00
|
|
|
pointer-events: none;
|
|
|
|
}
|
2021-10-08 18:36:24 +02:00
|
|
|
.actions {
|
2021-06-02 22:57:10 +02:00
|
|
|
position: absolute;
|
2021-10-08 18:36:24 +02:00
|
|
|
right: 1.25rem;
|
2021-06-02 22:57:10 +02:00
|
|
|
bottom: 1rem;
|
|
|
|
display: flex;
|
2021-10-08 18:36:24 +02:00
|
|
|
}
|
|
|
|
|
2021-10-24 12:53:52 +02:00
|
|
|
.btn-switch-type {
|
2023-07-04 20:38:35 +02:00
|
|
|
background-color: var(--sec-bg-color);
|
|
|
|
color: var(--fg-color);
|
2022-01-04 20:20:02 +01:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
margin: .5rem;
|
2021-10-24 12:53:52 +02:00
|
|
|
}
|
|
|
|
|
2021-10-24 13:13:52 +02:00
|
|
|
.btn-switch-type:focus {
|
|
|
|
background-color: inherit;
|
|
|
|
}
|
|
|
|
|
2021-10-24 12:53:52 +02:00
|
|
|
.btn-switch-type:hover {
|
2023-07-04 20:38:35 +02:00
|
|
|
background-color: var(--sec-bg-color);
|
2021-10-24 12:53:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-switch-type.active {
|
2023-07-04 20:38:35 +02:00
|
|
|
background-color: var(--accent-color);
|
|
|
|
color: #FFF;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn-switch-type.active .material-icons {
|
|
|
|
color: #FFF;
|
2021-10-24 12:53:52 +02:00
|
|
|
}
|
|
|
|
|
2021-10-24 13:22:44 +02:00
|
|
|
.file-dropzone {
|
|
|
|
font-size: 1.1rem;
|
2023-07-04 20:38:35 +02:00
|
|
|
background: var(--sec-bg-color);
|
|
|
|
border: 1px solid var(--border-color);
|
2021-10-24 13:22:44 +02:00
|
|
|
padding: 1rem 2rem 1rem 1.5rem;
|
2021-10-24 17:38:53 +02:00
|
|
|
min-height: 220px;
|
2021-10-24 13:22:44 +02:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropzone-content {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 50%;
|
|
|
|
|
|
|
|
transform: translate(-50%, -50%);
|
|
|
|
}
|
|
|
|
|
2021-10-08 18:36:24 +02:00
|
|
|
.btn-action {
|
|
|
|
display: flex;
|
2021-06-02 22:57:10 +02:00
|
|
|
align-items: center;
|
2022-01-17 20:09:20 +01:00
|
|
|
color: #666;
|
2021-06-02 22:57:10 +02:00
|
|
|
font-size: 0.85rem;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
2021-10-08 19:02:30 +02:00
|
|
|
.btn-blue {
|
2022-01-17 20:09:20 +01:00
|
|
|
color: #1565C0;
|
2021-10-08 19:02:30 +02:00
|
|
|
}
|
2023-07-04 20:38:35 +02:00
|
|
|
|
2021-10-08 19:02:30 +02:00
|
|
|
.btn-action:disabled {
|
2023-07-04 20:38:35 +02:00
|
|
|
color: #666;
|
2021-10-08 19:02:30 +02:00
|
|
|
}
|
|
|
|
|
2021-10-08 18:36:24 +02:00
|
|
|
.btn-action span {
|
2021-06-02 22:57:10 +02:00
|
|
|
padding-right: 0.5rem;
|
|
|
|
}
|
|
|
|
|
2021-10-08 18:36:24 +02:00
|
|
|
.btn-action .material-icons {
|
2021-06-02 22:57:10 +02:00
|
|
|
font-size: 1.35rem;
|
|
|
|
}
|
|
|
|
|
2022-01-04 20:20:02 +01: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 22:57:10 +02:00
|
|
|
.progress {
|
2021-06-11 21:03:38 +02:00
|
|
|
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;
|
2023-07-08 03:23:53 +02:00
|
|
|
color: var(--fg-color);
|
2023-07-04 20:38:35 +02:00
|
|
|
background: var(--sec-bg-color);
|
|
|
|
border: 1px solid var(--border-color);
|
2021-06-02 22:57:10 +02:00
|
|
|
padding: 1rem 2rem 1rem 1.5rem;
|
|
|
|
overflow-y: hidden;
|
|
|
|
}
|
|
|
|
|
2021-06-11 20:30:09 +02:00
|
|
|
.sr-only {
|
|
|
|
position: absolute;
|
|
|
|
width: 1px;
|
|
|
|
height: 1px;
|
|
|
|
padding: 0;
|
|
|
|
margin: -1px;
|
|
|
|
overflow: hidden;
|
2021-06-13 19:11:58 +02:00
|
|
|
clip: rect(0, 0, 0, 0);
|
2021-06-11 20:30:09 +02:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2023-07-09 13:25:03 +02:00
|
|
|
.code-row-wrapper {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.code-box {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2021-06-02 22:57:10 +02:00
|
|
|
.code {
|
|
|
|
font-size: 90%;
|
|
|
|
padding: 1rem 1.5rem;
|
2023-07-04 20:38:35 +02:00
|
|
|
background: var(--code-bg-color);
|
|
|
|
border: 1px solid var(--border-color);
|
2021-06-02 22:57:10 +02:00
|
|
|
overflow: auto;
|
|
|
|
font-family: monospace;
|
|
|
|
min-height: 280px;
|
|
|
|
width: 100%;
|
|
|
|
overflow: auto;
|
2023-07-09 13:25:03 +02:00
|
|
|
flex-grow: 1;
|
2021-06-02 22:57:10 +02:00
|
|
|
}
|
|
|
|
|
2023-07-04 20:38:35 +02:00
|
|
|
code[class*="language-"], pre[class*="language-"] {
|
|
|
|
color: var(--fg-color);
|
|
|
|
text-shadow: 0 1px var(--pri-bg-color);
|
|
|
|
}
|
|
|
|
|
2021-06-02 22:57:10 +02:00
|
|
|
.page-footer .footer-copyright {
|
|
|
|
justify-content: center;
|
2021-06-13 19:11:58 +02:00
|
|
|
padding: 0.5rem 1rem;
|
2021-06-02 22:57:10 +02:00
|
|
|
}
|
|
|
|
|
2021-06-13 19:11:58 +02:00
|
|
|
#logo-container {
|
2021-06-12 18:18:21 +02:00
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
|
2021-06-13 19:11:58 +02:00
|
|
|
.logo {
|
2021-06-12 18:18:21 +02:00
|
|
|
height: 32px;
|
|
|
|
}
|
|
|
|
|
2022-01-17 20:09:20 +01:00
|
|
|
.brand-logo {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidenav-trigger {
|
|
|
|
background-color: transparent;
|
|
|
|
border: none;
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
2022-01-04 21:13:43 +01:00
|
|
|
#download-btn-wrapper {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
margin: 2em 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#download-btn {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2023-07-19 12:45:23 +02:00
|
|
|
text-decoration: none;
|
2022-01-04 21:13:43 +01:00
|
|
|
}
|
|
|
|
|
2023-10-09 22:17:38 +02:00
|
|
|
#download-btn i{
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
2023-07-08 03:36:01 +02:00
|
|
|
.card-content {
|
|
|
|
background-color: var(--pri-bg-color);
|
|
|
|
}
|
|
|
|
|
2023-07-08 12:59:07 +02:00
|
|
|
.card-stacked, .card-stacked .card-content {
|
2023-07-08 03:36:01 +02:00
|
|
|
background-color: var(--sec-bg-color)
|
|
|
|
}
|
|
|
|
|
2022-01-04 20:20:02 +01:00
|
|
|
@media (min-width: 280px) {
|
|
|
|
.btn-text {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-06-02 22:57:10 +02:00
|
|
|
@media (max-width: 760px) {
|
2021-06-13 19:11:58 +02:00
|
|
|
.language-select select {
|
2021-06-02 22:57:10 +02:00
|
|
|
text-align: center;
|
|
|
|
margin: auto;
|
2021-06-13 19:11:58 +02:00
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
.language-select:after {
|
|
|
|
content: none;
|
2021-06-02 22:57:10 +02:00
|
|
|
}
|
|
|
|
.language-select span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2023-07-04 20:38:35 +02:00
|
|
|
|
|
|
|
@media (min-width: 993px) {
|
|
|
|
nav button.sidenav-trigger {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|