2023-02-24 16:47:41 +10:30
|
|
|
/* Global variables. */
|
|
|
|
:root {
|
|
|
|
/* Set sans-serif & mono fonts */
|
|
|
|
--sans-font: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir,
|
|
|
|
"Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica,
|
|
|
|
"Helvetica Neue", sans-serif;
|
|
|
|
--mono-font: Consolas, Menlo, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
|
2023-03-23 12:39:28 +10:30
|
|
|
|
2023-02-28 18:39:40 +10:30
|
|
|
--bg: #6a826a;
|
|
|
|
--container: #fffbef;
|
|
|
|
--accent-bg: #b99b6c;
|
|
|
|
--text: #6a826a;
|
|
|
|
--header-text: #b99b6c;
|
|
|
|
/* --text-light: #585858; */
|
|
|
|
--border: #6a826a;
|
|
|
|
--accent: #aa5757;
|
2023-02-28 21:25:22 +10:30
|
|
|
--content-column-width: 750px;
|
|
|
|
/* this width was 200 but i stretched it out to fit the gif */
|
|
|
|
--sidebar-column-width: 287px;
|
|
|
|
--line-padding: 8px;
|
2023-02-24 16:47:41 +10:30
|
|
|
}
|
|
|
|
|
|
|
|
html {
|
|
|
|
/* Set the font globally */
|
|
|
|
font-family: var(--sans-font);
|
|
|
|
scroll-behavior: smooth;
|
|
|
|
}
|
|
|
|
|
2023-02-28 18:39:40 +10:30
|
|
|
|
|
|
|
/* Format headers */
|
|
|
|
|
|
|
|
h1 {
|
2023-02-28 21:25:22 +10:30
|
|
|
font-size: 1.8rem;
|
|
|
|
margin-top: 15px;
|
|
|
|
margin-bottom: 15px;
|
2023-02-28 18:39:40 +10:30
|
|
|
color: var(--header-text);
|
|
|
|
}
|
|
|
|
|
|
|
|
h2 {
|
2023-02-28 21:25:22 +10:30
|
|
|
font-size: 1.5rem;
|
|
|
|
margin-top: var(--line-padding);
|
|
|
|
margin-bottom: var(--line-padding);
|
2023-02-28 18:39:40 +10:30
|
|
|
color: var(--header-text);
|
|
|
|
}
|
|
|
|
|
|
|
|
h3 {
|
2023-02-28 21:25:22 +10:30
|
|
|
font-size: 1.2rem;
|
2023-02-28 18:39:40 +10:30
|
|
|
color: var(--header-text);
|
2023-03-28 15:37:11 +10:30
|
|
|
margin-top: var(--line-padding);
|
|
|
|
margin-bottom: var(--line-padding);
|
2023-02-28 18:39:40 +10:30
|
|
|
}
|
|
|
|
|
2023-04-26 12:22:17 +09:30
|
|
|
h4 {
|
|
|
|
margin-top: var(--line-padding);
|
|
|
|
margin-bottom: var(--line-padding);
|
|
|
|
}
|
|
|
|
|
2023-02-28 18:39:40 +10:30
|
|
|
/* Format links */
|
|
|
|
a,
|
|
|
|
a:visited {
|
|
|
|
color: var(--accent);
|
2023-02-28 21:25:22 +10:30
|
|
|
display: inline-block;
|
|
|
|
transition: transform .07s ease-out;
|
2023-02-28 18:39:40 +10:30
|
|
|
}
|
|
|
|
|
|
|
|
a:hover {
|
|
|
|
text-decoration: none;
|
2023-03-23 12:39:28 +10:30
|
|
|
transform: translate(0px, -2px);
|
2023-02-28 21:25:22 +10:30
|
|
|
}
|
|
|
|
|
2023-02-28 18:39:40 +10:30
|
|
|
hr {
|
2023-03-01 00:17:17 +10:30
|
|
|
border-top: 2px solid var(--border);
|
2023-02-28 18:39:40 +10:30
|
|
|
}
|
|
|
|
|
2023-02-24 16:47:41 +10:30
|
|
|
body {
|
|
|
|
color: var(--text);
|
|
|
|
background: var(--bg);
|
2023-02-28 18:39:40 +10:30
|
|
|
line-height: 1.3;
|
2023-02-24 16:47:41 +10:30
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2023-02-28 18:39:40 +10:30
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 20px;
|
2023-02-28 21:25:22 +10:30
|
|
|
min-height: 100vh;
|
2023-02-24 16:47:41 +10:30
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
2023-02-28 21:25:22 +10:30
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: space-between;
|
2023-02-28 18:39:40 +10:30
|
|
|
background: var(--container);
|
2023-02-28 21:25:22 +10:30
|
|
|
width: var(--content-column-width);
|
2023-02-28 18:39:40 +10:30
|
|
|
padding: 15px;
|
2023-02-28 21:25:22 +10:30
|
|
|
min-height: max-content;
|
2023-02-28 18:39:40 +10:30
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
aside {
|
|
|
|
position: sticky;
|
|
|
|
height: min-content;
|
|
|
|
top: 20px;
|
2023-02-28 21:25:22 +10:30
|
|
|
width: var(--sidebar-column-width);
|
2023-02-28 18:39:40 +10:30
|
|
|
margin-top: 30px;
|
2023-02-28 21:25:22 +10:30
|
|
|
display: flex;
|
2023-02-28 18:39:40 +10:30
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
/* border: 2px solid var(--border); */
|
|
|
|
}
|
|
|
|
|
|
|
|
.profile-img {
|
|
|
|
width: 100px;
|
2023-03-02 17:03:13 +10:30
|
|
|
height: 100px;
|
2023-02-28 21:25:22 +10:30
|
|
|
border-radius: 60px;
|
|
|
|
border: 5px solid var(--border);
|
2023-03-05 14:13:25 +10:30
|
|
|
background-color: var(--border);
|
2023-02-28 18:39:40 +10:30
|
|
|
/* top: -70px; */
|
|
|
|
z-index: 1;
|
|
|
|
position: relative;
|
2023-03-05 14:13:25 +10:30
|
|
|
color: var(--container)
|
2023-02-28 18:39:40 +10:30
|
|
|
}
|
|
|
|
|
2023-02-28 21:25:22 +10:30
|
|
|
nav {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
}
|
|
|
|
|
2023-02-28 18:39:40 +10:30
|
|
|
.sidebar-contents {
|
|
|
|
padding: 65px 15px 15px 15px;
|
|
|
|
border-radius: 15px;
|
|
|
|
background: var(--container);
|
|
|
|
box-sizing: border-box;
|
|
|
|
height: min-content;
|
|
|
|
width: 100%;
|
|
|
|
top: -50px;
|
|
|
|
position: relative;
|
2023-03-01 00:27:04 +10:30
|
|
|
z-index: -1;
|
2023-02-24 16:47:41 +10:30
|
|
|
}
|
|
|
|
|
2023-05-04 11:33:57 +09:30
|
|
|
.link-tiles-grid {
|
2023-03-04 02:32:00 +10:30
|
|
|
width: 100%;
|
2023-03-29 13:02:29 +10:30
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr 1fr;
|
2023-03-04 02:32:00 +10:30
|
|
|
gap: 15px;
|
2023-03-29 14:42:07 +10:30
|
|
|
margin-bottom: var(--line-padding);
|
2023-03-04 02:32:00 +10:30
|
|
|
}
|
|
|
|
|
2023-05-04 11:33:57 +09:30
|
|
|
.link-tiles-grid>a>img {
|
2023-03-05 14:13:25 +10:30
|
|
|
background-color: var(--border);
|
2023-03-29 13:02:29 +10:30
|
|
|
width: 100%;
|
2023-05-04 11:33:57 +09:30
|
|
|
aspect-ratio: 1/1;
|
2023-03-05 14:13:25 +10:30
|
|
|
color: var(--container)
|
|
|
|
}
|
|
|
|
|
2023-02-28 18:39:40 +10:30
|
|
|
@media all and (max-width: 1100px) {
|
|
|
|
body {
|
|
|
|
flex-direction: column-reverse;
|
|
|
|
max-width: 100%;
|
2023-02-28 21:25:22 +10:30
|
|
|
justify-content: start;
|
2023-02-28 18:39:40 +10:30
|
|
|
/* this is a pretty bad solution */
|
|
|
|
margin: -20px 20px 20px;
|
2023-02-28 21:25:22 +10:30
|
|
|
gap: 0;
|
|
|
|
align-items: center;
|
2023-02-28 18:39:40 +10:30
|
|
|
}
|
|
|
|
|
|
|
|
main {
|
|
|
|
max-width: 100%;
|
2023-02-28 21:25:22 +10:30
|
|
|
flex-grow: 1;
|
|
|
|
margin-bottom: -20px;
|
2023-02-28 18:39:40 +10:30
|
|
|
}
|
|
|
|
|
|
|
|
aside {
|
|
|
|
position: relative;
|
2023-02-28 21:25:22 +10:30
|
|
|
width: 100%;
|
|
|
|
max-width: var(--content-column-width);
|
|
|
|
margin-top: 0;
|
|
|
|
padding-top: 5px;
|
|
|
|
}
|
2023-03-23 12:39:28 +10:30
|
|
|
|
2023-02-28 21:25:22 +10:30
|
|
|
.sidebar-contents {
|
|
|
|
border-radius: 0;
|
|
|
|
width: 100%;
|
2023-03-01 00:48:09 +10:30
|
|
|
z-index: 0;
|
2023-02-28 21:25:22 +10:30
|
|
|
}
|
|
|
|
|
2023-03-23 12:39:28 +10:30
|
|
|
.sidebar-contents>img {
|
2023-02-28 21:25:22 +10:30
|
|
|
display: none;
|
2023-02-28 18:39:40 +10:30
|
|
|
}
|
|
|
|
|
2023-02-28 21:25:22 +10:30
|
|
|
nav {
|
2023-02-28 18:39:40 +10:30
|
|
|
flex-direction: row;
|
2023-02-28 21:25:22 +10:30
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 0rem 1rem;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2023-02-28 18:39:40 +10:30
|
|
|
|
|
|
|
.sidebar-contents {
|
|
|
|
/* padding: 15px; */
|
|
|
|
margin: 0 0 -25px 0;
|
|
|
|
/* width: min-content; */
|
|
|
|
}
|
|
|
|
|
2023-03-04 02:09:08 +10:30
|
|
|
aside>a:hover {
|
2023-02-28 21:25:22 +10:30
|
|
|
transform: none;
|
2023-02-28 21:43:49 +10:30
|
|
|
}
|
2023-03-04 02:32:00 +10:30
|
|
|
|
2023-03-29 13:02:29 +10:30
|
|
|
/* switch to two columns when it gets really small */
|
2023-03-23 12:39:28 +10:30
|
|
|
@media all and (max-width: 545px) {
|
2023-05-04 11:33:57 +09:30
|
|
|
.link-tiles-grid {
|
2023-03-29 13:02:29 +10:30
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 1fr 1fr;
|
2023-03-23 12:39:28 +10:30
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.page-content {
|
|
|
|
/* TODO fix this magic number */
|
|
|
|
min-height: calc(100vh - 95px);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.date-tag {
|
|
|
|
font-size: smaller;
|
2023-02-28 18:39:40 +10:30
|
|
|
}
|
|
|
|
|
|
|
|
article>p {
|
|
|
|
margin-top: 0;
|
2023-02-28 23:10:44 +10:30
|
|
|
}
|
|
|
|
|
2023-03-01 02:42:31 +10:30
|
|
|
details {
|
|
|
|
margin-bottom: 16px;
|
|
|
|
}
|
|
|
|
|
2023-03-01 02:28:25 +10:30
|
|
|
.blog-post img {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2023-03-23 12:39:28 +10:30
|
|
|
.pages-article>p {
|
2023-02-28 23:10:44 +10:30
|
|
|
margin-top: 0;
|
2023-02-28 18:39:40 +10:30
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2023-02-28 21:25:22 +10:30
|
|
|
article>iframe {
|
|
|
|
padding-top: var(--line-padding);
|
|
|
|
padding-bottom: var(--line-padding);
|
|
|
|
}
|
|
|
|
|
|
|
|
header>h1 {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
|
|
|
|
2023-02-28 23:10:44 +10:30
|
|
|
footer {
|
|
|
|
margin-top: 25px;
|
|
|
|
}
|
|
|
|
|
2023-03-03 21:28:59 +10:30
|
|
|
|
2023-03-04 02:09:08 +10:30
|
|
|
.nav-buttons {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
2023-03-23 12:39:28 +10:30
|
|
|
}
|
|
|
|
|
|
|
|
.nav-buttons-bottom {
|
|
|
|
justify-self: flex-end;
|
|
|
|
}
|
|
|
|
|
|
|
|
.bouncy {
|
|
|
|
animation: bounce 1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes bounce {
|
|
|
|
0%, 100% {
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
50% {
|
|
|
|
transform: translateY(-5px);
|
|
|
|
}
|
|
|
|
75% {
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: translateY(0);
|
|
|
|
animation-delay: 3s; /* add a 3 second delay before restarting the animation */
|
|
|
|
}
|
2023-03-04 02:09:08 +10:30
|
|
|
}
|
|
|
|
|
2023-03-28 15:37:11 +10:30
|
|
|
.updates-field {
|
|
|
|
border: 2px solid var(--bg);
|
|
|
|
padding: 5px;
|
|
|
|
margin-top: var(--line-padding);
|
|
|
|
margin-bottom: var(--line-padding);
|
|
|
|
}
|
|
|
|
|
|
|
|
.updates-field p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2023-03-29 12:47:09 +10:30
|
|
|
.gallery {
|
|
|
|
width: 100%;
|
|
|
|
display: grid;
|
2023-04-13 18:50:19 +09:30
|
|
|
grid-template-columns: 1fr 1fr;
|
2023-03-29 12:47:09 +10:30
|
|
|
gap: var(--line-padding);
|
|
|
|
margin-top: 15px
|
|
|
|
}
|
|
|
|
|
|
|
|
.gallery>a {
|
|
|
|
line-height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gallery>a>img {
|
|
|
|
box-sizing:border-box;
|
|
|
|
background-color: var(--accent-bg);
|
|
|
|
border: 2px solid var(--border);
|
|
|
|
}
|
|
|
|
|
2023-04-13 13:56:21 +09:30
|
|
|
.two-columns {
|
|
|
|
width: 100%;
|
|
|
|
display: grid;
|
2023-04-13 18:50:19 +09:30
|
|
|
grid-template-columns: 1fr 1fr;
|
2023-04-13 13:56:21 +09:30
|
|
|
gap: var(--line-padding);
|
|
|
|
margin-top: 15px;
|
|
|
|
margin-bottom: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.two-columns *{
|
|
|
|
width: 100%;
|
|
|
|
aspect-ratio: 1/1;
|
|
|
|
object-fit: cover;
|
|
|
|
}
|
|
|
|
|
2023-05-03 15:31:01 +09:30
|
|
|
.infinite-nightmare img {
|
|
|
|
max-width: 360px;
|
|
|
|
}
|
|
|
|
|
2023-03-29 13:06:09 +10:30
|
|
|
/* simple lightbox pulled from https://codepen.io/nebo/pen/ONXejO */
|
|
|
|
|
2023-03-29 12:47:09 +10:30
|
|
|
.trans
|
|
|
|
{
|
|
|
|
transition: all 0.25s ease;
|
|
|
|
}
|
|
|
|
.lightbox
|
|
|
|
{
|
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
text-align: center;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
background-color: rgba(0,0,0,0.75);
|
|
|
|
z-index: 999;
|
|
|
|
opacity: 0;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
.lightbox img
|
|
|
|
{
|
|
|
|
max-width: 90%;
|
|
|
|
max-height: 80%;
|
|
|
|
position: relative;
|
|
|
|
top: -100%;
|
|
|
|
/* Transition */
|
|
|
|
transition: all 0.5 ease;
|
|
|
|
}
|
|
|
|
.lightbox:target
|
|
|
|
{
|
|
|
|
outline: none;
|
|
|
|
top: 0;
|
|
|
|
opacity: 1;
|
|
|
|
pointer-events: auto;
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
}
|
|
|
|
.lightbox:target img
|
|
|
|
{
|
|
|
|
top: 0;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
2023-03-29 13:06:09 +10:30
|
|
|
}
|