Skip to content

Commit 54fae5e

Browse files
committed
more splash page css debugging
1 parent eedaeee commit 54fae5e

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

_layouts/splash.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@
107107
dynamicDiv = document.getElementById('masthead');
108108
splashBanner = document.getElementsByClassName('splash-banner')[0];
109109
splashLogoTxt = document.getElementsByClassName('splash-banner-logotext')[0];
110-
maxHeight = dynamicDiv.offsetHeight;
111-
curHeight = parseFloat(dynamicDiv.style.height) || dynamicDiv.offsetHeight; //maxHeight;
110+
maxHeight = window.innerHeight + 120;
111+
dynamicDiv.style.height = maxHeight + 'px';
112+
curHeight = maxHeight;
112113
vanishHeight = minHeight + (maxHeight - minHeight) * 0.4;
113114
splashTxt = document.querySelectorAll('.splash-text');
114115
window.addEventListener('scroll', scrollFn);

style.scss

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,14 +214,13 @@ img {
214214
*/
215215

216216
.splash-masthead {
217-
height: calc(100dvh + var(--masthead-height));
217+
//height: calc(100dvh + var(--masthead-height));
218218
width: 100%;
219219
background-color: var(--cap-bg-color);
220220
color: var(--cap-fg-color);
221-
display: flex;
222-
justify-content: flex-start;
223-
//justify-content: space-between;
224221
align-items: center;
222+
display: flex;
223+
justify-content: space-between;
225224
flex-direction: column;
226225

227226
/* sticky header */

0 commit comments

Comments
 (0)