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