Rename CSS .openpgp-control to .crypto-control

This commit is contained in:
the-djmaze 2024-02-20 01:52:37 +01:00
parent 9c9adde9c8
commit 7ae53719c4
3 changed files with 7 additions and 7 deletions

View file

@ -198,7 +198,7 @@
}
}
.openpgp-control {
.crypto-control {
padding: 0.5em;
span {

View file

@ -293,20 +293,20 @@
</div>
<div data-bind="visible: message().pgpEncrypted()">
<div class="openpgp-control encrypted" data-bind="css: {success: message().pgpDecrypted()}">
<div class="crypto-control encrypted" data-bind="css: {success: message().pgpDecrypted()}">
<span data-icon="🔒" data-i18n="OPENPGP/ENCRYPTED_MESSAGE"></span>
<button class="btn" data-bind="visible: pgpSupported, click: pgpDecrypt" data-i18n="CRYPTO/DECRYPT"></button>
</div>
</div>
<div data-bind="visible: message().pgpSigned()">
<div class="openpgp-control signed" data-bind="css: {success: message().pgpVerified() && message().pgpVerified().success, error: message().pgpVerified() && !message().pgpVerified().success}">
<div class="crypto-control signed" data-bind="css: {success: message().pgpVerified() && message().pgpVerified().success, error: message().pgpVerified() && !message().pgpVerified().success}">
<span data-icon="✍" data-i18n="OPENPGP/SIGNED_MESSAGE"></span>
<button class="btn" data-bind="visible: pgpSupported, click: pgpVerify" data-i18n="CRYPTO/VERIFY"></button>
</div>
</div>
<div data-bind="visible: message().smimeEncrypted()">
<div class="smime-control encrypted" data-bind="css: {success: message().smimeDecrypted()}">
<div class="crypto-control encrypted" data-bind="css: {success: message().smimeDecrypted()}">
<span data-icon="🔒" data-i18n="OPENPGP/ENCRYPTED_MESSAGE"></span>
<!-- TODO
<button class="btn" data-bind="click: smimeDecrypt" data-i18n="CRYPTO/DECRYPT"></button>
@ -314,7 +314,7 @@
</div>
</div>
<div data-bind="visible: message().smimeSigned()">
<div class="smime-control signed" data-bind="css: {success: message().smimeVerified() && message().smimeVerified().success, error: message().smimeVerified() && !message().smimeVerified().success}">
<div class="crypto-control signed" data-bind="css: {success: message().smimeVerified() && message().smimeVerified().success, error: message().smimeVerified() && !message().smimeVerified().success}">
<span data-icon="✍" data-i18n="SMIME/SIGNED_MESSAGE"></span>
<button class="btn" data-bind="click: smimeVerify" data-i18n="CRYPTO/VERIFY"></button>
</div>

View file

@ -1850,8 +1850,8 @@ html.sm-msgView-bottom #rl-app .messageView {
height: 30px;
}
#rl-app .messageView .openpgp-control.encrypted,
#rl-app .messageView .openpgp-control.signed {
#rl-app .messageView .crypto-control.encrypted,
#rl-app .messageView .crypto-control.signed {
border-radius: var(--nc-border-radius);
}