Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update menu styling for mobile #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _alex.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
body {
background: url('https://2016.bucharest.wordcamp.org/files/2016/06/vampir_fundal.png') no-repeat right 300px #F0FCFF;
background-attachment: fixed;
background-position: right -130px center;
background-size: 70%;
}

#main-menu-wrapper {
Expand Down
74 changes: 73 additions & 1 deletion _header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -122,4 +122,76 @@ img[src*="path"] {
background-color: black;
border-radius: 100px;
padding: 10px;
}
}

@media screen and (max-width: 727px) {
.menu-header {
max-width: 100%;
}

#header-container:before {
content: "";
background: url('https://2016.bucharest.wordcamp.org/files/2016/06/logo.png') no-repeat center center;
height: 150px;
width: 125px;
position: absolute;
left: calc(50% - 75px);
top: 0;
background-size: contain;
z-index: 1040;
}

#main-menu-wrapper .menu:before {
font-family: FontAwesome;
content: "\f0c9";
color: #ffffff;
font-size: 37px;
position: absolute;
top: 7px;
left: 17px;
cursor: pointer;
}

#main-menu-wrapper .menu {
position: relative;
width: 100%;
height: auto;
padding-top: 60px;
background: #055f82;
height: 30px;
padding-bottom: 5px;
overflow: hidden;
z-index: 1020;
cursor: pointer;
}

#main-menu-wrapper .menu:hover,
#main-menu-wrapper .menu:focus,
#main-menu-wrapper .menu:active {
height: auto;
padding-bottom: 30px;
}

#main-menu ul li {
width: 100%;
line-height: 30px;
text-align: left;
}

#main-menu ul li .sub-menu {
position: relative;
display: block;
min-width: 100%;
background: transparent;
text-indent: 17px;
}

#main-menu-wrapper {
background-color: #1A6E94;
border-bottom: 3px solid #035073;
}

#main-menu-wrapper .menu li.current-menu-item, #main-menu-wrapper .menu li:hover {
background: #0b526d;
}
}