css 不错的菜单 - 子菜单estandar con flecha superior en los submenus
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css 不错的菜单 - 子菜单estandar con flecha superior en los submenus相关的知识,希望对你有一定的参考价值。
/*
This is the default layout template for nice menus, and will provide
a starting point for the look of your menus. To customize, it's
recommended to create a custom CSS file using this file as a template,
then configure the module to use your custom CSS file
(this is done in the global settings tab of the theme administration.)
See README.txt and the handbook page (http://drupal.org/node/185543)
for more information on using the CSS.
*/
/******************************
Global CSS for ALL menu types
******************************/
ul.nice-menu,
ul.nice-menu ul {
list-style: none;
padding: 0;
margin: 0;
font-size: 15px;
font-family: 'RalewayBold';
}
.menu-path-nolink,
ul.nice-menu > li {
border: 0;
float: left; /* LTR */
padding: 0 !important;
margin-right:15px;
}
ul.nice-menu > li.first{
padding-left:0 !important;
border-left:none;
}
ul.nice-menu > li.last{
border-right: none;
}
ul.nice-menu .last {
margin-right: 0 !important;
}
.menu-path-nolink .nolink,
ul.nice-menu a {
display:block;
padding: 0.3em 0.3em 0.3em 0.3em;
color:#666666;
}
.menu-path-nolink span.nolink{
cursor: pointer hand;
}
ul.nice-menu ul {
top: 34px;
left: -12px; /* LTR */
border: 0;
/* border-top: 1px solid #ccc; */
margin-right: 0; /* LTR */
}
ul.nice-menu ul li {
width: 14.5em;
background-color: #fff;
}
/******************************
VERTICAL (left/right) menus
******************************/
/* This is the default width of all vertical menus. */
ul.nice-menu-right, ul.nice-menu-left,
ul.nice-menu-right li, ul.nice-menu-left li {
width: 12.5em;
}
/* VERTICAL menus where submenus pop RIGHT (default). */
ul.nice-menu-right ul {
width: 12.5em;
left: 12.5em;
top: 0;
}
ul.nice-menu-right ul ul {
width: 12.5em;
left: 12.5em;
top: 0;
}
ul.nice-menu-right ul ul li{
}
ul.nice-menu-right li.menuparent,
ul.nice-menu-right li li.menuparent {
/* background: #eee url(arrow-right.png) right center no-repeat; */
}
ul.nice-menu-right li.menuparent:hover,
ul.nice-menu-right li li.menuparent:hover {
/* background: #ccc url(arrow-right.png) right center no-repeat; */
}
/* VERTICAL menus where submenus pop LEFT. */
ul.nice-menu-left li ul {
width: 12.5em;
left: -12.65em;
top: 0;
}
ul.nice-menu-left li ul li ul {
width: 12.5em;
left: -12.65em;
top: 0;
padding-top:0;
}
ul.nice-menu li.menuparent ul{
overflow: visible !important;
}
ul.nice-menu > li.menuparent > ul{
padding-top: 6px;
}
ul.nice-menu-left li.menuparent,
ul.nice-menu-left li li.menuparent {
/* background: #eee url(arrow-left.png) left center no-repeat; */
}
ul.nice-menu-left li.menuparent:hover,
ul.nice-menu-left li li.menuparent:hover {
/* background: #ccc url(arrow-left.png) left center no-repeat; */
}
ul.nice-menu-left a, ul.nice-menu-left ul a {
padding-left: 14px;
}
/******************************
HORIZONTAL (down) menus
******************************/
ul.nice-menu-down {
float: left; /* LTR */
border: 0;
}
ul.nice-menu-down li {
}
ul.nice-menu-down li li {
border-top: 0;
background: #EAEAEA;
}
ul.nice-menu-down li li.first{
padding-top: 15px;
}
ul.nice-menu-down li li.last{
padding-bottom: 15px;
}
ul.nice-menu-down li li a {
}
/*enlace menuparent */
ul.nice-menu-down li span.nolink,
ul.nice-menu-down li.menuparent li a{
color:#666666;
padding:10px 0 10px 0;
margin: 0 25px;
font-family: 'RalewayRegular',arial, helvetica, georgia, serif;
font-size: 14px;
border-bottom: 1px dotted #7F7F7F;
}
.menu-path-nolink span.nolink:hover ,
ul.nice-menu-down li.menuparent li a:hover{
color: #FF6F17;
}
/*último enlace del menu*/
ul.nice-menu-down li.menuparent li.last > a {
border-color: none;
border-bottom: 0 none;
padding-bottom: 11px;
}
ul.nice-menu-down ul {
}
ul.nice-menu-down ul li {
clear: both;
}
ul.nice-menu-down li ul li ul {
left: 13.7em; /* LTR */
top: 0;
}
.menu-path-nolink.menuparent span,
ul.nice-menu-down .menuparent a {
}
ul.nice-menu-down > li.menuparent{
padding-right: 10px !important;
background: url("../images/desktop/iconos/arrow_menu_parent.png") no-repeat right center;
background-size: 10px 7px;
}
ul.nice-menu-down > li > .nolink,
ul.nice-menu-down > li > a{
color: #FFFFFF !important;
padding: 0.3em !important;
}
ul.nice-menu-down > li > .nolink:hover,
ul.nice-menu-down > li.menuparent:hover > .nolink,
ul.nice-menu-down > li > a:hover,
ul.nice-menu-down > li.menuparent:hover > a{
color: #EAEAEA !important;
}
ul.nice-menu-down > li > .nolink:hover{
background: none;
}
ul.nice-menu-down li.menuparent {
/* background: #eee url(arrow-down.png) right center no-repeat; /* LTR */
}
ul.nice-menu-down li.menuparent:hover {
/* background: #ccc url(arrow-down.png) right center no-repeat; /* LTR */
}
ul.nice-menu-down li li{
/* background: #eee url(arrow-right.png) right center no-repeat; /* LTR */
margin-left:12px;
}
ul.nice-menu-down li li.menuparent:hover {
/* background: #ccc url(arrow-right.png) right center no-repeat; /* LTR */
}
/******************************
Garland-specific CSS
******************************/
/**
* Global CSS for ALL menu types
*/
ul.nice-menu li {
margin: 0;
padding-left: 0; /* LTR */
background-image: none;
}
#header-region ul.nice-menu li {
margin: 0;
/* Padding rules are needed to deal with Garland's header line-height. */
padding-top: 0.1em;
padding-bottom: 0.1em;
background: #eee;
}
#header-region ul.nice-menu ul {
top: 1.8em;
left: -1px; /* LTR */
border: 0;
border-top: 1px solid #ccc;
margin-right: 0; /* LTR */
}
#header-region ul.nice-menu ul {
top: 1.7em;
}
/**
* HORIZONTAL (down) menus
*/
#header-region ul.nice-menu-down li ul li ul {
left: 12.5em; /* LTR */
top: 0;
}
.nolink{
cursor: default;
}
ul.nice-menu > li.menuparent > ul:before,
ul.nice-menu > li.menuparent > ul:after {
content: '';
position: absolute;
top: -6px;
left: 25%;
margin-top: 0;
width: 0;
height: 0;
border-top: 10px solid transparent;
border-right: 10px solid transparent;
border-left: 10px solid rgba(0,0,0,0);
}
ul.nice-menu > li.menuparent > ul:after {
bottom: -14px;
margin-bottom: -10px;
border-bottom: 10px solid #EAEAEA;
}
以上是关于css 不错的菜单 - 子菜单estandar con flecha superior en los submenus的主要内容,如果未能解决你的问题,请参考以下文章