singularity/styles.css

276 lines
5.4 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-04 16:18:12 +02:00
/* use filter: instead of color: to color SVGs
* https://isotropic.co/tool/hex-color-to-css-filter/ */
--blue-gray-filter: invert(27%) sepia(20%) saturate(575%) hue-rotate(161deg) brightness(93%) contrast(93%);
--sky-blue-filter: invert(73%) sepia(16%) saturate(657%) hue-rotate(160deg) brightness(90%) contrast(91%);
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 h1 {
padding-top: 35vh;
display: flex;
justify-content: center;
}
#start-splash input {
margin: 2em auto;
border: none;
color: var(--sky-blue);
border-radius: 16px;
font-size: 1.5em;
padding: 4px 8px;
}
#advance-button {
width: 10%;
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 {
max-width: 400px;
min-width: 40%;
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: calc(3 * var(--header-height) / 2);
2024-08-03 15:16:44 +02:00
}
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;
}
2024-08-04 16:18:12 +02:00
.post-footer {
position: relative;
}
.icon {
color: var(--sky-blue);
height: 32px;
width: 100px;
position: absolute;
top: 16px;
}
.icon-img {
filter: var(--blue-gray-filter);
height: 32px;
width: 32px;
display: inline-block;
}
.icon-img.active {
filter: var(--sky-blue-filter)
}
.icon-count {
color: var(--blue-gray);
height: 100%;
display: flex;
align-items: center;
position: absolute;
top: 0;
left: 32px;
margin-left: 4px;
}
2024-08-03 15:16:44 +02:00
.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 h1 {
2024-08-03 15:16:44 +02:00
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));
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
}
.loader-icon {
width: 50px;
aspect-ratio: 1;
border-radius: 50%;
padding: 3px;
background:
radial-gradient(farthest-side,var(--blue-gray) 95%,#0000) 50% 0/12px 12px no-repeat,
radial-gradient(farthest-side,#0000 calc(100% - 5px),var(--blue-gray) calc(100% - 4px)) content-box;
animation: l6 2s infinite ;
}
@keyframes l6 {to{transform: rotate(1turn)}}
.post .loader-icon {
background:
radial-gradient(farthest-side,var(--blue-gray) 95%,#0000) 50% 0/12px 12px no-repeat,
radial-gradient(farthest-side,#0000 calc(100% - 5px),var(--blue-gray) calc(100% - 4px)) content-box;
margin: auto;
margin-top: calc(3 * var(--header-height) / 2);
}
2024-07-11 22:19:51 +02:00
.skeleton-post {
2024-07-11 21:13:17 +02:00
height: 55vh;
position: relative;
}