style: removed borders and made heading small

This commit is contained in:
Ayo 2023-06-12 21:53:01 +02:00
parent 7084c94ce5
commit 4bae7cb0b9

View file

@ -7,6 +7,7 @@ export interface Props {
const {postDivSelector, skipSave = false} = Astro.props;
---
<div id="library">
<span id="heading"></span>
<ul id="post-list"></ul>
</div>
@ -32,6 +33,9 @@ const {postDivSelector, skipSave = false} = Astro.props;
const list = document.querySelector('#post-list');
if(cachedRequests?.length) {
const heading = document.querySelector('#library span#heading') as HTMLHeadingElement;
heading.innerHTML = 'History';
cachedRequests
// temporary delete all cached errors
.filter(request => {
@ -79,18 +83,18 @@ const {postDivSelector, skipSave = false} = Astro.props;
<style lang="scss">
#library {
:global(h2) {
text-align: center;
:global(span#heading) {
color: #555;
font-size: small;
text-transform: uppercase;
}
}
#post-list {
:global(li) {
list-style: none;
display: block;
float: left;
width: calc(100% + 40px);
margin-left: -40px;
border-bottom: 1px solid #eee;
:global(a) {
text-decoration: none;
@ -101,8 +105,7 @@ const {postDivSelector, skipSave = false} = Astro.props;
}
:global(.post-card) {
padding: 1rem 0;
padding-top: 1rem;
:global(.post-card__image) {
float: left;
margin-right: 0.5rem;