Better handling of background color on #top container
This commit is contained in:
parent
9951b8dcd4
commit
7ed9065ee9
@ -152,7 +152,6 @@ body {
|
|||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: black;
|
|
||||||
z-index: 999; }
|
z-index: 999; }
|
||||||
#top div {
|
#top div {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@ -179,13 +178,13 @@ body {
|
|||||||
transition-property: size;
|
transition-property: size;
|
||||||
transition-duration: .2s; }
|
transition-duration: .2s; }
|
||||||
|
|
||||||
|
.small {
|
||||||
|
background: black; }
|
||||||
.small .hideable {
|
.small .hideable {
|
||||||
display: none;
|
display: none;
|
||||||
opacity: 0; }
|
opacity: 0; }
|
||||||
|
|
||||||
.small img {
|
.small img {
|
||||||
max-width: 200px; }
|
max-width: 200px; }
|
||||||
|
|
||||||
.small h2 {
|
.small h2 {
|
||||||
font-size: 1em; }
|
font-size: 1em; }
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
<style>
|
<style>
|
||||||
#spaceTakerUpper {
|
#spaceTakerUpper {
|
||||||
height: 98vh;
|
height: 98vh;
|
||||||
|
background: black;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
@ -220,9 +221,9 @@
|
|||||||
// var mastHeight = mast.clientHeight;
|
// var mastHeight = mast.clientHeight;
|
||||||
// var halfHeight = Math.floor((topHeight / 2) - (mastHeight / 2));
|
// var halfHeight = Math.floor((topHeight / 2) - (mastHeight / 2));
|
||||||
if (topHeight < 300) {
|
if (topHeight < 300) {
|
||||||
mast.className = "small";
|
topDiv.className = "small";
|
||||||
} else {
|
} else {
|
||||||
mast.className = "large";
|
topDiv.className = "large";
|
||||||
}
|
}
|
||||||
topDiv.style.height = topHeight + "px";
|
topDiv.style.height = topHeight + "px";
|
||||||
// console.log("topheight is " + topHeight + " and topDiv.style.height = " + topDiv.style.height);
|
// console.log("topheight is " + topHeight + " and topDiv.style.height = " + topDiv.style.height);
|
||||||
|
@ -38,7 +38,7 @@ body {
|
|||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background: black;
|
// background: black;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
div {
|
div {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@ -76,6 +76,7 @@ body {
|
|||||||
|
|
||||||
//small and large classes are applied to #top
|
//small and large classes are applied to #top
|
||||||
.small {
|
.small {
|
||||||
|
background: black;
|
||||||
.hideable {
|
.hideable {
|
||||||
display: none;
|
display: none;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user