Embed css in template

This commit is contained in:
Tim Van Baak 2020-06-02 12:11:27 -07:00
parent 1e93db124d
commit f0c42c415a
2 changed files with 30 additions and 2 deletions

View File

@ -102,4 +102,3 @@ def deactivate():
item = loader.WritethroughDict(os.path.join(DUNGEON_PATH, params['source'], params['itemid'] + '.item')) item = loader.WritethroughDict(os.path.join(DUNGEON_PATH, params['source'], params['itemid'] + '.item'))
item['active'] = False item['active'] = False
return jsonify({'active': item['active']}) return jsonify({'active': item['active']})

View File

@ -1,7 +1,36 @@
<html> <html>
<head> <head>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="../feed.css" /> <style>
div#wrapper { max-width: 700px; margin: 0 auto; }
.readable-item {
border: 1px solid black; border-radius: 6px;
padding: 5px;
margin-bottom: 20px;
word-break: break-word;
}
.item-title { font-size: 1.4em; }
.readable-item button { font-size: 1em; float:right; }
.item-link {
text-decoration: none;
float:right;
margin: 0px 2px;
font-size: 1em;
padding: 2px 7px;
border: 1px solid;
border-radius: 2px;
}
.item-info { color: rgba(0, 0, 0, 0.7); }
.readable-item img { max-width: 100%; }
button, summary { cursor: pointer; }
summary:focus { outline: 1px dotted gray; }
.strikethru span, .strikethru p {
text-decoration: line-through;
color: rgba(0, 0, 0, 0.2);
}
pre { white-space: pre-wrap; }
table.feed-control td { font-family: monospace; padding: 5px 10px; }
</style>
<script> <script>
var deactivate = function (source, itemid) { var deactivate = function (source, itemid) {
fetch('deactivate/', { fetch('deactivate/', {