Style updates - using CSS vars for color setting
This commit is contained in:
parent
7db16f5dde
commit
5df1d16ce5
@ -54,7 +54,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="content show_micro">
|
<div class="content show_micro">
|
||||||
<h2>Sorry</h2>
|
|
||||||
<p>
|
<p>
|
||||||
This website cannot correctly render on a screen this narrow,
|
This website cannot correctly render on a screen this narrow,
|
||||||
Please resize your window or visit on a larger device.
|
Please resize your window or visit on a larger device.
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
/* COLOR VARS */
|
||||||
|
:root {
|
||||||
|
--main-bg-color: lightslategrey;
|
||||||
|
--accent-color: darkslategrey;
|
||||||
|
--overlay-color: #2f4f4f8f;
|
||||||
|
--main-text-color: azure;
|
||||||
|
}
|
||||||
/* FONTS */
|
/* FONTS */
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'indie-flower';
|
font-family: 'indie-flower';
|
||||||
@ -12,7 +19,7 @@ html {height: 100%;}
|
|||||||
body {
|
body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
background-color: lightslategrey;
|
background-color: var(--main-bg-color);
|
||||||
}
|
}
|
||||||
/* PAGE HEADER */
|
/* PAGE HEADER */
|
||||||
.header_image {
|
.header_image {
|
||||||
@ -27,7 +34,7 @@ body {
|
|||||||
position: sticky;
|
position: sticky;
|
||||||
top: -145px;
|
top: -145px;
|
||||||
}
|
}
|
||||||
#header_index{background-color: #a04911} /* Try using image-set() here to offer different formats, also try moving to HTML picture element */
|
#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: 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: 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")}}
|
@media(min-width: 501px){#header_index{background-image:url("/images/headers/index/800.webp")}}
|
||||||
@ -38,17 +45,24 @@ body {
|
|||||||
#header_face {
|
#header_face {
|
||||||
display: flex;
|
display: flex;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -140px;
|
top: -184px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: 185px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
#header_face img {
|
#header_face img {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
border-radius: 40px;
|
border-radius: 40px;
|
||||||
height: 100px;
|
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;}}
|
||||||
#page_title { /* This may be best floating above content div rather than inside header div */
|
#page_title { /* This may be best floating above content div rather than inside header div */
|
||||||
background-color: #2f4f4f8f;
|
background-color: var(--overlay-color);
|
||||||
font-family: indie-flower, cursive;
|
font-family: indie-flower, cursive;
|
||||||
font-size: large;
|
font-size: large;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@ -56,11 +70,11 @@ body {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
color: azure;
|
color: var(--main-text-color);
|
||||||
}
|
}
|
||||||
#menubar {
|
#menubar {
|
||||||
background-color: darkslategrey;
|
background-color: var(--accent-color);
|
||||||
color: azure;
|
color: var(--main-text-color);
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
@ -79,7 +93,7 @@ body {
|
|||||||
}
|
}
|
||||||
.sidebar_control {
|
.sidebar_control {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: azure;
|
color: var(--main-text-color);
|
||||||
border: none;
|
border: none;
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
font-size: larger;
|
font-size: larger;
|
||||||
@ -98,7 +112,7 @@ body {
|
|||||||
display: block;
|
display: block;
|
||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
width: 0;
|
width: 0;
|
||||||
background-color: rgba(29,49,49,0.9);
|
background-color: var(--overlay-color);
|
||||||
transition: 0.7s;
|
transition: 0.7s;
|
||||||
}
|
}
|
||||||
#sidebar a {
|
#sidebar a {
|
||||||
@ -136,33 +150,40 @@ body {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
margin-bottom: 40px;
|
margin-bottom: 40px;
|
||||||
color: azure;
|
color: var(--main-text-color);
|
||||||
}
|
}
|
||||||
/* FOOTER */
|
/* FOOTER */
|
||||||
|
/* FOOTER */
|
||||||
footer {
|
footer {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background-color: darkslategrey;
|
background-color: var(--accent-color);
|
||||||
height: 30px;
|
height: 30px;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
footer p {
|
footer p {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
padding-top: 5px;
|
||||||
|
margin: auto;
|
||||||
margin-top: 9px;
|
margin-top: 9px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: azure;
|
color: var(--main-text-color);
|
||||||
font-family: monospace
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
@media screen and (min-height: 600px) {
|
@media screen and (min-height: 600px) {
|
||||||
footer {
|
footer {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
footer p {
|
||||||
|
padding-top: 0px;
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* Hide .hide_micro on screens smaller than 250px and show .show_micro while not showing it on full screens */
|
/* Hide .hide_micro on screens smaller than 250px and show .show_micro while not showing it on full screens */
|
||||||
|
|
||||||
.show_micro {display:none}
|
.show_micro {display:none}
|
||||||
@media only screen and (max-width: 250px) {
|
@media only screen and (max-width: 249px) {
|
||||||
.hide_micro {display: none}
|
.hide_micro {display: none}
|
||||||
.show_micro {display: block}
|
.show_micro {display: block}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user