fredboniface.co.uk/style/new_style.css

136 lines
2.9 KiB
CSS

/* FONTS */
/* HTML & BODY */
html {height: 100%;}
body {
width: 100%;
margin: auto;
background-color: lightslategrey;
}
/* PAGE HEADER */
#header_image_home {
background-color: rgb(29,49,49);
background-image: url("/images/headers/index/index_1024.webp");
background-repeat: no-repeat;
background-position: top;
background-size: cover;
height: 275px;
min-width: 100%;
max-width: 100%;
margin: auto;
margin-top: 40px;
position: sticky;
top: -145px;
}
@media(min-width: 1025px){#header_image_home{background-image:url("/images/headers/index/index_1920.webp")}}
@media(min-width: 1921px){#header_image_home{background-image:url("/images/headers/index/index_2800.webp")}}
@media(min-width: 2801px){#header_image_home{background-image:url("/images/headers/index/index_4096.webp")}}
#page_title { /* This may be best floating above content div rather than inside header div */
background-color: #2f4f4f8f;
font-family: sans-serif;
font-size: large;
width: 100%;
height: 90px;
text-align: center;
position: absolute;
bottom: 0;
color: azure;
}
#menubar {
background-color: darkslategrey;
color: azure;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 40px;
}
#menubar_logo img { /* Logo file is controlled by media="" in <picture> */
max-height: 20px;
padding: 10px;
}
#menubar_hamburger {
position: absolute;
top: 2px;
right: 0;
padding: 5px;
}
.sidebar_control {
background-color: transparent;
color: azure;
border: none;
font-family: sans-serif;
font-size: larger;
}
#sidebar_open_short {display: block;}
#sidebar_close_short {
display: none;
font-size: x-large;
}
#sidebar {
position: fixed;
top: 40px;
right: 0;
margin: auto;
height: 100%;
display: block;
max-width: 60%;
width: 0;
background-color: rgba(29,49,49,0.9);
transition: 0.7s;
}
#sidebar a {
padding: 8px 8px 8px 8px;
margin-top: 10px;
font-family: sans-serif;
font-weight: 300;
text-decoration: none;
text-align: center;
font-size: 25px;
color: cyan;
display: block;
white-space: nowrap;
}
#sidebar_logo {
margin-top: 40%;
text-align: center;
}
@media screen and (max-height: 500px) {
#sidebar_logo {display: none;}
}
#sidebar_social {
position: absolute;
bottom: 50px;
width: 100%;
}
/* CONTENT */
#content { /* Try z-index: 1; so it scrolls over header image */
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
}
#content p {
width: 90%;
margin: auto;
margin-top: 20px;
margin-bottom: 40px;
color: azure;
}
/* FOOTER */
footer {
position: absolute;
width: 100%;
background-color: darkslategrey;
height: 30px;
}
footer p {
padding: 0;
margin-top: 6px;
text-align: center;
color: azure;
}
@media screen and (min-height: 600px) {
footer {
position: fixed;
bottom: 0;
}
}