PATH:
home
/
letacommog
/
letaweb
/
protected
/
extensions
/
SmartMenu
/
assets
/
css
/
sm-white
/* --------------------------------------------------------------- Note that styles you apply to the main menu items are inherited by the sub menus items too. If you'd like to avoid this, you could use child selectors (not supported by IE6) - for example: .sm-white > li > a { ... } instead of .sm-white a { ... } ---------------------------------------------------------------*/ /* Menu box ===================*/ .sm-white { background:#fff; } .sm-white-vertical { border-bottom:0; } .sm-white ul { padding:8px 0; background:#8bc7ff; -moz-border-radius:0 4px 4px 4px; -webkit-border-radius:0 4px 4px 4px; border-radius:0 4px 4px 4px; -moz-box-shadow:0 4px 3px rgba(0,0,0,0.25); -webkit-box-shadow:0 4px 3px rgba(0,0,0,0.25); box-shadow:0 4px 3px rgba(0,0,0,0.25); } .sm-white-vertical ul, .sm-white ul ul { -moz-border-radius:4px; -webkit-border-radius:4px; border-radius:4px; } /* Menu items ===================*/ .sm-white a { border-bottom:2px solid #fff; padding:11px 20px 9px 20px; color:#000; font-size:14px; line-height:15px; font-family:Arial,sans-serif; text-decoration:none; } .sm-white a:hover, .sm-white a:focus, .sm-white a:active { border-bottom-color:#035bac; background:#035bac; color:#F6FFED; } .sm-white a.highlighted { border-bottom-color:#0372d8 !important; background:#0372d8; color:#000; -moz-box-shadow:0 4px 3px rgba(0,0,0,0.25); -webkit-box-shadow:0 4px 3px rgba(0,0,0,0.25); box-shadow:0 4px 3px rgba(0,0,0,0.25); } .sm-white-vertical a { -moz-border-radius:4px 0 0 4px; -webkit-border-radius:4px 0 0 4px; border-radius:4px 0 0 4px; } .sm-white-vertical a:hover, .sm-white-vertical a:focus, .sm-white-vertical a:active, .sm-white-vertical a.highlighted { border-bottom-color:#035bac !important; background:#035bac; color:#F6FFED; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } .sm-white ul a { border-bottom:0; padding:10px 20px; font-size:14px; line-height:normal; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0; } .sm-white ul a:hover, .sm-white ul a:focus, .sm-white ul a:active, .sm-white ul a.highlighted { background:#1289f7; color:#F6FFED; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } /* current items - add the class manually to some item or check the "markCurrentItem" script option */ .sm-white a.current, .sm-white a.current:hover, .sm-white a.current:focus, .sm-white a.current:active { border-bottom-color:#8db863; } .sm-white-vertical a.current, .sm-white-vertical a.current:hover, .sm-white-vertical a.current:focus, .sm-white-vertical a.current:active { border-right:2px solid #8db863; border-bottom-color:#fff; } .sm-white ul a.current, .sm-white ul a.current:hover, .sm-white ul a.current:focus, .sm-white ul a.current:active { border-right:0; border-bottom:0; font-weight:bold; } .sm-white a.has-submenu { padding-right:32px; } /* Sub menu indicators ===================*/ .sm-white a span.sub-arrow { position:absolute; right:17px; top:50%; margin-top:-3px; /* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */ width:0; height:0; overflow:hidden; border-top:6px solid #8db863; /* tweak size of the arrow */ border-left:4px dashed transparent; border-right:4px dashed transparent; } .sm-white a:hover span.sub-arrow, .sm-white a:focus span.sub-arrow, .sm-white a:active span.sub-arrow { border-top-color:#F6FFED; } .sm-white a.highlighted span.sub-arrow { border-top-color:#8db863; } .sm-white-vertical a span.sub-arrow, .sm-white ul a span.sub-arrow { right:15px; margin-top:-4px; border-left:6px solid #8db863; /* tweak size of the arrow */ border-top:4px dashed transparent; border-bottom:4px dashed transparent; } .sm-white-vertical a:hover span.sub-arrow, .sm-white-vertical a:focus span.sub-arrow, .sm-white-vertical a:active span.sub-arrow, .sm-white-vertical a.highlighted span.sub-arrow, .sm-white ul a:hover span.sub-arrow, .sm-white ul a:focus span.sub-arrow, .sm-white ul a:active span.sub-arrow, .sm-white ul a.highlighted span.sub-arrow { border-left-color:#F6FFED; border-top-color:transparent; } /* Scrolling arrows containers for tall sub menus - test sub menu: "Sub test" -> "more..." in the default download package ===================*/ .sm-white span.scroll-up, .sm-white span.scroll-down { position:absolute; display:none; visibility:hidden; overflow:hidden; background:#F6FFED; height:20px; /* width and position will be automatically set by the script */ } .sm-white span.scroll-up-arrow, .sm-white span.scroll-down-arrow { position:absolute; top:6px; left:50%; margin-left:-8px; /* we will use one-side border to create a triangle so that we don't use a real background image, of course, you can use a real image if you like too */ width:0; height:0; overflow:hidden; border-bottom:8px solid #8db863; /* tweak size of the arrow */ border-left:6px dashed transparent; border-right:6px dashed transparent; } .sm-white span.scroll-down-arrow { border-top:8px solid #8db863; /* tweak size of the arrow */ border-bottom:0; } /* --------------------------------------------------------------- Responsiveness These will make the sub menus collapsible when the screen width is too small. ---------------------------------------------------------------*/ /* decrease horizontal main menu items left/right padding to avoid wrapping */ @media screen and (max-width: 850px) { .sm-white:not(.sm-white-vertical) > li > a { padding-left:12px; padding-right:12px; } .sm-white:not(.sm-white-vertical) > li > a.has-submenu { padding-right:24px; } .sm-white:not(.sm-white-vertical) a span.sub-arrow { right:9px; } } @media screen and (max-width: 720px) { .sm-white:not(.sm-white-vertical) > li > a { padding-left:6px; padding-right:6px; } .sm-white:not(.sm-white-vertical) > li > a.has-submenu { padding-right:18px; } .sm-white:not(.sm-white-vertical) a span.sub-arrow { right:3px; } } @media screen and (max-width: 640px) { /* The following will make the sub menus collapsible for small screen devices (it's not recommended editing these) */ ul.sm-white{width:auto !important;} ul.sm-white ul{display:none;position:static !important;top:auto !important;left:auto !important;margin-left:0 !important;margin-top:0 !important;width:auto !important;min-width:0 !important;max-width:none !important;} ul.sm-white>li{float:none;} ul.sm-white>li>a,ul.sm-white ul.sm-nowrap>li>a{white-space:normal;} ul.sm-white iframe{display:none;} /* Uncomment this rule to disable completely the sub menus for small screen devices */ /*.sm-white ul, .sm-white span.sub-arrow, .sm-white iframe { display:none !important; }*/ /* Menu box ===================*/ .sm-white { border-top:2px solid #8db863; border-bottom:2px solid #8db863; border-right:0; } .sm-white ul { border:0; padding:0; /* darken the background of the sub menus */ background:rgba(141,184,99,0.2); -moz-border-radius:0 !important; -webkit-border-radius:0 !important; border-radius:0 !important; -moz-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; } /* Menu items ===================*/ .sm-white a { border:0 !important; padding:13px 23px !important; background:transparent !important; color:#000 !important; -moz-border-radius:0 !important; -webkit-border-radius:0 !important; border-radius:0 !important; -moz-box-shadow:none !important; -webkit-box-shadow:none !important; box-shadow:none !important; } .sm-white a.current { font-weight:bold; } /* add some text indentation for the 2+ level sub menu items */ .sm-white ul a { border-left:8px solid transparent !important; } .sm-white ul ul a { border-left:16px solid transparent !important; } .sm-white ul ul ul a { border-left:24px solid transparent !important; } .sm-white ul ul ul ul a { border-left:32px solid transparent !important; } .sm-white ul ul ul ul ul a { border-left:40px solid transparent !important; } /* Sub menu indicators ===================*/ .sm-white a span.sub-arrow { right:auto !important; margin-top:-7px !important; margin-left:-16px !important; border-left:9px solid #8db863 !important; /* tweak size of the arrow */ border-top:6px dashed transparent !important; border-bottom:6px dashed transparent !important; } /* Hide sub indicator when item is expanded - we enable the item link when it's expanded */ .sm-white a.highlighted span.sub-arrow { display:none !important; } /* Items separators ===================*/ .sm-white li { border-top:1px solid rgba(141,184,99,0.2); } .sm-white li:first-child { border-top:0; } }
[+]
..
[-] sm-white.css
[edit]