JSFiddle - React, Tailwind, and code Playground
HTML
<?php
/*
* 2007-2013 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2013 PrestaShop SA
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;
?>
CSS
.container:after {
clear: both;
}
.container:before, .container:after {
content:"";
display: table;
line-height: 0;
}
.container:before, .container:after {
content:"";
display: table;
line-height: 0;
}
.container {
margin-left: auto;
margin-right: auto;
}
#menu .navbar, #menu .navbar > .navbar-inner {
background-color: #AACCDD;
background-image: none;
border: 0 none;
filter: none;
margin-bottom: 0;
}
.navbar {
color: #777777;
margin-bottom: 20px;
overflow: visible;
}
.navbar-inner:after {
clear: both;
}
.navbar-inner:before, .navbar-inner:after {
content:"";
display: table;
line-height: 0;
}
.navbar-inner:before, .navbar-inner:after {
content:"";
display: table;
line-height: 0;
}
#menu .navbar, #menu .navbar > .navbar-inner {
background-color: #CCDDEE;
background-image: none;
border: 0 none;
filter: none;
margin-bottom: 0;
}
.navbar-inner {
background-color: #FAFAFA;
background-image: linear-gradient(to bottom, #FFFFFF, #F2F2F2);
background-repeat: repeat-x;
border: 1px solid #D4D4D4;
border-radius: 4px 4px 4px 4px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.067);
min-height: 40px;
padding-left: 20px;
padding-right: 20px;
}
.navbar .nav {
display: table;
width: 100%;
}
.navbar .nav {
float: none;
left: 0;
margin: 0 10px 0 0;
position: relative;
}
.nav {
list-style: none outside none;
margin-bottom: 20px;
margin-left: 0;
}
#menu .navbar > .navbar-inner > .nav > li {
position: relative;
}
#menu .navbar > .navbar-inner > .nav > li {
display: table-cell;
float: none;
}
#menu .navbar > .navbar-inner > .nav > li > a {
background-color: #CCDDEE;
color: #334477;
display: block;
text-transform: uppercase;
}
.navbar .nav > li > a {
font-size: 14px;
text-shadow: none;
}
.navbar .nav > li > a {
color: #777777;
float: none;
padding: 10px 15px;
...
JavaScript
/*
* Superfish v1.4.8 - jQuery menu widget
* Copyright (c) 2008 Joel Birch
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
*/
;(function($){
$.fn.superfish = function(op){
var sf = $.fn.superfish,
c = sf.c,
$arrow = $(['<span class="',c.arrowClass,'"> »</span>'].join('')),
over = function(){
var $$ = $(this), menu = getMenu($$);
clearTimeout(menu.sfTimer);
$$.showSuperfishUl().siblings().hideSuperfishUl();
},
out = function(){
var $$ = $(this), menu = getMenu($$), o = sf.op;
clearTimeout(menu.sfTimer);
menu.sfTimer=setTimeout(function(){
o.retainPath=($.inArray($$[0],o.$path)>-1);
$$.hideSuperfishUl();
if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
},o.delay);
},
getMenu = function($menu){
var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
sf.op = sf.o[menu.serial];
return menu;
},
addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
return this.each(function() {
var s = this.serial = sf.o.length;
var o = $.extend({},sf.defaults,op);
o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels).each(function(){
$(this).addClass([o.hoverClass,c.bcClass].join(' '))
.filter('li:has(ul)').removeClass(o.pathClass);
});
sf.o[s] = sf.op = o;
$('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
if (o.autoArrows) addArrow( $('>a:first-child',this) );
})
.not('.'+c.bcClass)
.hideSuperfishUl();
var $a = $('a',this);
$a.each(function(i){
var $li =...