• Resolved gcwp

    (@gcwp)


    Hello

    From help here some while ago I used the code below for the mobile menu. I would like to make the area taken up by the menu slightly less. How?!

    Cheers

    Geoff

    /* next 2 blocks to get menu at top of page rather than at the bottom */

    @media (min-width: 760px) {
    .navigation-top {
    position: absolute;
    top: 0px;
    width: 100%;
    height: 70px;
    opacity: 0.8;
    }
    }

    @media (min-width: 760px) {

    .custom-header {
    position: relative;
    padding-top: 70px;
    }
    }

    /* puts menu icon at top of mobile page so that menu options list is visible */

    @media screen and (max-width: 767px) {

    .navigation-top,
    #masthead .wrap {
    position: static;
    }

    .site-branding,
    .custom-header-media {
    z-index: 0;
    }

    .main-navigation {
    left: 15%; /* orig 10% */
    position: absolute;
    top: 0;
    width: 80%;
    z-index: 1;
    }

    .main-navigation ~ a {
    display: inline-block;
    margin-top: 10px;
    }

    html .colors-custom.navigation-top .menu-toggle,
    html .navigation-top .menu-toggle {
    background: white;
    color: red;
    float: right;
    margin-top: 0.5em; /* orig 1em */
    z-index: 1;
    }

    .menu-menu-1-container {
    clear: both;
    }

    html .colors-custom .menu-toggle:focus,
    html .menu-toggle:focus {
    background: white;
    outline-color: black;
    }
    }

Viewing 1 replies (of 1 total)
  • Thread Starter gcwp

    (@gcwp)

    Success !

    I added following code,

    .menu-top-menu-container {
    font-size: 10px !important;
    border: 2px solid red;
    }

    Geoff

    • This reply was modified 7 years, 3 months ago by gcwp.
Viewing 1 replies (of 1 total)
  • The topic ‘how configure mobile menu list?’ is closed to new replies.