singularity/styles.css

217 lines
3.9 KiB
CSS

:root {
--header-height: 64px;
--blue-gray: #374955;
--sky-blue: #86b1cc;
--comment-column-width: 3px;
}
body {
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
font-weight: 400;
font-style: normal;
background-color: var(--sky-blue);
}
@media only screen and (min-width: 800px) {
/* For bigger than phones */
#block-container {
max-width: 800px;
}
#loader {
max-width: 800px;
}
}
#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);
}
#block-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
margin-inline: auto;
width: 100%;
}
.block {
background-color: white;
width: calc(100% - 16px);
margin: 8px;
border-radius: var(--header-height);
padding: calc(var(--header-height) / 2);
transition: all 200ms ease-in-out;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.block:not(.write-post) {
padding-bottom: var(--header-height);
}
.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;
cursor: pointer;
transition: all 200ms ease-in-out;
}
.reply-button:hover {
background-color: var(--blue-gray);
color: white;
}
.reply-button:active {
background-color: white;
color: var(--blue-gray);
}
.post-header {
position: relative;
}
.post-header .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(--blue-gray);
}
.write-post:hover {
background-color: var(--sky-blue);
color: white;
}
.write-post:active {
background-color: var(---blue-gray);
}
.write-post h2 {
display: flex;
justify-content: center;
align-items: center;
}
a {
text-decoration: none;
color: var(--blue-gray);
}
.pfp {
max-width: var(--header-height);
max-height: var(--header-height);
float: left;
border-radius: 50%;
}
.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);
padding-left: calc(var(--header-height) / 2 - var(--comment-column-width));
}
.post-actions {
margin: 8px;
padding: 16px 0;
display: flex;
justify-content: space-between;
align-items: center;
}
#loader {
display: flex;
justify-content: center;
margin-inline: auto;
}
.skeleton-post {
height: 55vh;
position: relative;
}