+87
-71
@@ -1,4 +1,5 @@
|
||||
html, body {
|
||||
html,
|
||||
body {
|
||||
font-family: 'EB Garamond', serif;
|
||||
font-size: 20px;
|
||||
line-height: 1.6;
|
||||
@@ -8,60 +9,42 @@ html, body {
|
||||
color: #eee; /* Light text */
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
main-header {
|
||||
.site-header {
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
background: black; /* Dark header */
|
||||
background: black;
|
||||
position: sticky;
|
||||
z-index: 100;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
header {
|
||||
.site-header h1,
|
||||
.site-header p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.post-header {
|
||||
text-align: center;
|
||||
padding: 10px;
|
||||
background: black; /* Dark header */
|
||||
position: fixed;
|
||||
background: black;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
transition: transform 0.3s ease-in-out;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
.hide-header {
|
||||
transform: translateY(-100%);
|
||||
}
|
||||
|
||||
/* Main Content */
|
||||
main {
|
||||
max-width: 700px;
|
||||
margin: 40px auto;
|
||||
padding: 20px;
|
||||
background: #121212; /* Dark content background */
|
||||
background: #121212;
|
||||
flex: 1;
|
||||
width: calc(100% - 40px);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Buttons */
|
||||
button {
|
||||
font-size: 1.1rem;
|
||||
padding: 10px 20px;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background: #007BFF;
|
||||
color: white;
|
||||
cursor: pointer;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background: #0056b3;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
footer {
|
||||
text-align: center;
|
||||
padding: 20px;
|
||||
@@ -69,35 +52,19 @@ footer {
|
||||
background: #1e1e1e;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 38px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-top: 45px;
|
||||
}
|
||||
h3 {
|
||||
font-size: 22px;
|
||||
color: grey;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
h2 {
|
||||
font-size: 14px;
|
||||
color: grey;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
p {
|
||||
font-size: 22px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
a {
|
||||
color: #eee; /* Light text */
|
||||
color: #eee;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
@@ -106,56 +73,105 @@ blockquote {
|
||||
border-left: 3px solid #ccc;
|
||||
}
|
||||
|
||||
/* Home Page: Clickable Post Cards */
|
||||
.post-card {
|
||||
display: block;
|
||||
background: #1e1e1e;
|
||||
padding: 20px;
|
||||
border-radius: 8px;
|
||||
margin-bottom: 20px;
|
||||
cursor: pointer;
|
||||
transition: background 0.3s ease, transform 0.2s ease;
|
||||
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.4);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post-card p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.post-card h4 {
|
||||
padding-top: 0;
|
||||
.post-card h2,
|
||||
.post-card time,
|
||||
.post-metadata {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.post-card h2 {
|
||||
font-size: 38px;
|
||||
line-height: 1.2;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.post-card time,
|
||||
.post-metadata time {
|
||||
display: block;
|
||||
color: grey;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.post-card:hover {
|
||||
background: #292929;
|
||||
transform: translateY(-2px);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.post-card h2 {
|
||||
.post-metadata h1 {
|
||||
font-size: 38px;
|
||||
line-height: 1.2;
|
||||
margin: 0;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.post-card .post-date {
|
||||
font-size: 1em;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.post-card .post-excerpt {
|
||||
.post-excerpt {
|
||||
color: #ccc;
|
||||
margin: 0.25rem 0;
|
||||
}
|
||||
|
||||
.post > hr {
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
|
||||
/* Home button (circular image) */
|
||||
.home-button {
|
||||
width: 50px; /* Adjust size as needed */
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%; /* Makes it circular */
|
||||
object-fit: cover; /* Ensures image fills circle */
|
||||
border: 2px solid #ccc; /* Optional: adds a subtle border */
|
||||
border-radius: 50%;
|
||||
object-fit: cover;
|
||||
border: 2px solid #ccc;
|
||||
cursor: pointer;
|
||||
transition: transform 0.2s ease, opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.home-button:hover {
|
||||
transform: scale(1.1); /* Slight zoom effect */
|
||||
transform: scale(1.1);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.post pre {
|
||||
overflow-x: auto;
|
||||
padding: 1rem;
|
||||
background: #1e1e1e;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.post :not(pre) > code {
|
||||
padding: 0.1em 0.3em;
|
||||
background: #1e1e1e;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
html,
|
||||
body {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
main {
|
||||
margin: 20px auto;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.post-card h2,
|
||||
.post-metadata h1 {
|
||||
font-size: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user