2022-10-26 21:35:23 +01:00
|
|
|
/* COLOR VARS */
|
|
|
|
:root {
|
|
|
|
--main-bg-color: lightslategrey;
|
|
|
|
--accent-color: darkslategrey;
|
2022-10-28 19:54:50 +01:00
|
|
|
--overlay-color: #2f4f4fb8;
|
2022-10-26 21:35:23 +01:00
|
|
|
--main-text-color: azure;
|
2022-10-26 21:40:37 +01:00
|
|
|
--link-color: cyan;
|
2022-10-26 21:35:23 +01:00
|
|
|
}
|
2022-10-20 13:37:00 +01:00
|
|
|
/* FONTS */
|
2022-10-20 21:48:25 +01:00
|
|
|
@font-face {
|
|
|
|
font-family: 'indie-flower';
|
|
|
|
src: url('/style/fonts/indie-flower/indie-flower.woff2') format('woff2'),
|
|
|
|
url('/style/fonts/indie-flower/indie-flower.woff') format('woff'),
|
|
|
|
url('/style/fonts/indie-flower/indie-flower.ttf') format('truetype');
|
|
|
|
font-weight: normal;
|
|
|
|
font-style: normal;
|
|
|
|
}
|
2022-10-20 13:37:00 +01:00
|
|
|
/* HTML & BODY */
|
|
|
|
html {height: 100%;}
|
2022-10-18 11:45:25 +01:00
|
|
|
body {
|
2022-10-19 14:11:11 +01:00
|
|
|
width: 100%;
|
|
|
|
margin: auto;
|
2022-10-26 21:35:23 +01:00
|
|
|
background-color: var(--main-bg-color);
|
2022-10-18 11:45:25 +01:00
|
|
|
}
|
2022-10-20 13:37:00 +01:00
|
|
|
/* PAGE HEADER */
|
2022-10-20 21:29:18 +01:00
|
|
|
.header_image {
|
2022-10-19 13:40:09 +01:00
|
|
|
background-repeat: no-repeat;
|
2022-10-19 20:12:07 +01:00
|
|
|
background-position: top;
|
|
|
|
background-size: cover;
|
2022-10-20 22:43:42 +01:00
|
|
|
height: 273px;
|
2022-10-19 14:11:11 +01:00
|
|
|
min-width: 100%;
|
|
|
|
max-width: 100%;
|
|
|
|
margin: auto;
|
2022-10-19 20:12:07 +01:00
|
|
|
margin-top: 40px;
|
2022-10-19 14:11:11 +01:00
|
|
|
position: sticky;
|
2022-10-20 20:53:36 +01:00
|
|
|
top: -145px;
|
2022-10-18 11:45:25 +01:00
|
|
|
}
|
2022-10-26 21:35:23 +01:00
|
|
|
#header_index{background-color: #a04911} /* Try using image-set() here to offer different formats */
|
|
|
|
@media(min-width: 50px){#header_index{background-image:url("/images/headers/index/300.webp")}}
|
|
|
|
@media(min-width: 301px){#header_index{background-image:url("/images/headers/index/500.webp")}}
|
|
|
|
@media(min-width: 501px){#header_index{background-image:url("/images/headers/index/800.webp")}}
|
2022-10-20 22:18:41 +01:00
|
|
|
@media(min-width: 801px){#header_index{background-image:url("/images/headers/index/1024.webp")}}
|
|
|
|
@media(min-width:1025px){#header_index{background-image:url("/images/headers/index/1920.webp")}}
|
|
|
|
@media(min-width:1921px){#header_index{background-image:url("/images/headers/index/2800.webp")}}
|
|
|
|
@media(min-width:2801px){#header_index{background-image:url("/images/headers/index/4096.webp")}}
|
2022-10-26 21:35:23 +01:00
|
|
|
#header_face {
|
2022-10-21 20:22:24 +01:00
|
|
|
display: flex;
|
|
|
|
position: absolute;
|
2022-10-26 21:35:23 +01:00
|
|
|
top: -184px;
|
2022-10-21 20:22:24 +01:00
|
|
|
width: 100%;
|
2022-10-26 21:35:23 +01:00
|
|
|
height: 185px;
|
2022-10-21 20:22:24 +01:00
|
|
|
text-align: center;
|
|
|
|
}
|
2022-10-26 21:35:23 +01:00
|
|
|
#header_face img {
|
2022-10-21 20:22:24 +01:00
|
|
|
margin: auto;
|
|
|
|
border-radius: 40px;
|
2022-10-26 21:35:23 +01:00
|
|
|
border-style: solid;
|
|
|
|
border-color: var(--accent-color);
|
|
|
|
border-width: 3px;
|
|
|
|
max-height: 150px;
|
|
|
|
height: 30vw;
|
|
|
|
}
|
|
|
|
@media(min-width:400px){#header_face img{border-radius:50px;}}
|
|
|
|
@media(min-width:540px){#header_face img{border-radius:55px;}}
|
2022-10-19 22:13:06 +01:00
|
|
|
#page_title { /* This may be best floating above content div rather than inside header div */
|
2022-10-26 21:35:23 +01:00
|
|
|
background-color: var(--overlay-color);
|
2022-10-20 21:48:25 +01:00
|
|
|
font-family: indie-flower, cursive;
|
2022-10-19 20:12:07 +01:00
|
|
|
font-size: large;
|
2022-10-19 14:22:28 +01:00
|
|
|
width: 100%;
|
2022-10-20 20:53:36 +01:00
|
|
|
height: 90px;
|
2022-10-18 12:48:35 +01:00
|
|
|
text-align: center;
|
2022-10-19 14:11:11 +01:00
|
|
|
position: absolute;
|
2022-10-20 20:53:36 +01:00
|
|
|
bottom: 0;
|
2022-10-26 21:35:23 +01:00
|
|
|
color: var(--main-text-color);
|
2022-10-19 11:51:07 +01:00
|
|
|
}
|
2022-10-19 21:47:27 +01:00
|
|
|
#menubar {
|
2022-10-26 21:35:23 +01:00
|
|
|
background-color: var(--accent-color);
|
|
|
|
color: var(--main-text-color);
|
2022-10-19 21:47:27 +01:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 40px;
|
|
|
|
}
|
2022-10-19 22:13:06 +01:00
|
|
|
#menubar_logo img { /* Logo file is controlled by media="" in <picture> */
|
2022-10-19 21:47:27 +01:00
|
|
|
max-height: 20px;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
#menubar_hamburger {
|
|
|
|
position: absolute;
|
|
|
|
top: 2px;
|
|
|
|
right: 0;
|
|
|
|
padding: 5px;
|
|
|
|
}
|
|
|
|
.sidebar_control {
|
|
|
|
background-color: transparent;
|
2022-10-26 21:35:23 +01:00
|
|
|
color: var(--main-text-color);
|
2022-10-19 21:47:27 +01:00
|
|
|
border: none;
|
|
|
|
font-family: sans-serif;
|
|
|
|
font-size: larger;
|
|
|
|
}
|
2022-10-20 13:37:00 +01:00
|
|
|
#sidebar_open_short {display: block;}
|
2022-10-19 21:47:27 +01:00
|
|
|
#sidebar_close_short {
|
|
|
|
display: none;
|
|
|
|
font-size: x-large;
|
|
|
|
}
|
|
|
|
#sidebar {
|
|
|
|
position: fixed;
|
|
|
|
top: 40px;
|
|
|
|
right: 0;
|
|
|
|
margin: auto;
|
|
|
|
height: 100%;
|
|
|
|
display: block;
|
2022-10-20 22:27:29 +01:00
|
|
|
max-width: 250px;
|
2022-10-19 21:47:27 +01:00
|
|
|
width: 0;
|
2022-10-26 21:35:23 +01:00
|
|
|
background-color: var(--overlay-color);
|
2022-10-19 21:47:27 +01:00
|
|
|
transition: 0.7s;
|
|
|
|
}
|
|
|
|
#sidebar a {
|
|
|
|
padding: 8px 8px 8px 8px;
|
|
|
|
margin-top: 10px;
|
2022-10-20 21:50:29 +01:00
|
|
|
font-family: indie-flower, sans-serif;
|
2022-10-19 21:47:27 +01:00
|
|
|
font-weight: 300;
|
|
|
|
text-decoration: none;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 25px;
|
2022-10-26 21:40:37 +01:00
|
|
|
color: var(--link-color);
|
2022-10-19 21:47:27 +01:00
|
|
|
display: block;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
2022-10-28 20:27:09 +01:00
|
|
|
@media screen and (max-height: 400px){#sidebar a{margin-top:0px;padding-top:0px}}
|
2022-10-26 21:41:32 +01:00
|
|
|
#sidebar a:hover {color: var(--main-text-color)}
|
|
|
|
#sidebar a:active {color: var(--main-text-color)}
|
2022-10-26 21:40:37 +01:00
|
|
|
#sidebar_logo {
|
2022-10-28 19:54:50 +01:00
|
|
|
margin-top: 30%;
|
2022-10-19 21:47:27 +01:00
|
|
|
text-align: center;
|
|
|
|
}
|
2022-10-28 19:54:50 +01:00
|
|
|
@media screen and (max-height: 540px){#sidebar_logo{display:none}
|
2022-10-19 21:47:27 +01:00
|
|
|
}
|
|
|
|
#sidebar_social {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 50px;
|
|
|
|
width: 100%;
|
2022-10-28 19:54:50 +01:00
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
#sidebar_social img {
|
|
|
|
max-width: 64px;
|
|
|
|
width: 14%;
|
2022-10-19 21:47:27 +01:00
|
|
|
}
|
2022-10-28 19:54:50 +01:00
|
|
|
@media screen and (min-height: 600px){#sidebar_social img{margin-bottom:40px}}
|
2022-10-28 20:02:41 +01:00
|
|
|
@media screen and (max-height: 310px){#sidebar_social{display:none}}
|
2022-10-20 13:37:00 +01:00
|
|
|
/* CONTENT */
|
2022-10-20 22:37:29 +01:00
|
|
|
.content { /* Try z-index: 1; so it scrolls over header image */
|
2022-10-19 22:13:06 +01:00
|
|
|
padding-top: 10px;
|
|
|
|
padding-bottom: 10px;
|
|
|
|
width: 100%;
|
|
|
|
}
|
2022-10-20 22:37:29 +01:00
|
|
|
.content p {
|
2022-10-19 14:11:11 +01:00
|
|
|
width: 90%;
|
2022-10-19 22:13:06 +01:00
|
|
|
margin: auto;
|
|
|
|
margin-top: 20px;
|
2022-10-20 20:37:25 +01:00
|
|
|
margin-bottom: 40px;
|
2022-10-26 21:35:23 +01:00
|
|
|
color: var(--main-text-color);
|
2022-10-19 21:23:39 +01:00
|
|
|
}
|
2022-10-20 13:37:00 +01:00
|
|
|
/* FOOTER */
|
2022-10-20 13:30:58 +01:00
|
|
|
footer {
|
2022-10-21 20:22:24 +01:00
|
|
|
position: relative;
|
2022-10-20 13:30:58 +01:00
|
|
|
width: 100%;
|
2022-10-26 21:35:23 +01:00
|
|
|
background-color: var(--accent-color);
|
2022-10-20 20:37:25 +01:00
|
|
|
height: 30px;
|
2022-10-21 20:22:24 +01:00
|
|
|
bottom: 0;
|
2022-10-20 20:37:25 +01:00
|
|
|
}
|
|
|
|
footer p {
|
|
|
|
padding: 0;
|
2022-10-26 21:35:23 +01:00
|
|
|
padding-top: 5px;
|
|
|
|
margin: auto;
|
2022-10-20 21:52:31 +01:00
|
|
|
margin-top: 9px;
|
2022-10-20 13:30:58 +01:00
|
|
|
text-align: center;
|
2022-10-26 21:35:23 +01:00
|
|
|
color: var(--main-text-color);
|
|
|
|
font-family: monospace;
|
2022-10-20 13:30:58 +01:00
|
|
|
}
|
2022-10-20 20:37:25 +01:00
|
|
|
@media screen and (min-height: 600px) {
|
2022-10-20 13:32:59 +01:00
|
|
|
footer {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2022-10-26 21:35:23 +01:00
|
|
|
footer p {
|
|
|
|
padding-top: 0px;
|
|
|
|
margin-top: 6px;
|
|
|
|
}
|
2022-10-20 22:37:29 +01:00
|
|
|
}
|
|
|
|
/* Hide .hide_micro on screens smaller than 250px and show .show_micro while not showing it on full screens */
|
|
|
|
|
|
|
|
.show_micro {display:none}
|
2022-10-26 21:35:23 +01:00
|
|
|
@media only screen and (max-width: 249px) {
|
2022-10-20 22:37:29 +01:00
|
|
|
.hide_micro {display: none}
|
|
|
|
.show_micro {display: block}
|
2022-10-20 13:37:00 +01:00
|
|
|
}
|