Skip to content

Commit

Permalink
some little style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mauforonda committed Dec 8, 2022
1 parent 8546ea3 commit 5e84010
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 19 deletions.
27 changes: 16 additions & 11 deletions templates/digest.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,22 @@
</head>
<body>
<div id="container">
<h1>Mastodon Digest</h1>
<span id="render-description">Rendered <span id="rendered-value">{{ rendered_at }}</span> from your timeline over the past <span id="hours-value">{{ hours }}</span> hours</span><br />
<span id="scorer">Scorer: <span id="scorer-value">{{ scorer }}</span></span><br /><span id="threshold">Threshold: <span id="threshold-value">{{ threshold }}</span></span>
<h2>Here are some popular posts you may have missed:</h2>
{% with posts=posts %}
{% include "posts.html.jinja" %}
{% endwith %}
<h2>Here are some popular boosts you may have missed:</h2>
{% with posts=boosts %}
{% include "posts.html.jinja" %}
{% endwith %}
<div class="header">
<h1>Mastodon Digest</h1>
<span id="render-description">Rendered <span id="rendered-value">{{ rendered_at }}</span> from my timeline over the past <span id="hours-value">{{ hours }}</span> hours</span><br />
<span id="scorer">Scorer: <span id="scorer-value">{{ scorer }}</span></span><br />
<span id="threshold">Threshold: <span id="threshold-value">{{ threshold }}</span></span>
</div>
<div class="stream">
<h2>Here are some popular posts you may have missed:</h2>
{% with posts=posts %}
{% include "posts.html.jinja" %}
{% endwith %}
<h2>Here are some popular boosts you may have missed:</h2>
{% with posts=boosts %}
{% include "posts.html.jinja" %}
{% endwith %}
</div>
</div>
</body>
</html>
22 changes: 14 additions & 8 deletions templates/style.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
border: 1px solid #E6E3E1;
border-radius: 10px;
display: flex;
flex-start: left;
margin: 15px;
margin: 15px 0px;
box-shadow: 0.2px 0.4px 0.8px -10px rgba(0,0,0,0.03), 0.4px 0.9px 2px -10px rgba(0,0,0,0.030), 0.8px 1.8px 3.8px -10px rgba(0,0,0,0.038), 1.3px 3.1px 6.7px -10px rgba(0,0,0,0.045), 2.5px 5.8px 12.5px -10px rgba(0,0,0,0.06), 6px 14px 30px -10px rgba(0,0,0,0.08);
}
Expand All @@ -42,10 +41,11 @@
}
.avatar {
max-width: 64px;
min-width: 64px;
height: 64px;
max-width: 56px;
min-width: 56px;
height: 56px;
}
.avatar img {
max-width: 100%;
border-radius: 50%;
Expand All @@ -63,6 +63,7 @@
}
.username {
font-size: .85em;
}
.displayname {
Expand All @@ -81,6 +82,8 @@
color: #3e3d41;
font-size: 14px;
padding: 15px 15px 15px 0px;
overflow-wrap: break-word;
word-break: break-word;
}
.media {
Expand All @@ -98,8 +101,13 @@
color: #4d54d1;
}
.ellipsis::after {
content: "";
}
.content .invisible {
opacity: .7;
display: none;
}
.status a:not(.hashtag):not(.mention) span:not(.invisible){
Expand Down Expand Up @@ -131,6 +139,4 @@
padding-right: 10px;
}
</style>

0 comments on commit 5e84010

Please sign in to comment.