Fix content display on blog posts, fix background scaling (again), update styling for blog post content
This commit is contained in:
parent
3b17c1f479
commit
138440d973
4 changed files with 42 additions and 21 deletions
|
@ -3,23 +3,20 @@
|
|||
}
|
||||
|
||||
/* Magic fix which forces outer most element to full view size for background scaling */
|
||||
/* NOTE: min-height and min-width here prevent body/site-content overflow and background breaking */
|
||||
html {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
min-height: 100%;
|
||||
min-width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: monospace;
|
||||
color: #e4e4e4;
|
||||
padding-top: 2rem;
|
||||
padding: 2rem;
|
||||
font-size: 18px;
|
||||
max-width: 55rem;
|
||||
line-height: 1.4;
|
||||
-webkit-hyphens: auto;
|
||||
-ms-hyphens: auto;
|
||||
hyphens: auto;
|
||||
/* Fancy background CSS colouring lives here */
|
||||
background: linear-gradient(to bottom right, rgba(0,0,0, 1), rgba(65,15,75, 1) 40%, rgba(65,15,90, 1) 50%, rgba(30,15,80, 1) 60%, rgba(0,0,0, 1));
|
||||
}
|
||||
|
@ -47,10 +44,7 @@ a:hover {
|
|||
}
|
||||
|
||||
#site-content {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
color: #e4e4e4;
|
||||
padding: 2rem;
|
||||
border-radius: 1rem;
|
||||
background: rgba(0,0,0, 0.78);
|
||||
|
@ -82,12 +76,29 @@ a:hover {
|
|||
}
|
||||
|
||||
#blog-page-title {
|
||||
padding-top: 1.5rem;
|
||||
padding-bottom: 1rem;
|
||||
letter-spacing: -2px;
|
||||
padding-bottom: 0.5rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#blog-post-content {
|
||||
padding-top: 1.5rem;
|
||||
}
|
||||
|
||||
#blog-post-content p {
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
#blog-post-content li {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
#blog-post-content ul {
|
||||
padding: 1rem;
|
||||
padding-top: 0rem;
|
||||
/* Align the inner il elements correctly */
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
.dotted-border {
|
||||
border-bottom: #e4e4e4 8px dotted;
|
||||
width: 100%;
|
||||
|
@ -108,5 +119,5 @@ a:hover {
|
|||
}
|
||||
|
||||
.blog-post-date {
|
||||
text-align: left;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue