2024-08-03 15:16:44 +02:00
|
|
|
:root {
|
|
|
|
--header-height: 64px;
|
|
|
|
--background-color: #374955;
|
|
|
|
--accent-color: #86b1cc;
|
|
|
|
--comment-column-width: 3px;
|
|
|
|
}
|
|
|
|
|
2024-07-16 20:56:05 +02:00
|
|
|
body {
|
|
|
|
font-family: "Poppins", sans-serif;
|
|
|
|
font-weight: 400;
|
|
|
|
font-style: normal;
|
2024-08-03 15:16:44 +02:00
|
|
|
background-color: var(--background-color);
|
2024-07-16 20:56:05 +02:00
|
|
|
}
|
|
|
|
|
2024-07-13 02:46:47 +02:00
|
|
|
@media only screen and (min-width: 800px) {
|
2024-07-11 21:41:34 +02:00
|
|
|
/* For bigger than phones */
|
2024-07-17 01:08:03 +02:00
|
|
|
#block-container {
|
2024-07-13 02:46:47 +02:00
|
|
|
max-width: 800px;
|
2024-07-11 22:19:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#loader {
|
2024-07-13 02:46:47 +02:00
|
|
|
max-width: 800px;
|
2024-07-11 21:41:34 +02:00
|
|
|
}
|
2024-07-11 21:13:17 +02:00
|
|
|
}
|
|
|
|
|
2024-07-11 23:53:45 +02:00
|
|
|
|
2024-07-17 01:08:03 +02:00
|
|
|
#block-container {
|
2024-07-11 23:53:45 +02:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: center;
|
|
|
|
margin-inline: auto;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2024-07-17 01:08:03 +02:00
|
|
|
.block {
|
2024-08-03 15:16:44 +02:00
|
|
|
background-color: white;
|
2024-07-11 21:41:34 +02:00
|
|
|
width: calc(100% - 16px);
|
2024-07-11 21:13:17 +02:00
|
|
|
margin: 8px;
|
2024-08-03 15:16:44 +02:00
|
|
|
border-radius: var(--header-height);
|
|
|
|
padding: calc(var(--header-height) / 2);
|
2024-07-11 21:13:17 +02:00
|
|
|
transition: all 200ms ease-in-out;
|
2024-08-03 15:16:44 +02:00
|
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
2024-07-11 21:13:17 +02:00
|
|
|
}
|
|
|
|
|
2024-08-03 15:16:44 +02:00
|
|
|
.block:not(.write-post) {
|
|
|
|
padding-bottom: var(--header-height);
|
|
|
|
}
|
|
|
|
|
|
|
|
.block a .username {
|
|
|
|
margin-top: 0;
|
|
|
|
margin-bottom: 0;
|
|
|
|
padding-left: calc(var(--header-height) / 4);
|
|
|
|
height: var(--header-height);
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.write-post {
|
|
|
|
cursor: pointer;
|
|
|
|
color: var(--background-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.write-post:hover {
|
|
|
|
background-color: var(--accent-color);
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
|
|
|
.write-post:active {
|
|
|
|
background-color: var(---background-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.write-post h2 {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
|
|
|
color: var(--background-color);
|
2024-07-11 21:13:17 +02:00
|
|
|
}
|
|
|
|
|
2024-08-03 13:54:00 +02:00
|
|
|
.pfp {
|
2024-08-03 15:16:44 +02:00
|
|
|
max-width: var(--header-height);
|
|
|
|
max-height: var(--header-height);
|
2024-08-03 13:54:00 +02:00
|
|
|
float: left;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
2024-08-03 15:16:44 +02:00
|
|
|
.post p {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post:not(.block) {
|
|
|
|
margin-top: calc(var(--header-height) / 4);
|
|
|
|
border-left: var(--comment-column-width) solid var(--accent-color);
|
|
|
|
padding-left: calc(var(--header-height) / 2 - var(--comment-column-width));
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2024-07-11 22:19:51 +02:00
|
|
|
.post-actions {
|
2024-07-11 21:13:17 +02:00
|
|
|
margin: 8px;
|
|
|
|
padding: 16px 0;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
#loader {
|
|
|
|
display: flex;
|
2024-07-11 22:19:51 +02:00
|
|
|
justify-content: center;
|
|
|
|
margin-inline: auto;
|
2024-07-11 21:13:17 +02:00
|
|
|
}
|
|
|
|
|
2024-07-11 22:19:51 +02:00
|
|
|
.skeleton-post {
|
2024-07-11 21:13:17 +02:00
|
|
|
height: 55vh;
|
|
|
|
position: relative;
|
|
|
|
}
|