add translation selector and fix translation of data-attributes

This commit is contained in:
schlagmichdoch 2023-08-30 14:57:40 +02:00
parent 19f56a8499
commit 17afa18d84
18 changed files with 312 additions and 68 deletions

View file

@ -24,6 +24,7 @@ body {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
transition: color 300ms;
}
body {
@ -41,6 +42,10 @@ html {
min-height: fill-available;
}
.fw {
width: 100%;
}
.row-reverse {
display: flex;
flex-direction: row-reverse;
@ -452,7 +457,7 @@ x-no-peers::before {
}
x-no-peers[drop-bg]::before {
content: "Release to select recipient";
content: attr(data-drop-bg);
}
x-no-peers[drop-bg] * {
@ -652,11 +657,13 @@ footer .font-body2 {
#on-this-network {
border-bottom: solid 4px var(--primary-color);
padding-bottom: 1px;
word-break: keep-all;
}
#paired-devices {
border-bottom: solid 4px var(--paired-device-color);
padding-bottom: 1px;
word-break: keep-all;
}
#display-name {
@ -723,7 +730,6 @@ x-dialog x-paper {
top: max(50%, 350px);
margin-top: -328.5px;
width: calc(100vw - 20px);
height: 625px;
}
#pair-device-dialog ::-moz-selection,
@ -800,8 +806,12 @@ x-dialog .font-subheading {
margin: 16px;
}
#pair-instructions {
flex-direction: column;
}
x-dialog hr {
margin: 40px -24px 30px -24px;
margin: 20px -24px 20px -24px;
border: solid 1.25px var(--border-color);
}
@ -811,7 +821,7 @@ x-dialog hr {
/* Edit Paired Devices Dialog */
.paired-devices-wrapper:empty:before {
content: "No paired devices.";
content: attr(data-empty);
}
.paired-devices-wrapper:empty {
@ -908,18 +918,18 @@ x-dialog .row {
}
/* button row*/
x-paper > div:last-child {
margin: auto -24px -15px;
x-paper > .button-row {
margin: 25px -24px -15px;
border-top: solid 2.5px var(--border-color);
height: 50px;
}
x-paper > div:last-child > .button {
x-paper > .button-row > .button {
height: 100%;
width: 100%;
}
x-paper > div:last-child > .button:not(:last-child) {
x-paper > .button-row > .button:not(:last-child) {
border-left: solid 2.5px var(--border-color);
}
@ -1084,6 +1094,11 @@ x-dialog .dialog-subheader {
opacity: 0.1;
}
.button[selected],
.icon-button[selected] {
opacity: 0.1;
}
#cancel-paste-mode {
z-index: 2;
margin: 0;
@ -1314,11 +1329,11 @@ x-instructions:not([drop-peer]):not([drop-bg]):before {
}
x-instructions[drop-peer]:before {
content: "Release to send to peer";
content: attr(data-drop-peer);
}
x-instructions[drop-bg]:not([drop-peer]):before {
content: "Release to select recipient";
content: attr(data-drop-bg);
}
x-instructions p {
@ -1358,7 +1373,7 @@ x-peers:empty~x-instructions {
x-dialog x-paper {
padding: 15px;
}
x-paper > div:last-child {
x-paper > .button-row {
margin: auto -15px -15px;
}
}