singularity/styles.css

217 lines
3.9 KiB
CSS
Raw Normal View History

2024-08-03 15:16:44 +02:00
:root {
--header-height: 64px;
--blue-gray: #374955;
--sky-blue: #86b1cc;
2024-08-03 15:16:44 +02:00
--comment-column-width: 3px;
}
2024-07-16 20:56:05 +02:00
body {
margin: 0;
padding: 0;
2024-07-16 20:56:05 +02:00
font-family: "Poppins", sans-serif;
font-weight: 400;
font-style: normal;
background-color: var(--sky-blue);
2024-07-16 20:56:05 +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 {
max-width: 800px;
2024-07-11 22:19:51 +02:00
}
#loader {
max-width: 800px;
2024-07-11 21:41:34 +02:00
}
2024-07-11 21:13:17 +02:00
}
#start-splash {
position: fixed;
width: 100%;
height: 100%;
padding: 0;
margin: 0;
background-color: white;
z-index: 1;
}
.center {
display: block;
margin: auto;
padding: auto;
text-align: center;
}
#start-splash img {
max-width: 40vw;
margin-top: 10vh;
}
#start-splash input {
margin: 2em auto;
border: none;
background-color: var(--sky-blue);
color: white;
border-radius: 16px;
font-size: 1.5em;
padding: 4px 8px;
}
#advance-button {
width: 20%;
margin: 2em auto;
color: white;
background-color: var(--sky-blue);
text-align: center;
visibility: hidden;
padding: 4px 8px;
border-radius: 16px;
}
#interests-text {
color: var(--blue-gray);
}
#interest-selection {
width: 80%;
padding: 8px;
display: flex;
flex-wrap: wrap;
justify-content: center;
}
#interest-selection li {
display: inline;
margin: .5em;
}
#interest-selection li a {
padding: 4px 8px;
border-radius: 16px;
color: white;
background-color: var(--sky-blue);
transition: all 200ms ease-in-out;
}
#interest-selection li a:hover {
background-color: var(--blue-gray);
}
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);
}
2024-08-04 16:02:19 +02:00
.reply-button {
display: inline-block;
border-radius: calc(var(--header-height) / 2);
margin-top: calc(var(--header-height) / 8);
padding: calc(var(--header-height) / 8) calc(var(--header-height) / 4);
background-color: var(--sky-blue);
color: white;
2024-08-04 16:02:19 +02:00
cursor: pointer;
transition: all 200ms ease-in-out;
}
.reply-button:hover {
background-color: var(--blue-gray);
2024-08-04 16:02:19 +02:00
color: white;
}
.reply-button:active {
background-color: white;
color: var(--blue-gray);
2024-08-04 16:02:19 +02:00
}
.post-header {
position: relative;
}
.post-header .username {
2024-08-03 15:16:44 +02:00
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(--blue-gray);
2024-08-03 15:16:44 +02:00
}
.write-post:hover {
background-color: var(--sky-blue);
2024-08-03 15:16:44 +02:00
color: white;
}
.write-post:active {
background-color: var(---blue-gray);
2024-08-03 15:16:44 +02:00
}
.write-post h2 {
display: flex;
justify-content: center;
align-items: center;
}
a {
text-decoration: none;
color: var(--blue-gray);
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(--sky-blue);
2024-08-03 15:16:44 +02:00
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;
}