commit 23652c97c90ca2215a05b0e9d56f4265c55cee5a parent 2544151b0e696271ecf0d9514402e9b0de4c2c6f Author: n0tr1v <n0tr1v@protonmail.com> Date: Thu, 12 Jan 2023 23:57:05 -0800 css cleanup Diffstat:
10 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/pkg/web/public/css/style.css b/pkg/web/public/css/style.css @@ -140,4 +140,6 @@ textarea.transparent-input { transform: scale(1); opacity: 0; transition: all 0.4s ease; -} -\ No newline at end of file +} + +.mono { font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace; } diff --git a/pkg/web/public/views/pages/age_code.gohtml b/pkg/web/public/views/pages/age_code.gohtml @@ -29,7 +29,7 @@ <input type="hidden" name="formName" value="age_step2" /> <div class="form-group"> <label for="encrypted_message">{{ t "Please decrypt the following message with your private key and send the required code" . }}</label> - <textarea name="encrypted_message" id="encrypted_message" rows="10" class="form-control" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" readonly>{{ .Data.EncryptedMessage }}</textarea> + <textarea name="encrypted_message" id="encrypted_message" rows="10" class="form-control mono" readonly>{{ .Data.EncryptedMessage }}</textarea> </div> <div class="form-group"> <label for="age_code">{{ t "Your decrypted code" . }}</label> diff --git a/pkg/web/public/views/pages/forgot-password.gohtml b/pkg/web/public/views/pages/forgot-password.gohtml @@ -131,11 +131,11 @@ {{ t "Please sign the following message with your private key and send the signature" . }}<br /> <code>gpg --armor --detach-sign file</code> </label> - <input name="to_be_signed_message" id="to_be_signed_message" value="{{ .Data.ToBeSignedMessage }}" type="text" class="transparent-input form-control" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" readonly /> + <input name="to_be_signed_message" id="to_be_signed_message" value="{{ .Data.ToBeSignedMessage }}" type="text" class="transparent-input form-control mono" readonly /> </div> <div class="form-group"> <label for="signed_message" class="bg-label">{{ t "Message detached signature" . }}</label> - <textarea name="signed_message" id="signed_message" rows="10" class="transparent-input form-control{{ if .Data.ErrorSignedMessage }} is-invalid{{ end }}" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" autofocus>{{ .Data.SignedMessage }}</textarea> + <textarea name="signed_message" id="signed_message" rows="10" class="transparent-input form-control mono{{ if .Data.ErrorSignedMessage }} is-invalid{{ end }}" autofocus>{{ .Data.SignedMessage }}</textarea> {{ if .Data.ErrorSignedMessage }} <div class="invalid-feedback">{{ .Data.ErrorSignedMessage }}</div> {{ end }} @@ -143,7 +143,7 @@ {{ else }} <div class="form-group"> <label for="encrypted_message" class="bg-label">{{ t "Please decrypt the following message with your private key and send the required code" . }}</label> - <textarea name="encrypted_message" id="encrypted_message" rows="10" class="transparent-input form-control" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" readonly>{{ .Data.EncryptedMessage }}</textarea> + <textarea name="encrypted_message" id="encrypted_message" rows="10" class="transparent-input form-control mono" readonly>{{ .Data.EncryptedMessage }}</textarea> </div> <div class="form-group"> <label for="pgp_code" class="bg-label">{{ t "Your decrypted code" . }}</label> diff --git a/pkg/web/public/views/pages/link.gohtml b/pkg/web/public/views/pages/link.gohtml @@ -52,7 +52,7 @@ {{ if .Description }}<div>Description: {{ .Description }}</div>{{ end }} <div>Fingerprint: <span style="color: #82e17f;">{{ .GetKeyFingerprint }}</span></div> <div> - <textarea id="pgpPublicKey" rows="10" class="form-control" readonly style="max-width: 650px; font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace; white-space: pre; overflow-wrap: normal;">{{ .PgpPublicKey }}</textarea> + <textarea id="pgpPublicKey" rows="10" class="form-control mono" readonly style="max-width: 650px; white-space: pre; overflow-wrap: normal;">{{ .PgpPublicKey }}</textarea> </div> </div> {{ end }} diff --git a/pkg/web/public/views/pages/links.gohtml b/pkg/web/public/views/pages/links.gohtml @@ -45,7 +45,7 @@ </form> {{ end }} <a href="/links/{{ .UUID }}">{{ .Title }}</a> - {{ .Description | trunc 100 }}<br /> - <a style="color: gray; font-size: 10px; font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" href="{{ .URL }}" rel="noopener noreferrer" target="_blank">{{ .URL }}</a> + <a class="mono" style="color: gray; font-size: 10px;" href="{{ .URL }}" rel="noopener noreferrer" target="_blank">{{ .URL }}</a> {{ range $idx, $el := .Mirrors }} [<a href="{{ .MirrorURL }}" rel="noopener noreferrer" target="_blank">mirror {{ addInt $idx 1 }}</a>] {{ end }} diff --git a/pkg/web/public/views/pages/pgp.gohtml b/pkg/web/public/views/pages/pgp.gohtml @@ -28,7 +28,7 @@ <input type="hidden" name="formName" value="pgp_step1" /> <div class="form-group"> <!-- <label for="pgp_public_key">{{ t "PGP public key" . }}</label>--> - <textarea name="pgp_public_key" id="pgp_public_key" rows="10" class="form-control{{ if .Data.ErrorPGPPublicKey }} is-invalid{{ end }}" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;"{{ if .Data.ErrorPGPPublicKey }} autofocus{{ end }}>{{ .Data.PGPPublicKey }}</textarea> + <textarea name="pgp_public_key" id="pgp_public_key" rows="10" class="form-control mono{{ if .Data.ErrorPGPPublicKey }} is-invalid{{ end }}"{{ if .Data.ErrorPGPPublicKey }} autofocus{{ end }}>{{ .Data.PGPPublicKey }}</textarea> {{ if .Data.ErrorPGPPublicKey }} <div class="invalid-feedback">{{ .Data.ErrorPGPPublicKey }}</div> {{ end }} diff --git a/pkg/web/public/views/pages/pgp_code.gohtml b/pkg/web/public/views/pages/pgp_code.gohtml @@ -32,11 +32,11 @@ <div class="form-group"> <label for="encrypted_message">{{ t "Please sign the following message with your private key and send the signature" . }}</label> <p><code>gpg --armor --detach-sign file</code></p> - <input name="to_be_signed_message" id="to_be_signed_message" value="{{ .Data.ToBeSignedMessage }}" type="text" class="form-control" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" readonly /> + <input name="to_be_signed_message" id="to_be_signed_message" value="{{ .Data.ToBeSignedMessage }}" type="text" class="form-control mono" readonly /> </div> <div class="form-group"> <label for="signed_message">{{ t "Message detached signature" . }}</label> - <textarea name="signed_message" id="signed_message" rows="10" class="form-control{{ if .Data.ErrorSignedMessage }} is-invalid{{ end }}" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" autofocus>{{ .Data.SignedMessage }}</textarea> + <textarea name="signed_message" id="signed_message" rows="10" class="form-control mono{{ if .Data.ErrorSignedMessage }} is-invalid{{ end }}" autofocus>{{ .Data.SignedMessage }}</textarea> {{ if .Data.ErrorSignedMessage }} <div class="invalid-feedback">{{ .Data.ErrorSignedMessage }}</div> {{ end }} @@ -44,7 +44,7 @@ {{ else }} <div class="form-group"> <label for="encrypted_message">{{ t "Please decrypt the following message with your private key and send the required code" . }}</label> - <textarea name="encrypted_message" id="encrypted_message" rows="10" class="form-control" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" readonly>{{ .Data.EncryptedMessage }}</textarea> + <textarea name="encrypted_message" id="encrypted_message" rows="10" class="form-control mono" readonly>{{ .Data.EncryptedMessage }}</textarea> </div> <div class="form-group"> <label for="pgp_code">{{ t "Your decrypted code" . }}</label> diff --git a/pkg/web/public/views/pages/public-profile.gohtml b/pkg/web/public/views/pages/public-profile.gohtml @@ -55,7 +55,7 @@ </div> <div class="mt-3"> <label for="pgpPublicKey">PGP key:</label><br /> - <textarea id="pgpPublicKey" rows="10" class="form-control" readonly style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;">{{ .Data.User.GPGPublicKey }}</textarea> + <textarea id="pgpPublicKey" rows="10" class="form-control mono" readonly>{{ .Data.User.GPGPublicKey }}</textarea> </div> <div class="mt-3"> <label for="publicNotes">Public notes:{{ if .Data.PublicNotes.Notes }} <small>(last edited: {{ .Data.PublicNotes.UpdatedAt.Format "Jan 02, 2006 15:04" }}){{ end }}</small></label><br /> diff --git a/pkg/web/public/views/pages/sessions-gpg-sign-two-factor.gohtml b/pkg/web/public/views/pages/sessions-gpg-sign-two-factor.gohtml @@ -27,11 +27,11 @@ <div class="form-group"> <label for="encrypted_message">{{ t "Please sign the following message with your private key and send the signature" . }}</label> <p><code>gpg --armor --detach-sign file</code></p> - <input name="to_be_signed_message" id="to_be_signed_message" value="{{ .Data.ToBeSignedMessage }}" type="text" class="form-control" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" readonly /> + <input name="to_be_signed_message" id="to_be_signed_message" value="{{ .Data.ToBeSignedMessage }}" type="text" class="form-control mono" readonly /> </div> <div class="form-group"> <label for="signed_message">{{ t "Message detached signature" . }}</label> - <textarea name="signed_message" id="signed_message" rows="10" class="form-control{{ if .Data.ErrorSignedMessage }} is-invalid{{ end }}" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" autofocus>{{ .Data.SignedMessage }}</textarea> + <textarea name="signed_message" id="signed_message" rows="10" class="form-control mono{{ if .Data.ErrorSignedMessage }} is-invalid{{ end }}" autofocus>{{ .Data.SignedMessage }}</textarea> {{ if .Data.ErrorSignedMessage }} <div class="invalid-feedback">{{ .Data.ErrorSignedMessage }}</div> {{ end }} diff --git a/pkg/web/public/views/pages/sessions-gpg-two-factor.gohtml b/pkg/web/public/views/pages/sessions-gpg-two-factor.gohtml @@ -26,7 +26,7 @@ <input type="hidden" name="token" value="{{ .Data.Token }}" /> <div class="form-group"> <label for="encrypted_message">{{ t "Please decrypt the following message with your private key and send the required code" . }}</label> - <textarea name="encrypted_message" id="encrypted_message" rows="10" class="form-control" style="font-family: SFMono-Regular,Menlo,Monaco,Consolas,'Liberation Mono','Courier New',monospace;" readonly>{{ .Data.EncryptedMessage }}</textarea> + <textarea name="encrypted_message" id="encrypted_message" rows="10" class="form-control mono" readonly>{{ .Data.EncryptedMessage }}</textarea> </div> <div class="form-group"> <label for="pgp_code">{{ t "Your decrypted code" . }}</label>