diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-06-01 17:18:42 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-06-01 17:18:42 -0400 |
commit | 1edd2af857a9c94ad71d25a0b6c420253affb71b (patch) | |
tree | a6a08bbc50777ddc00a4fb33436174da986cff05 | |
parent | 1528a1c8fbd15103b02ce3d735355097b5774b5f (diff) | |
download | ksmap-1edd2af857a9c94ad71d25a0b6c420253affb71b.tar.gz |
Remove inline styles
More tweaks to make it work with the CSP header
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | www/base.css | 16 | ||||
-rwxr-xr-x | yaml-to-kml.py | 7 |
2 files changed, 19 insertions, 4 deletions
diff --git a/www/base.css b/www/base.css index 55e5c9b..a96d535 100644 --- a/www/base.css +++ b/www/base.css @@ -9,3 +9,19 @@ body { margin: 0px; padding: 0px; } + +.devpop { + min-width: 250pt; +} + +.devimg { + float: left; + margin: 0pt 3pt 5pt 0pt; + border: 1px solid black; + width: 64px; + height:64px; +} + +.devclear { + clear: both; +} diff --git a/yaml-to-kml.py b/yaml-to-kml.py index 0ee3063..5b1f413 100755 --- a/yaml-to-kml.py +++ b/yaml-to-kml.py @@ -102,9 +102,8 @@ if __name__ == '__main__': libavhash = hashlib.md5(email).hexdigest() desc = ''' - <div style="min-width: 250pt"> - <img style="float:left;margin:0 3pt 5pt 0;border:1px solid black;width:64;height:64" - src="https://seccdn.libravatar.org/avatar/%s?s=64&d=retro"/> + <div class="devpop"> + <img class="devimg" src="https://seccdn.libravatar.org/avatar/%s?s=64&d=retro"/> <p><b>Contact:</b> <a href="mailto:%s">%s</a> ''' % (libavhash, ydata['email'], ydata['email']) @@ -112,7 +111,7 @@ if __name__ == '__main__': desc += '''<br/> <b>Key stats:</b> <a href="http://pgp.cs.uu.nl/stats/%s.html">%s</a> ''' % (ydata['key'], ydata['key']) - desc += '</p><p style="clear:both">' + desc += '</p><p class="devclear">' if 'description' in location.keys(): desc += location['description'].strip() |