Closed russellelliott closed 2 years ago
Updates:
padding of "Sierrahiking.net text" (needs to be centered in table, but it's actually centered in its own column)
custom code for that:
<script>
function coverImage(){
//get elements by class name
//https://www.w3schools.com/jsref/met_document_getelementsbyclassname.asp
var coverImages = document.getElementsByClassName('entry-cover-image');
var imageHeaders = document.getElementsByClassName('single-featured-image-header');
if(screen.width <= 767){
//CSS !important in Javascript
//https://stackoverflow.com/questions/38454240/using-css-important-with-javascript
coverImages[0].style.setProperty('display', 'none', 'important'); //hide the color div
imageHeaders[0].style.setProperty('display', 'none', 'important'); //hide the div
}
}
window.addEventListener('load', coverImage);
</script>
made the hamburger menu open in front of the map by increasing z index custom code in section:
selector{
z-index: 3000;
}
Done.
Added 2 columns:
the login widget has 90% width
the "why register" link has 90% width and 10px padding on the left and right
custom code for the column housing the login widget section -> column -> inner section -> column
custom code for the login widget and the link underneath
How to add inner sections inside inner sections https://www.youtube.com/watch?v=i2Tust3p8dw
Here's what I did for the widget
Here is the file structure to give you a sense of where the custom code is located in relation to everything else within the login widget.