270 lines
5.3 KiB
CSS
270 lines
5.3 KiB
CSS
@font-face {
|
|
font-family: "heonian";
|
|
src: url('HeonianAlone.otf');
|
|
}
|
|
|
|
:root {
|
|
--background-color: #fff;
|
|
--text-color: #000;
|
|
--notes-color: rgb(255, 235, 181);
|
|
--spacer-color: rgba(0, 0, 0, 0.4);
|
|
--spacer-color-2: rgba(0, 0, 0, 0.2);
|
|
--left-color: rgb(230, 229, 235);
|
|
--right-color: #61ce61;
|
|
--font-normal: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
--font-heonian: "heonian", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
--popup-bg: rgba(255,255,255,0.6);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--background-color: #000;
|
|
--text-color: #fff;
|
|
--notes-color: rgb(255, 235, 181);
|
|
--spacer-color: rgba(255, 255, 255, 0.4);
|
|
--spacer-color-2: rgba(255, 255, 255, 0.2);
|
|
--left-color: rgb(38,37,40);
|
|
--right-color: #61ce61;
|
|
--popup-bg: rgba(30,30,30,0.6);
|
|
}
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font-normal);
|
|
background-color: var(--background-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
main {
|
|
max-width: 600px;
|
|
margin: auto;
|
|
}
|
|
|
|
.convo-container {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 16px;
|
|
}
|
|
|
|
.right {
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.convo {
|
|
width: 400px;
|
|
border-radius: 16px;
|
|
padding: 8px;
|
|
padding-top: 0px;
|
|
padding-bottom: 10px;
|
|
/* padding bottom isnt actually required, but due to how
|
|
browsers render fonts, it makes things look better... */
|
|
background-color: var(--left-color);
|
|
box-shadow: 0px 0px 6px var(--spacer-color);
|
|
}
|
|
|
|
.right .convo {
|
|
background-color: var(--right-color);
|
|
color: white;
|
|
}
|
|
|
|
.convo p {
|
|
margin: 0;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.convo p:first-child {
|
|
margin-top: 8px;
|
|
/* wow! */
|
|
}
|
|
|
|
.convo-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.convo-header img {
|
|
border-radius: 42069px;
|
|
width: 48px;
|
|
margin-right: 8px;
|
|
margin-left: -8px;
|
|
border-radius: 16px 0px 16px 0px;
|
|
}
|
|
|
|
.convo-date {
|
|
font-size: 0.75rem;
|
|
color: var(--spacer-color);
|
|
flex-grow: 1;
|
|
text-align: right;
|
|
}
|
|
|
|
.convo-heonian {
|
|
font-family: var(--font-heonian);
|
|
word-break: break-all;
|
|
}
|
|
|
|
.notes {
|
|
width: 300px;
|
|
margin: 8px;
|
|
border-top: 1px solid var(--notes-color);
|
|
border-bottom: 1px solid var(--notes-color);
|
|
text-align: center;
|
|
}
|
|
|
|
.spacer {
|
|
width: calc(100% - 16px);
|
|
height: 1px;
|
|
margin-top: 8px;
|
|
margin-bottom: 8px;
|
|
margin: auto;
|
|
background-color: var(--spacer-color);
|
|
}
|
|
|
|
.words {
|
|
text-align: center;
|
|
}
|
|
|
|
.words table {
|
|
margin: auto;
|
|
border-collapse: collapse;
|
|
text-align: left;
|
|
}
|
|
|
|
.words table td,
|
|
.words table th {
|
|
padding: 8px;
|
|
border-right: 1px solid var(--spacer-color-2);
|
|
}
|
|
|
|
.words table td:last-child,
|
|
.words table th:last-child {
|
|
border-right: none;
|
|
}
|
|
|
|
.words table th {
|
|
border-top: 1px solid var(--spacer-color);
|
|
border-bottom: 1px solid var(--spacer-color);
|
|
}
|
|
|
|
.words table td:first-of-type {
|
|
font-family: var(--font-heonian);
|
|
}
|
|
|
|
.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
#popup-container {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
/* backdrop-filter: blur(20px); */
|
|
/* -webkit-backdrop-filter: blur(20px); */
|
|
/* above is completely unnecessary, but looks pretty */
|
|
transition: opacity 0.3s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#popup {
|
|
width: 300px;
|
|
background-color: var(--left-color);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
backdrop-filter: blur(20px);
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
|
|
cursor: default;
|
|
}
|
|
|
|
#smol-popup {
|
|
width: 200px;
|
|
background-color: var(--left-color);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
backdrop-filter: blur(20px);
|
|
border-radius: 8px;
|
|
padding: 8px;
|
|
box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
transition: opacity 0.3s;
|
|
text-align: center;
|
|
/* padding-top: 0px; account for Funny */
|
|
}
|
|
|
|
@supports (backdrop-filter: blur(10px)) or (--webkit-backdrop-filter: blur(10px)) {
|
|
#popup, #smol-popup {
|
|
background-color: var(--popup-bg);
|
|
}
|
|
}
|
|
|
|
#popup h1, #smol-popup h1 {
|
|
text-align: center;
|
|
margin: 0;
|
|
}
|
|
|
|
#smol-popup p {
|
|
margin: 0;
|
|
}
|
|
|
|
#smol-popup p:last-child {
|
|
font-size: 0.75rem;
|
|
color: var(--spacer-color);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
#popup-heo, #smol-heo {
|
|
font-family: var(--font-heonian);
|
|
text-align: center;
|
|
margin: 4px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
#popup-middle, #popup-meaning {
|
|
padding: 8px;
|
|
margin: 0;
|
|
}
|
|
|
|
#popup-quirks {
|
|
display: flex;
|
|
flex-flow: row wrap;
|
|
justify-content: space-around;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
#popup-quirks * {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.badge {
|
|
padding: 4px;
|
|
border-radius: 8px;
|
|
color: white;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.button {
|
|
text-decoration: underline;
|
|
text-align: center;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
font-preload {
|
|
font-family: var(--font-heonian);
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
} |