mirror of
https://git.nolog.cz/NoLog.cz/headline.git
synced 2025-01-31 11:53:35 +01:00
WIP
This commit is contained in:
parent
165948da05
commit
ac690f2fb2
2 changed files with 106 additions and 39 deletions
|
@ -1,6 +1,12 @@
|
|||
:root {
|
||||
--border-color: hsl(0 0% 90%);
|
||||
--accent-color: red;
|
||||
--border-color: hsl(0 0% 80%);
|
||||
--accent-color: blue;
|
||||
--color-muted: hsl(0 0% 50%);
|
||||
--radius-m: 0.5em;
|
||||
--font-size-m: 1rem;
|
||||
--font-size-s: 0.85rem;
|
||||
--font-size-xs: 0.75rem;
|
||||
--font-size-l: 1.25rem;
|
||||
}
|
||||
|
||||
html {
|
||||
|
@ -68,6 +74,10 @@ body {
|
|||
padding: 0 2rem;
|
||||
}
|
||||
|
||||
ins {
|
||||
background-color: green;
|
||||
}
|
||||
|
||||
table,
|
||||
th,
|
||||
tr,
|
||||
|
@ -79,13 +89,71 @@ td {
|
|||
list-style-type: none;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
|
||||
& .page-link {
|
||||
display: block;
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
|
||||
& .page-item.active {
|
||||
background-color: var(--accent-color);
|
||||
}
|
||||
}
|
||||
|
||||
.page-link {
|
||||
display: block;
|
||||
padding: 0.5em 1em;
|
||||
.changeset {
|
||||
padding: 1rem 1.5rem;
|
||||
border: 1px solid var(--border-color);
|
||||
border-radius: var(--radius-m);
|
||||
margin-bottom: 1rem;
|
||||
box-shadow: 0 2px 0 hsl(0 0% 50% / 20%);
|
||||
}
|
||||
|
||||
.page-item.active {
|
||||
background-color: var(--accent-color);
|
||||
.changeset-actions {
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
margin-bottom: 0.75rem;
|
||||
}
|
||||
|
||||
.changeset-feed-name,
|
||||
.changeset-time,
|
||||
.changeset-action {
|
||||
font-weight: 500;
|
||||
font-size: var(--font-size-s);
|
||||
}
|
||||
|
||||
.changeset-feed-name,
|
||||
.changeset-time {
|
||||
/* color: var(--color-muted); */
|
||||
}
|
||||
|
||||
.changeset-action {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.5em;
|
||||
font-weight: 500;
|
||||
color: var(--color-muted);
|
||||
text-decoration: none;
|
||||
transition: color 200ms;
|
||||
}
|
||||
|
||||
.changeset-action:first-of-type {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
|
||||
.changeset-action:hover {
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
.changeset-title {
|
||||
font-size: var(--font-size-l);
|
||||
}
|
||||
|
||||
.changeset svg {
|
||||
display: inline-block;
|
||||
fill: currentColor;
|
||||
width: 1.25em;
|
||||
}
|
||||
|
||||
.changeset details[open] summary {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
|
|
@ -18,38 +18,37 @@
|
|||
>Hledat</button>
|
||||
</div>
|
||||
</form>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Detection time</th>
|
||||
<th>Source</th>
|
||||
<th>Diff</th>
|
||||
<th>Original</th>
|
||||
<th>Changed</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for diff in diffs %}
|
||||
<tr>
|
||||
<td>{{ diff.diff_time }}</td>
|
||||
<td>
|
||||
<a href="{{ diff.article_url }}" target="_blank"
|
||||
>{{ diff.feed_name }}</a
|
||||
>
|
||||
</td>
|
||||
<td>{{ diff.diff_html|safe }}</td>
|
||||
<td class="expanded">
|
||||
<span class="long">{{ diff.title_orig }} </span>
|
||||
</td>
|
||||
<td class="expanded">
|
||||
<span class="long">{{ diff.title_new}} </span>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% for diff in diffs %}
|
||||
<article class="changeset">
|
||||
<p class="changeset-actions">
|
||||
<span class="changeset-feed-name">{{ diff.feed_name }}</span>
|
||||
<time class="changeset-time">{{ diff.diff_time }}</time>
|
||||
<a class="changeset-action" href="{{ diff.article_url }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z"></path></svg>
|
||||
Display article
|
||||
</a>
|
||||
<a class="changeset-action" href="/article/{{ diff.article_url }}">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM13 12H17V14H11V7H13V12Z"></path></svg>
|
||||
Show change history
|
||||
</a>
|
||||
</p>
|
||||
<details>
|
||||
<summary class="changeset-title">
|
||||
{{ diff.diff_html|safe }}
|
||||
</summary>
|
||||
<p>
|
||||
<strong>Old</strong>:
|
||||
{{ diff.title_orig }}
|
||||
</p>
|
||||
<p>
|
||||
<strong>New</strong>:
|
||||
{{ diff.title_new }}
|
||||
</p>
|
||||
</details>
|
||||
</article>
|
||||
{% endfor %}
|
||||
|
||||
{{ pagination.links }}
|
||||
{{ pagination.info }}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue