Improve CSS

FossilOrigin-Name: cd810715f96cb9f2935365035400953bb40858d950140620fa4d6648c8f21e1a
This commit is contained in:
me@ow.nekobit.net 2022-04-04 16:37:04 +00:00
parent 4d90926acf
commit ac90e149ab
4 changed files with 48 additions and 13 deletions

53
dist/treebird20.css vendored
View file

@ -21,6 +21,21 @@ body
cursor: pointer;
}
a, a:visited, a:hover, a:active
{
color: inherit;
}
.mention
{
color: #cc0000;
text-decoration: none;
background-color: #ffcccc;
border-radius: 3px;
padding-left: 2px;
padding-right: 2px;
}
/* Cleans up most of the tables */
table.ui-table td
{
@ -323,14 +338,37 @@ ul li:first-child a.sidebarbtn
/* Only move up if SVG is next to it, the SVG moves the text */
.notification .notification-text-group-with-icon
{
position: relative;
top: -2px;
vertical-align: middle;
}
.notification-info svg.like,
.notification-info-format svg.like
{
fill: #aa0000;
}
svg.like, svg.repeat, svg.follow, svg.reply, svg.in-reply-to-icon
{
vertical-align: middle;
}
svg.in-reply-to-icon
{
position: relative;
top: -3px;
stroke: #606060;
}
.in-reply-to
{
color: #606060;
}
.in-reply-to-id
{
text-decoration: none;
line-height: 23px;
}
.notification-compact .notification-content
@ -354,18 +392,20 @@ ul li:first-child a.sidebarbtn
.notification-info img,
.notification-info-format img
{
margin-left: 36px;
margin-left: 38px;
width: 24px;
height: 24px;
object-fit: cover;
}
.notification-info .notification-user,
.ntoification-info-format .notification-user
.notification-info-format .notification-user
{
display: inline;
vertical-align: middle;
position: relative;
top: -8px;
left: 2px;
}
/***************************
@ -758,11 +798,6 @@ ul li:first-child a.sidebarbtn
{
font-size: 14px;
padding-bottom: 3px;
/* Move up */
position: relative;
top: -5px;
margin-bottom: -5px;
}
/* Emoji reacts */

View file

@ -1,3 +1,3 @@
#!/bin/bash
kill -9 $(pgrep treebird.cgi) > /dev/null 2>&1
fcgistarter -c $(dirname $(readlink -f $0))/../dist/treebird.cgi -p 4000 -N 1
kill -9 $(pgrep treebird) > /dev/null 2>&1
fcgistarter -c $(dirname $(readlink -f $0))/../treebird -p 4000 -N 1

View file

@ -1,3 +1,3 @@
<span class="in-reply-to">
<svg class="in-reply-to-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 9l6 6-6 6"/><path d="M4 4v7a4 4 0 0 0 4 4h11"/></svg> <a class="in-reply-to-id" href="%s/status/%s"><span class="in-reply-to-text">%s</span> <span class="acct">%s</span></a>
<svg class="in-reply-to-icon" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 9l6 6-6 6"/><path d="M4 4v7a4 4 0 0 0 4 4h11"/></svg> <a class="in-reply-to-id" href="%s/status/%s"> <span class="in-reply-to-text">%s</span> <span class="acct">%s</span></a>
</span>

View file

@ -49,7 +49,7 @@
<td>
<form action="%s/status/%s/reply" method="post">
<label class="pointer">
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 9l6 6-6 6"/><path d="M4 4v7a4 4 0 0 0 4 4h11"/></svg>
<svg class="reply" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 9l6 6-6 6"/><path d="M4 4v7a4 4 0 0 0 4 4h11"/></svg>
<span class="count">%s</span>
<input class="hidden" type="submit" value="Reply">
</label>