rayleic Posted May 8, 2014 Share Posted May 8, 2014 PS1.6 default theme top menu change to vertical like PS1.5 like attached, it is easier as i only have 2 level, some categories only have 1 level, no sub category. if use default them, all of them will display in 5 columns and looks ugly! Can anyone help?? Thanks! 1 Link to comment Share on other sites More sharing options...
vekia Posted May 8, 2014 Share Posted May 8, 2014 open file: /themes/default-bootstrap/css/modules/blocktopmenu/css/superfish-modified.css and copy there these styles: /*** ESSENTIAL STYLES ***/ .sf-contener { clear: both; } .sf-right { margin-right: 14px; float: right; width: 7px; } .sf-menu, .sf-menu * { margin: 0; padding: 0; list-style: none; } .sf-menu { margin: 10px 0; padding:0; width:980px;/* 980 */ background: #383838; } .sf-menu ul { position: absolute; top: -999em; width: 10em; /* left offset of submenus need to match (see below) */ } .sf-menu ul li { width: 100%; } .sf-menu li:hover { visibility: inherit; /* fixes IE7 'sticky bug' */ } .sf-menu li { float: left; position: relative; border-right: 1px solid #777; } .sf-menu a { display: block; position: relative; color:#fff; text-shadow:0 1px 0 #333; } .sf-menu li:hover ul, .sf-menu li.sfHover ul { left: 0; top: 34px; /* match top ul list item height */ z-index: 99; width:auto } ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul { top: -999em; } ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul { left: 200px; /* match ul width */ top: 0; } ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul { top: -999em; } ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul { left: 200px; /* match ul width */ top: 0; } /*** DEMO SKIN ***/ .sf-menu { float: left; margin-bottom: 1em; } .sf-menu a { display:block; margin-right:2px; padding: 0 22px 0 20px; line-height:34px; border: 0; text-decoration:none; } .sf-menu a, .sf-menu a:visited { /* visited pseudo selector so IE6 applies text colour*/ color: #fff; white-space:nowrap; } .sf-menu li li { background: rgba(113, 113, 113, 0.9); } .sf-menu li li li { background: rgba(113, 113, 113, 0.9); } .sf-menu a:focus, .sf-menu a:hover, .sf-menu a:active { background: #4E4E4E; } .sf-menu ul li:hover, .sf-menu ul li.sfHover, .sf-menu ul li a:focus, .sf-menu ul li a:hover, .sf-menu ul li a:active { background: #4e4e4e; outline: 0; } /*** arrows **/ .sf-menu a.sf-with-ul { padding-right: 2.25em; min-width: 1px; /* trigger IE7 hasLayout so spans position accurately */ } .sf-sub-indicator { position: absolute; display: block; right: 10px; top: 1.05em; /* IE6 only */ width: 10px; height: 10px; text-indent: -999em; overflow: hidden; background: url('../img/arrows-ffffff.png') no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */ } a > .sf-sub-indicator { /* give all except IE6 the correct values */ top: 11px; background-position: 0 -100px; /* use translucent arrow for modern browsers*/ } /* apply hovers to modern browsers */ a:focus > .sf-sub-indicator, a:hover > .sf-sub-indicator, a:active > .sf-sub-indicator, li:hover > a > .sf-sub-indicator, li.sfHover > a > .sf-sub-indicator { background-position: -10px -100px; /* arrow hovers for modern browsers*/ } /* point right for anchors in subs */ .sf-menu ul .sf-sub-indicator { background-position: -10px 0; } .sf-menu ul a > .sf-sub-indicator { background-position: 0 0; } /* apply hovers to modern browsers */ .sf-menu ul a:focus > .sf-sub-indicator, .sf-menu ul a:hover > .sf-sub-indicator, .sf-menu ul a:active > .sf-sub-indicator, .sf-menu ul li:hover > a > .sf-sub-indicator, .sf-menu ul li.sfHover > a > .sf-sub-indicator { background-position: -10px 0; /* arrow hovers for modern browsers*/ } /*** shadows for all but IE6 ***/ .sf-shadow ul { background: url('../img/shadow.png') no-repeat bottom right; padding: 0 8px 9px 0; -moz-border-bottom-left-radius: 17px; -moz-border-top-right-radius: 17px; -webkit-border-top-right-radius: 17px; -webkit-border-bottom-left-radius: 17px; } .sf-shadow ul.sf-shadow-off { background: transparent; } li.sf-search { background: inherit; float: right; line-height: 25px; } li.sf-search input { -moz-border-radius: 0 5px 5px 0; padding: 3px 0; padding-left: 20px; margin: 6px 6px 0 0; background: #fff url('../img/search.gif') no-repeat left center; border:1px solid #777 } /* hack IE7 */ .sf-menu a, .sf-menu a:visited {height:34px !IE;} .sf-menu li li { width:200px; background:#726f72 !IE; } 3 Link to comment Share on other sites More sharing options...
rayleic Posted May 8, 2014 Author Share Posted May 8, 2014 thank you so much! I will try now and feedback here. Link to comment Share on other sites More sharing options...
mandoraa Posted May 15, 2014 Share Posted May 15, 2014 Hello ! Thank you for this ! What mean this part ? /* hack IE7 */.sf-menu a, .sf-menu a:visited {height:34px !IE;}.sf-menu li li { width:200px; background:#726f72 !IE; See you later ! Link to comment Share on other sites More sharing options...
dioniz Posted May 15, 2014 Share Posted May 15, 2014 That's fix for IE7 Link to comment Share on other sites More sharing options...
mandoraa Posted May 15, 2014 Share Posted May 15, 2014 ok thank you ! Link to comment Share on other sites More sharing options...
mandoraa Posted May 16, 2014 Share Posted May 16, 2014 (edited) Hello ! Just a question How to change the space between the words of the categories ? thank you in advance ! Edited May 16, 2014 by mandora (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 16, 2014 Share Posted May 16, 2014 Hello ! Just a question How to change the space between the words of the categories ? thank you in advance ! any example where i can see what to change exactly? Link to comment Share on other sites More sharing options...
mandoraa Posted May 16, 2014 Share Posted May 16, 2014 to change for example the space between Alsace and Aquitaine. THX. Link to comment Share on other sites More sharing options...
vekia Posted May 16, 2014 Share Posted May 16, 2014 okay i understand now thank you for explanation you can use this code: .sf-menu li ul li a{ line-height:20px!important; } 1 Link to comment Share on other sites More sharing options...
mandoraa Posted May 17, 2014 Share Posted May 17, 2014 it's perfect ! thank you very much ! you are very gentle ! Link to comment Share on other sites More sharing options...
mandoraa Posted May 31, 2014 Share Posted May 31, 2014 hello ! I have a new problem when i modify in css superfish , .sf-menu { margin: 10px 0; padding:0; width: 980px;/* 980 */ background: #383838; to .sf-menu { margin: 10px 0; padding:0; width: 1020px;/* 1020 */ background: #383838; i put this in filezilla but when i look with firebug but the change does not work Thank you for helping me please ! Link to comment Share on other sites More sharing options...
mandoraa Posted May 31, 2014 Share Posted May 31, 2014 oh its works ! purge the varnish cash server ! Link to comment Share on other sites More sharing options...
mandoraa Posted May 31, 2014 Share Posted May 31, 2014 (edited) i'm back because I can not adpater the categories to the size of the menu, a box appears after. i'm a newbie in css. thank you in advance. Edited May 31, 2014 by mandora (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 31, 2014 Share Posted May 31, 2014 hello it's not a issue or sth this is just empty space, each menu item has got a bar on right border (to separate next element) the question is: what you want to do with this box? remove? remove bar? or what? Link to comment Share on other sites More sharing options...
mandoraa Posted May 31, 2014 Share Posted May 31, 2014 Hello !Thank you for your reply, well, I would like the menu stops at the last category. thank you Link to comment Share on other sites More sharing options...
vekia Posted May 31, 2014 Share Posted May 31, 2014 in this case you have to decrease width of the main menu block: somewhere in your styleshet file paste this: .sf-menu { width:auto!important; } Link to comment Share on other sites More sharing options...
mandoraa Posted June 1, 2014 Share Posted June 1, 2014 Hello ! Its work ! Great ! thank you very much ! Link to comment Share on other sites More sharing options...
vekia Posted June 1, 2014 Share Posted June 1, 2014 you're welcome :-) glad to hear that i could help a little Link to comment Share on other sites More sharing options...
mandoraa Posted June 1, 2014 Share Posted June 1, 2014 Good eveningUnfortunately the tip does not function with Google Chrome and with firefox the menu does not adapt to the resolution of screen. Thank you to have helped me I perhaps will have to try to find another menu horizontal/vertical finely free.good night! firefox 1024x768 : Chrome Link to comment Share on other sites More sharing options...
tocotoco Posted July 5, 2014 Share Posted July 5, 2014 Hi, I copied the code Vekia but now if I'm not up with the mouse goes like this: http://subefotos.com/ver/?21f3a5bf1af9e36b829a82f595b50f3fo.jpg Template: default-bootstrap ps-1.6.0.8 Any solution? Thanks Link to comment Share on other sites More sharing options...
vekia Posted July 5, 2014 Share Posted July 5, 2014 Hi, I copied the code Vekia but now if I'm not up with the mouse goes like this: http://subefotos.com/ver/?21f3a5bf1af9e36b829a82f595b50f3fo.jpg Template: default-bootstrap ps-1.6.0.8 Any solution? Thanks it's a case of css styles. in this case you have to customize it to fit to your theme by default theme where 1.5 menu appears is dark (this is why there is white font) it's necessary to chage sf-menu a param color. Link to comment Share on other sites More sharing options...
vontanix Posted March 3, 2015 Share Posted March 3, 2015 dear, looks nice, but isnt responsive in any case Link to comment Share on other sites More sharing options...
autoprestige Posted September 2, 2015 Share Posted September 2, 2015 Hello vekiaThank you for thisit's perfect ! Link to comment Share on other sites More sharing options...
smartcare.ie Posted November 14, 2015 Share Posted November 14, 2015 hi, im using the prestashop 1.6.1.1 i just changed the superfish file and im getting someting like on pic 2, how can i change the font, banner and subcategories color and height to look like on deafault theme pic 1, and i want to keep it vertical and sublevels hiden like on pic 1 Link to comment Share on other sites More sharing options...
BewakingsExpert Posted March 7, 2016 Share Posted March 7, 2016 Hi Vekia,I know this is a old topic. I still hope you can help me.I can't get the subcategories below the Topmenu's. I have tried 5 hours long everything. When I use your code (in the other page) I lose my own styl. Please help me.www.bewakingsexpert.nlI use now this code: /*** ESSENTIAL STYLES ***/ .sf-contener { clear: both; float: left; width: 98%; } .sf-menu, .sf-menu * { margin: 0; padding: 0; list-style: none; } .sf-menu { position: relative; padding: 0; width: 100%; border-bottom: 3px solid #e9e9e9; background: #f6f6f6; } @media (max-width: 767px) { .sf-menu { display: none; } } .sf-menu ul { position: absolute; top: -999em; background: #fff; } @media (max-width: 767px) { .sf-menu ul { position: relative; } } .sf-menu ul li { width: 100%; } .sf-menu li:hover { visibility: inherit; /* fixes IE7 'sticky bug' */ } .sf-menu > li { float: left; border-right: 1px solid #d6d4d4; margin-bottom: -3px; } @media (max-width: 767px) { .sf-menu > li { float: none; position: relative; border-right: none; } .sf-menu > li span { position: absolute; right: 6px; top: 20px; width: 30px; height: 30px; z-index: 2; } .sf-menu > li span:after { font-family: "FontAwesome"; content: "\f067"; font-size: 26px; } .sf-menu > li span.active:after { content: "\f068"; } } .sf-menu > li > a { font: 600 18px/22px "Open Sans", sans-serif; text-transform: uppercase; color: #484848; display: block; padding: 17px 20px; border-bottom: 3px solid #e9e9e9; } .sf-menu > li.sfHover > a, .sf-menu > li > a:hover, .sf-menu > li.sfHoverForce > a { background: #333; border-bottom-color: #666666; color: #fff; } .sf-menu li li li a { display: inline-block; position: relative; color: #777777; font-size: 13px; line-height: 16px; font-weight: bold; padding-bottom: 10px; } .sf-menu li li li a:before { content: "\f105"; display: inline-block; font-family: "FontAwesome"; padding-right: 10px; } .sf-menu li li li a:hover { color: #333; } .sf-menu li ul { display: none; left: 0; top: 59px; /* match top ul list item height */ z-index: 99; padding: 12px 0px 18px 0px; -moz-box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 13px; -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 13px; box-shadow: rgba(0, 0, 0, 0.2) 0px 5px 13px; } @media (max-width: 767px) { .sf-menu li ul { top: 0; } } .sf-menu li li ul { position: static; display: block !important; opacity: 1 !important; background: none; -moz-box-shadow: transparent 0px 0px 0px; -webkit-box-shadow: transparent 0px 0px 0px; box-shadow: transparent 0px 0px 0px; } .sf-menu li li li ul { padding: 0 0 0 20px; } .sf-menu li li li ul { width: 220px; } ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul { top: -999em; } ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul { left: 200px; /* match ul width */ top: 0; } ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul { top: -999em; } ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul { left: 200px; /* match ul width */ top: 0; } .sf-menu > li > ul { padding: 26px 30px 31px; width: 30%; } .sf-menu > li > ul > li > a { text-transform: uppercase; font: 600 16px/20px "Open Sans", sans-serif; color: #333; } .sf-menu > li > ul > li > a:hover { color: #515151; } .sf-menu > li > ul > li { padding-right: 15px; } @media (max-width: 767px) { .sf-menu > li > ul > li { width: 50%; } } @media (max-width: 479px) { .sf-menu > li > ul > li { width: 100%; padding-bottom: 20px; } } @media (min-width: 768px) { .sf-menu > li > ul > li.first-in-line-lg { clear: left; } } @media (min-width: 480px) and (max-width: 767px) { .sf-menu > li > ul > li.first-in-line-xs { clear: left; } } .sf-menu > li > ul > li.category-thumbnail { width: 100% !important; float: none; clear: both; overflow: hidden; padding-right: 0; } .sf-menu > li > ul > li.category-thumbnail > div { float: left; padding-left: 10px; width: 33.333%; } @media (max-width: 479px) { .sf-menu > li > ul > li.category-thumbnail > div { width: 100%; padding-left: 0; padding-top: 10px; text-align: center; } } .sf-menu > li > ul > li.category-thumbnail > div:first-child { padding-left: 0; } .sf-menu > li > ul > li.category-thumbnail > div img { max-width: 100%; display: block; } .cat-title { display: none; } @media (max-width: 767px) { .cat-title { display: block; font: 600 18px/22px "Open Sans", sans-serif; text-transform: uppercase; color: #484848; display: block; padding: 17px 20px; border-bottom: 3px solid #e9e9e9; background: #f6f6f6; position: relative; } .cat-title:hover { background: #333; border-bottom-color: #666666; color: #fff; } .cat-title:after { display: block; font-family: "FontAwesome"; content: "\f067"; position: absolute; right: 15px; top: 18px; font-size: 26px; } .cat-title.active:after { content: "\f068"; } } .sf-menu li.sf-search { border: none; } .sf-menu li.sf-search input { display: inline; padding: 0 13px; height: 30px; line-height: 30px; background: #fff; margin: 13px 10px 0 0; font-size: 13px; color: #9c9b9b; border: 1px solid #d6d4d4; } #block_top_menu .category-thumbnail { clear: both; width: 100%; float: none; } #block_top_menu .category-thumbnail div { float: left; width: 33.33333%; } #block_top_menu .category-thumbnail div img { max-width: 100%; } #block_top_menu li.category-thumbnail { padding-right: 0; } /*# sourceMappingURL=superfish-modified.css.map */ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now