minor css fixes

This commit is contained in:
biglyderv 2024-11-27 16:53:42 -05:00
parent 037d15b650
commit e202831aa5
3 changed files with 14 additions and 13 deletions

View file

@ -24,6 +24,7 @@ body {
pre { pre {
white-space: pre-wrap; white-space: pre-wrap;
font-family: var(--font);
} }
.banner { .banner {
@ -51,6 +52,10 @@ pre {
top: calc(-1*var(--elem-height)) top: calc(-1*var(--elem-height))
} }
.banner pre {
width: calc(var(--elem-width) - 40px);
}
.banner, .banner,
.banner-background, .banner-background,
.content, .content,
@ -60,19 +65,16 @@ pre {
.avatar { .avatar {
display: flex; display: flex;
justify-content: space-around; width: 200px;
width: 300px;
align-items: center; align-items: center;
} margin-bottom: 5px;
.banner pre {
width: var(--elem-width);
} }
.avatar-img { .avatar-img {
width: 50px; width: 50px;
height: 50px; height: 50px;
margin-right: 15px margin-right: 15px;
border-radius: var(--border-radius);
} }
.form { .form {
@ -108,7 +110,8 @@ pre {
font-weight: 700; font-weight: 700;
display: inline-block; display: inline-block;
background: var(--primary-dark); background: var(--primary-dark);
border-color: var(--primary-light) border-color: var(--primary-light);
margin: .5rem;
} }
.header { .header {

View file

@ -22,7 +22,7 @@
// todo: make this not look weird // todo: make this not look weird
if ($username) { if ($username) {
form("Broadcast your thoughts...", $form_message, array( form("Broadcast your thoughts...", $form_message, array(
array('key' => 'Post', 'type' => 'textarea', 'name' => 'post', 'default' => '') array('key' => 'Your message', 'type' => 'textarea', 'name' => 'post', 'default' => '')
)); ));
} }
@ -37,16 +37,16 @@
<img src='/pfp/<?php echo $post['username'] ?>.png' class='avatar-img'> <img src='/pfp/<?php echo $post['username'] ?>.png' class='avatar-img'>
<div> <div>
<div><b> <div><b>
<a class='link' href='/client/user?id=<?php echo $post['username'] ?>'> <a class='link' href='/user.php?id=<?php echo $post['username'] ?>'>
<?php echo $post['username'] ?> <?php echo $post['username'] ?>
</a> </a>
</b></div> </b></div>
<div><b> <div><b>
<?php echo date(DATE_ATOM,$post['date'] + $ref) ?> <?php echo date(DATE_ATOM,$post['date'] + $ref) ?>
</b></div> </b></div>
<pre><?php echo htmlspecialchars($post['content']) ?></pre>
</div> </div>
</div> </div>
<pre><?php echo htmlspecialchars($post['content']) ?></pre>
</div> </div>
<?php } <?php }
page_footer(); page_footer();

View file

@ -101,10 +101,8 @@
</div> </div>
<div class="avatar"> <div class="avatar">
<div></div>
<b><?php echo count($followers) ?> followers</b> <b><?php echo count($followers) ?> followers</b>
<b><?php echo count($following) ?> following</b> <b><?php echo count($following) ?> following</b>
<div></div>
</div> </div>
<input name="target" hidden="" value="<?php echo $username ?>"> <input name="target" hidden="" value="<?php echo $username ?>">