This commit is contained in:
William Zhang 2018-02-17 19:02:30 -05:00
parent 7fa65b8e3f
commit ca51221a6e
7 changed files with 4 additions and 33 deletions

View File

@ -16,4 +16,4 @@
</button>
</a>
</footer>
<script src="js/sidebar.js"></script>
<script src="js/sidebar-min.js"></script>

View File

@ -1,8 +1,3 @@
/*#excomm {
content: '';
flex: auto;
}*/
#contact {
width: 100%;
display: block;

View File

@ -11,14 +11,6 @@ footer {
z-index: 2;
}
/*footer>span {
width: 100vw;
height: 2em;
font-size: 1.1em;
display: table-cell;
vertical-align: middle;
}*/
button.social {
cursor: pointer;
outline: none;

View File

@ -1,7 +1,6 @@
header {
position: relative;
width: 100%;
/*height: calc(10vh + 50px);*/
}
#banner {
@ -20,7 +19,7 @@ header {
#logo {
width: 15vh;
height: 12vh;
background-image: url('../img/logo.jpg');
background-image: url('../img/logo.png');
background-size: 100%;
background-position: center;
background-repeat: no-repeat;
@ -58,8 +57,6 @@ nav#menu {
flex-wrap: nowrap;
justify-content: center;
border-bottom: 3px solid rgb(164, 38, 44);
/*box-shadow: 0 28px 79px 0 rgba(66, 129, 121, .27);*/
}
a.menu-item {

View File

@ -135,19 +135,10 @@ span>a:active {
#wrapper {
position: relative;
width: 100%;
/*min-height: calc(60vh - 42px - 2.75em);
min-height: calc(100vh - 55px - 280px - 86px);
*/
z-index: 1;
background-color: #4C4A48;
/*display: flex;
flex-direction: column;
align-items: center;
*/
height: auto;
min-height: 100%;
overflow: hidden;
}
@ -236,8 +227,6 @@ section h2,
#tweets, #feedback {
text-align: center;
/*flex-grow: calc(50% - 8vw);
*/
margin: 0 2vw;
}

View File

@ -138,10 +138,6 @@
display: none;
}
#wrapper {
/*min-height: 100%calc(100vh - 90px - 2.75em);
*/
/*flex-grow: 1;*/
/*flex-shrink: 0;*/
height: auto;
min-height: calc(100vh - 130px);
}

2
js/sidebar-min.js vendored Normal file
View File

@ -0,0 +1,2 @@
function toggleSidebar(e){""!=sb.style.left&&"-30vw"!=sb.style.left||!e?(sb.style.disabled=!0,sb.style.left="-30vw"):(sb.style.disabled=!1,sb.style.left="0px")}var mb=document.querySelector("#menu-toggle"),sb=document.querySelector("nav#menu"),tb=document.querySelector("#logo"),dm=document.querySelector("#dome"),wr=document.querySelector("#wrapper")
mb.addEventListener("click",function(){toggleSidebar(!0)},!1),wr.addEventListener("click",function(){toggleSidebar(!1)},!1),tb.addEventListener("click",function(){toggleSidebar(!1)},!1),dm.addEventListener("click",function(){toggleSidebar(!1)},!1),mb.addEventListener("touchleave",function(){toggleSidebar(!0)},!1),wr.addEventListener("touchleave",function(){toggleSidebar(!1)},!1),tb.addEventListener("touchleave",function(){toggleSidebar(!1)},!1),dm.addEventListener("touchleave",function(){toggleSidebar(!1)},!1),sb.style.disabled=!0