Tagged: x
-
AuthorPosts
-
June 22, 2016 at 1:31 pm #1054813
mserougiParticipantHello,
I’m trying to style the header menu submenu About submenu only on desktop browsers when they enter responsive mode. Currently it looks good in all cases, non-responsive desktop, responsive mobile, but the responsive desktop About submenu is messed up:
https://www.dropbox.com/s/x4npukm1mde9b3g/Screenshot%202016-06-22%2020.21.45.png?dl=0
I want the submenu to list all its four items horizontally, in a single row, with the close button as is. Is there a way to do that only for the desktop responsive version of the menu?
Please advise. I’ll include the site URL in a second message.
June 22, 2016 at 1:31 pm #1054817
mserougiParticipantThis reply has been marked as private.June 22, 2016 at 6:58 pm #1055274
JadeModeratorHi there,
Please add this code in the customizer:
@media screen and (max-width: 1120px) { .ubermenu-submenu-id-8443 li { min-width: 25% !important; clear: none !important; } }Hope this helps.
June 22, 2016 at 7:41 pm #1055335
mserougiParticipantThat helped, thank you.
However, the Close button highlights the entire submenu now: https://www.dropbox.com/s/6wkd39slp3soo3h/Screenshot%202016-06-23%2002.31.39.png?dl=0
Also, is it possible to align the Close button to the far right of the submenu, next to the last item (Jobs), so that all items including the Close button are in a single row?
June 23, 2016 at 12:29 am #1055799
LelyModeratorHi There,
You’re welcome!
Please try this CSS:@media screen and (max-width: 1120px) { .ubermenu-submenu-id-8443 li.ubermenu-retractor.ubermenu-retractor-mobile { float: right; padding: 15px; min-width: initial !important; margin-top: -50px; clear: both !important; position: relative; z-index: 999; } }Hope this helps.
June 23, 2016 at 5:16 am #1056062
mserougiParticipantWell that pushed the Close button to the far right but it wasn’t vertically center aligned, so I changed it to be at the bottom:
https://www.dropbox.com/s/o9645u0hg12ilc2/Screenshot%202016-06-23%2012.08.47.png?dl=0
@media screen and (max-width: 1120px) { .ubermenu-submenu-id-8443 li { min-width: 25% !important; clear: none !important; } } @media screen and (max-width: 1120px) { .ubermenu-submenu-id-8443 li.ubermenu-retractor.ubermenu-retractor-mobile { min-width: initial !important; margin-top: -50px; clear: both !important; position: relative; z-index: 999; } }My last problem here is that the above CSS affects the mobile responsive menu too, and I would like the mobile responsive menu to remain as it was from before, one row per submenu item:
https://www.dropbox.com/s/o9hp8dp1uqqd5rk/Screenshot%202016-06-23%2012.16.09.png?dl=0
June 23, 2016 at 9:59 am #1056434
ChristianModeratorPlease try changing your media query from
max-width: 1120pxto@media screen and (min-width: 768px) and (max-width: 1120px)Further customizations from here would be getting into custom development, which is outside the scope of support we can offer. If you need more in depth changes, you may wish to consult with a developer. X is quite extensible with child themes, so there are plenty of possibilities. Thanks for understanding.
June 23, 2016 at 12:41 pm #1056687
mserougiParticipantWell that did the trick. Thank you!
June 23, 2016 at 2:34 pm #1056843
Prasant RaiModeratorYou are most welcome. 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1054813 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
