fredboniface.co.uk/style/new_style.css

136 lines
2.9 KiB
CSS
Raw Normal View History

2022-10-20 13:37:00 +01:00
/* FONTS */
/* 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;
background-color: lightslategrey;
2022-10-18 11:45:25 +01:00
}
2022-10-20 13:37:00 +01:00
/* PAGE HEADER */
2022-10-20 21:21:53 +01:00
#header_image_home {
2022-10-19 13:40:09 +01:00
background-color: rgb(29,49,49);
background-image: url("/images/headers/index/index_1024.webp");
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-19 14:11:11 +01:00
height: 275px;
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;
top: -145px;
2022-10-18 11:45:25 +01:00
}
2022-10-20 21:21:53 +01:00
@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")}}
2022-10-19 22:13:06 +01:00
#page_title { /* This may be best floating above content div rather than inside header div */
background-color: #2f4f4f8f;
2022-10-18 11:45:25 +01:00
font-family: sans-serif;
2022-10-19 20:12:07 +01:00
font-size: large;
2022-10-19 14:22:28 +01:00
width: 100%;
height: 90px;
2022-10-18 12:48:35 +01:00
text-align: center;
2022-10-19 14:11:11 +01:00
position: absolute;
bottom: 0;
2022-10-18 12:48:35 +01:00
color: azure;
2022-10-19 11:51:07 +01:00
}
2022-10-19 21:47:27 +01:00
#menubar {
background-color: darkslategrey;
color: azure;
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;
color: azure;
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 20:48:29 +01:00
max-width: 60%;
2022-10-19 21:47:27 +01:00
width: 0;
2022-10-20 20:48:29 +01:00
background-color: rgba(29,49,49,0.9);
2022-10-19 21:47:27 +01:00
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%;
}
2022-10-20 13:37:00 +01:00
/* CONTENT */
2022-10-19 22:13:06 +01:00
#content { /* Try z-index: 1; so it scrolls over header image */
padding-top: 10px;
padding-bottom: 10px;
width: 100%;
}
#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-19 22:13:06 +01:00
color: azure;
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-20 20:37:25 +01:00
position: absolute;
2022-10-20 13:30:58 +01:00
width: 100%;
background-color: darkslategrey;
2022-10-20 20:37:25 +01:00
height: 30px;
}
footer p {
padding: 0;
margin-top: 6px;
2022-10-20 13:30:58 +01:00
text-align: center;
2022-10-20 20:37:25 +01:00
color: azure;
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-20 13:37:00 +01:00
}