Style for pgp public key

main
Bob Mottram 2019-12-17 21:08:53 +00:00
parent 0d0a52e07d
commit 57a15fe2df
3 changed files with 19 additions and 2 deletions

View File

@ -75,6 +75,12 @@ a:link {
color: var(--main-link-color);
}
.pgp {
font-size: var(--font-size4);
color: var(--main-link-color);
font-family: 'monospace';
}
.button {
border-radius: 4px;
background-color: var(--button-background);

View File

@ -284,6 +284,17 @@ a:link {
color: var(--main-fg-color);
}
.imText {
font-size: var(--font-size4);
color: var(--main-link-color);
}
.pgp {
font-size: var(--font-size4);
color: var(--main-link-color);
font-family: 'monospace';
}
.container img.announceOrReply {
float: none;
width: 30px;

View File

@ -1552,7 +1552,7 @@ def htmlProfile(defaultTimeline: str, \
if matrixAddress:
donateSection+='<p>'+translate['Matrix']+': '+matrixAddress+'</p>\n'
if PGPpubKey:
donateSection+='<p>'+translate['PGP']+': '+PGPpubKey+'</p>\n'
donateSection+='<p class="pgp">'+translate['PGP']+': '+PGPpubKey.replace('\n','<br>')+'</p>\n'
donateSection+=' </center>\n'
donateSection+='</div>\n'
@ -3422,7 +3422,7 @@ def htmlPersonOptions(translate: {},baseDir: str, \
if matrixAddress:
optionsStr+='<p class="imText">Matrix: '+matrixAddress+'</p>'
if PGPpubKey:
optionsStr+='<p class="imText">PGP: '+PGPpubKey+'</p>'
optionsStr+='<p class="pgp">PGP: '+PGPpubKey.replace('\n','<br>')+'</p>'
optionsStr+=' <form method="POST" action="'+originPathStr+'/personoptions">'
optionsStr+=' <input type="hidden" name="pageNumber" value="'+str(pageNumber)+'">'
optionsStr+=' <input type="hidden" name="actor" value="'+optionsActor+'">'