webbed-site/static/css/style.css

644 lines
No EOL
10 KiB
CSS

:root {
--bgColor: #FFFAFC;
--fgColor: #6e5854;
--metaColor: #FFEFF1;
--headColor: #E05969;
--linkColor: #BC2F3F;
--hovColor: #e3868f;
--bgSelect: #3a2930;
--sidebarUrl: url("/img/peach.jpeg") repeat;
background-color: white;
background-size: 10px 10px;
background-image:
linear-gradient(to right, #FFEFF1 1px, transparent 1px),
linear-gradient(to bottom, #FFEFF1 1px, transparent 1px);
}
@media (prefers-color-scheme: dark) {
:root {
--bgColor: #000040;
--fgColor: #D8DAFF;
--metaColor: #141C36;
--headColor: #A0A8F4;
--linkColor: #FF72F7;
--hovColor: #6BB6E5;
--bgSelect: #6c7086;
--sidebarUrl: url("/img/stars.gif") repeat;
background-color: #030314;
background-size: 10px 10px;
background-image:
linear-gradient(to right, #1C1736 1px, transparent 1px),
linear-gradient(to bottom, #1C1736 1px, transparent 1px);
}
}
@font-face {
font-family: Hez;
src: url("/fonts/Hezaedrus.ttf")
}
@font-face {
font-family: hylie;
src: url("/fonts/Hylie.otf")
}
@font-face {
font-family: obliviate;
src: url("/fonts/Obliviate.otf")
}
@font-face {
font-family: firstly;
src: url("/fonts/Firstly.otf")
}
::-moz-selection {
color: var(--metaColor);
background: var(--bgSelect)
}
::selection {
color: var(--fgColor);
background: var(--bgSelect)
}
html {
scrollbar-color: var(--hovColor) var(--bgColor);
scrollbar-width: thin;
font-size: 1em;
font-style: normal;
line-height: 1.2;
margin: auto;
overflow-wrap: break-word;
background: var(--bgUrl);
color: var(--fgColor);
font-family: 'Hez', monospace;
}
p {
margin: 0.5vw 1.5vw 0.3vw 1.5vw;
}
a {
text-decoration: none;
color: var(--linkColor)
}
a:hover {
text-decoration: underline dashed 2px;
color: var(--hovColor)
}
img {
vertical-align: middle;
image-rendering: auto;
}
h1 {
color: var(--headColor);
font: 3.8em hylie, cursive;
line-height: .8em;
margin: 2vw 0.1vw 0.1vw;
padding: 0.1vw;
text-align: center;
}
h2 {
color: var(--headColor);
font: 4em firstly, cursive;
font-weight: bold;
line-height: .7em;
margin: 0.1vw 0.1vw 0.1vw 1.25vw;
padding: .1rem 0;
}
h3 {
color: var(--headColor);
font: 2.6em obliviate, cursive;
line-height: 2rem;
margin: 0.1vw 0.1vw 0.1vw 1.5vw;
padding: .4rem 0 .2rem;
}
h4 {
color: var(--headColor);
font: bold 2em firstly, cursive;
margin: 0.1vw 0.1vw 0.1vw 1.5vw;
}
ul {
list-style-image: var(--bullet);
font-size: 1em;
line-height: 1.3em;
margin: 0.1vw 0.1vw 0.1vw 1vw;
padding-left: 1.75vw;
}
ul p, ol p {
margin-left: 0
}
.fave ul {
list-style-image: url("/img/heart.png");
font-size: 1em;
line-height: 1.2em;
}
ol {
list-style: none;
font-size: 1em;
line-height: 1.2em;
margin: 0.1vw 0.1vw 0.1vw 1.5vw;
padding-left: 0;
}
pre {
border: 1px solid var(--bgSelect);
padding: 1rem;
margin: 0 2vw;
overflow-x: auto;
font-family: monospace;
font-size: 1.1em;
white-space: pre-wrap;
word-break: break-word;
}
.update ul {
font-size: .9em;
list-style-image: url("/img/pinkup.gif");
}
.smoltitle {
text-align: center;
margin: auto;
font: bold 3em firstly, cursive;
line-height: .8em;
color: var(--headColor);
}
.navtoc {
text-align: center;
}
.navtoc img {
padding: 0 .5em;
}
.navtoc p {
margin: 0;
}
p.bottomnav {
text-align: right;
margin: auto;
position:sticky;
bottom: 15px;
}
.center {
text-align: center;
}
.QandA ol {
list-style: decimal;
margin-left: 3em;
}
.QandA ul {
list-style: none;
margin: .6rem 0;
font-size: 1em;
}
.imgwall {
font-size: 0;
line-height: 0em;
image-rendering: pixelated;
text-align: center;
}
.imgwall img {
display: inline-block;
}
#blinkies img {
max-width: 150px;
}
#userbox img {
max-width: 239px;
vertical-align: middle;
margin: .1rem;
}
#emotes img {
max-width: 50px;
image-rendering: auto;
}
.kaomoji {
background-color: var(--metaColor);
border-radius: 1em;
padding: 0.3em;
display: inline-flex;
vertical-align: center;
margin: 0.3em;
}
.kaomoji:hover {
background-color: var(--hovColor)
}
.gallery img {
padding: .5rem .25rem;
}
address {
margin-left: 1.5vw;
font-size: 0.9em;
}
time {
font-size: 0.9em;
}
.tagsData {
font-size: 0.9em;
}
.tag {
list-style: none;
padding-left: 0;
line-height: 2.5rem;
text-align: center;
}
.tag ol {
justify-content: center;
}
.tag li {
display: inline-block;
font-family: firstly, cursive;
font-size: 1.5em;
padding: 0.125rem 0.25rem;
text-decoration: none;
}
dt {
font-weight:bold;
margin-left: 3em;
}
dt::before {
content: "・"
}
dd {
font-style:italic;
margin-left: 5em;
padding-bottom: .7em;
}
figure img {
border-radius: 1em;
max-width: 100%;
}
figure {
text-align: center;
align-content: center;
}
figcaption {
font-size: .9em;
font-style: italic;
line-height: 1em;
margin: auto;
padding: .5rem;
max-width: 550px;
}
hr {
border: dashed 1px;
color: var(--hovColor);
width: 93%;
margin: 1em auto;
}
details {
text-align: center;
margin: .2em 0;
}
summary {
text-align: center;
margin: 10px 0;
}
@media screen and (max-width: 700px) {
summary, details {
margin: .9rem 0;
}
}
.block {
display: block;
}
.dotbox {
max-width: 80%;
margin: 10px auto;
padding: .5rem 0;
border: var(--hovColor) dotted 2px;
border-radius: 2.5em;
background-color: var(--bgColor);
}
.two-column {
display: flex;
width: 100%;
flex: 1 1 auto;
flex-direction: column;
justify-content: space-around;
justify-items: center;
align-items: center;
}
.two-column > * {
padding: 0 1rem;
margin: .5em;
width: 95%;
}
.two-column h2 {
margin: 0.3vw 0.1vw 0.3vw 0;
}
.two-column p {
margin: 0;
}
.two-column img {
max-width: 95%;
vertical-align: middle;
}
@media (min-width:768px) {
.two-column, .two-column-dotted {
flex-direction: row;
max-width: 100%;
}
}
.stardew-parent {
display: flex;
flex-wrap: wrap;
justify-items: center;
}
.stardew {
flex: 50%;
}
.stardew img {
max-width: 90vw;
}
@media (max-width:600px) {
.stardew {
flex: 100%;
}
}
.four-column {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 10px;
padding: 10px;
text-align: center;
}
.four-column > * {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.four-column a {
position: relative;
}
.four-column img {
width: 100%;
height: auto;
display: block;
justify-content: space-evenly;
}
.four-column p {
margin: 0;
}
@media (max-width:768px) {
.four-column > * {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
}
.masonry-container {
column-count: 3; /* Number of columns */
column-gap: .1rem; /* Spacing between columns */
padding: .1rem;
}
.masonry-container > * {
break-inside: avoid; /* Prevents items from breaking inside columns */
margin-bottom: 10px; /* Space between items */
}
.masonry-item img {
width: auto;
height: auto; /* Maintains aspect ratio */
display: block;
}
/* Responsive adjustments */
@media (max-width: 1200px) {
.masonry-container {
column-count: 3; /* 3 columns on medium screens */
}
}
@media (max-width: 900px) {
.masonry-container {
column-count: 2; /* 2 columns on smaller screens */
}
}
@media (max-width: 640px) {
.masonry-container {
column-count: 1; /* 1 column on very small screens */
}
.masonry-container p {
padding: 0;
margin: 0;
}
.masonry-container img {
width: calc(100% - .2rem);
}
}
.light .last {
max-width: 70vw;
margin: auto;
content: url(https://lastfm-profile-readme.vercel.app/api/ameiro?color=FFF9FA&textColor=EF626E&isRounded=true)
}
.dark .last {
max-width: 70vw;
margin: auto;
content: url(https://lastfm-profile-readme.vercel.app/api/ameiro?color=000040&textColor=FFFFC8&isRounded=true)
}
#smolbox {
padding: 0.75rem;
background-color: var(--metaColor);
border: 1px dashed var(--hovColor);
border-radius: 1em;
max-width: fit-content;
text-align: left;
margin: auto
}
#smolbox p {
margin: 0;
}
#statuscafe-username {
margin-bottom: 0.5em
}
#statuscafe-content {
margin: 0 1em 0.25em
}
.themeButton {
cursor: pointer;
border: none;
font-size: 1.2em;
background-color: transparent;
padding: 0px;
}
.dark .themeButton.dark,
.themeButton.light {
display: none;
}
.dark .themeButton.light {
display: block;
}
.ph {
font-size: 1.25em;
color: var(--linkColor);
fill: var(--fgColor);
background-color: transparent;
}
profile-img img {
max-width: 200px;
text-align: center;
border-radius: 100%;
}
.left-sidebar {
margin: 0;
padding: 16px;
width: 200px;
background: var(--sidebarUrl);
position: fixed;
z-index: 1;
top: 0;
left: 0;
height: 100%;
overflow: auto;
align-content: center;
display: block;
}
.left-sidebar a {
color: var(--linkColor);
text-decoration: none;
text-align: center;
padding: .4rem .25rem;
}
.left-sidebar a.active {
color: var(--hovColor);
}
.left-sidebar a:hover:not(.active) {
color: var(--hovColor);
}
.page-content {
display:inline-block;
margin-left: 220px;
padding: 1px 20px;
height: 100%;
width: calc(100% - 270px);
}
@media screen and (max-width: 700px) {
.left-sidebar {
width: 100%;
height: fit-content;
position: relative;
justify-items: center;
text-align: center;
background-color: var(--metaColor);
padding: 0;
}
.left-sidebar a {
text-align: center;
float: none;
padding: .8rem;
}
.page-content {margin-left: 0; width: 94%;}
}
nav-icon {
display: flex;
flex-direction: row;
align-items: center;
justify-content:center;
}
nav-icon img {
padding: 8px;
}
@media screen and (max-width: 700px) {
nav-icon {
width: 100%;
height: auto;
position: relative;
}
}
.theme-switches{
text-align: center;
display: inline-flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}
.switch {
height: 1.5em;
width: 1.5em;
margin: 0.2em;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.switch:hover {
transform: scale(1.2);
}