D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home5
/
grandhou
/
www
/
css
/
Filename :
navigation.css
back
Copy
@charset "utf-8"; /* Content wrapper */ .wrapper-flush { text-align:left; width: 30%; } /** * Navigation */ .nav { position: fixed; top: 0; width: 30%; z-index: 10000; left: 5.3%; } /** * Nav container * 1. Ensure this slides in below parent * 2. Hide by default * 3. Smoother scrolling experience on iOS */ .nav-container { position: fixed; top: 60px; z-index: 999; overflow-y: auto; visibility: hidden; /* 2 */ width: 100%; height: 100%; min-height: 100%; margin: 0; padding: 0; -webkit-transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1) 0s; transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1) 0s; -webkit-transform: translateX(-100%); -ms-transform: translateX(-100%); transform: translateX(-100%); -webkit-overflow-scrolling: touch; left: 0px; } /* 1. Show when `.is-visible` class is added */ .nav-container.is-visible { visibility: visible; /* 1 */ -webkit-transform: translateX(0); -ms-transform: translateX(0); transform: translateX(0); /* 1 */ } /* Nav toggle */ .nav-toggle { line-height: 1; display: inline-block; padding: 1.25rem 1rem; z-index: 99999999; position: relative; border:none; } .icon-menu section { color: rgba(255,255,255,1.00); font-size: 15px; transform: rotate(-90deg); position: relative;left: -43px; top: 11px; } button { background-color: rgba(0,0,0,0.0); top: 18px; right: 0px; } button:active { border-style:none; } :focus { outline: -webkit-focus-ring-color auto 0px; } .home-top-menu-wrap.fixed button { top: -12px; } /* Nav toggle icon */ .nav-toggle .icon-menu { position: relative; display: inline-block; width: 50px; height:70px; vertical-align: middle; fill: none; transform: scale(0.8); } /* Nav toggle icon lines */ .icon-menu .line { position: absolute; left: 0; display: block; width: 100%; height: 4px; -webkit-transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1.000); transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1.000); -webkit-transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000); transition-timing-function: cubic-bezier(0.645, 0.045, 0.355, 1.000); background-color: #FFFFFF; border-radius: 3px; } #dark.icon-menu .line { background-color: #000; } #dark.icon-menu section { color: #747474; } /* Nav toggle icon line 1 */ .icon-menu .line-1 { top: 0; } /* When active, rotate line 1 to be lefthand part of X */ .is-active .icon-menu .line-1 { -webkit-transform: translateY(8px) translateX(0) rotate(45deg); -ms-transform: translateY(8px) translateX(0) rotate(45deg); transform: translateY(8px) translateX(0) rotate(45deg); top:9px; background-color: #FFF; } .is-active #dark.icon-menu .line { background-color: #fff; } /* Nav toggle icon line 2 */ .icon-menu .line-2 { top: 50%; } /* When active, hide line 2 */ .is-active .icon-menu .line-2 { opacity: 0; } /* Nav toggle icon line 3 */ .icon-menu .line-3 { bottom: 0; top: 16.5px; width: 33px; } /* When active, rotate line 3 to be righthand part of X */ .is-active .icon-menu .line-3 { -webkit-transform: translateY(-8px) translateX(0) rotate(-45deg); -ms-transform: translateY(-8px) translateX(0) rotate(-45deg); transform: translateY(-8px) translateX(0) rotate(-45deg); width: 50px; top:25px; } /* Remove default list styles for menus */ .menu { list-style: none; margin: 0; padding: 0; text-align: left; background-color: none; } /** * 1. Give menu a lighter background than its container * 2. Prevent menu text from being accidentally highlighted */ .nav-menu { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; letter-spacing: 2px; } /* Give menu items a top border */ .nav-menu .menu-item { border-bottom: solid 1px rgba(150,150,150,0.1) } /* Give last menu item a bottom border */ .nav-menu > .menu-item:last-child { border: none; } /* Darker background color on hover, and when toggled */ .nav-menu > .menu-item:hover, .nav-menu > .menu-item.is-active { color: #FFFFFF; } /* 1. Menu links are block level, by default */ .nav-menu .menu-link { display: block; /* 1 */ text-decoration: none; color: #A3A3A3; font-size: 16.5px; padding-top: 0.75; padding-right: 21px; padding-bottom: 1; padding-left: 21px; font-weight: bold; } .nav-menu .menu-link:hover { color: #FFFFFF; } .logowrap.fixed .nav-menu .menu-link { color: #0a1339; } .logowrap.fixed .nav-menu .menu-link:hover { color: #e13b50; } /* 1. Menu items with dropdowns appear clickable */ .has-dropdown { position: relative; cursor: pointer; } /* 1. Parent menu links inlined so you can toggle the dropdown */ .has-dropdown > .menu-link { display: inline-block; } /* 1. Add an icon to menu items that have sub menus */ .has-dropdown:after { font-size: 32px; position: absolute; top: 16px; right: 1rem; bottom: 0; content: "+"; /* 1 */ color: #FFF; } /* 1. Switch icon to n-dash when toggled */ .has-dropdown.is-active:after { content: "\2013"; /* 1 */ } /** * Dropdowns * 1. Hide dropdowns by default */ .nav-dropdown { display: none; } /* 1. Show dropdown when toggled */ .has-dropdown.is-active > .nav-dropdown { display: block; /* 1 */ background-color: #1A1A1D; } /* 2nd level dropdown */ .nav-dropdown .nav-dropdown {} .nav-dropdown .menu-item { } .nav-dropdown .nav-dropdown .menu-item { background-color: #b0b0b0; border-color: #909090; } /* Main content area */ .content { margin-top: 60px; } .content .wrapper { padding: 1rem 0; } @media (max-width:3920px){ .nav-container { background-color: #070704; top: 0px; z-index: 60; width: 40%; padding: 5em; padding-top: 9em; box-sizing: border-box; } .nav-menu .menu-link { padding-top: 1em; padding-bottom: 1em; color: #9F9F9F; } .nav-menu .menu-link:hover { color: #FFFFFF; } } @media (min-width: 3930px) { .nav { } .nav, .nav-container, .nav-container.is-visible { position: static; top: auto; left: auto; z-index: auto; -webkit-transform: translateX(0); -ms-transform: translateX(0); transform: translateX(0); } .nav-container, .nav-container.is-visible { visibility: visible; height: auto; min-height: 0; overflow-y: visible; } .nav-toggle { display: none; } /* 1. Display menu items inline */ .nav-menu > .menu-item, .nav-menu > .menu-item.is-active { display: inline-block; /* 1 */ background-color: transparent; border: 0; } /* Remove bottom border on last child */ .nav-menu > .menu-item:last-child { border: 0; } .nav-menu .menu-item { -webkit-transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out; transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out; } /* Remove +/- icons */ .has-dropdown:after { content: "" !important; } /* Add a caret to top-level menu items that have dropdowns */ .nav-menu > .has-dropdown:after { position: absolute; top: 50%; right: 1rem; width: 0; height: 0; margin-top: -2px; margin-left: -4px; content: ""; border-width: 5px 5px 0 5px; border-style: solid; border-color: #e13b50 transparent transparent transparent; } /* Increase padding to compensate for caret */ .has-dropdown > .menu-link { padding-right: 2rem; } /* Re-style dropdowns for larger screens */ .nav-dropdown { display: block; opacity: 0; position: absolute; top: 100%; width: 200px; margin: 0; padding: 0.5rem 0; background-color: #1c36b0; box-shadow: 0 0 4px hsla(0, 0%, 0%, 0.15); visibility: hidden; -webkit-transition: visibility 0s linear 0.25s, opacity 0.25s linear; transition: visibility 0s linear 0.25s, opacity 0.25s linear; font-size: 14px; } .logowrap.fixed .nav-dropdown { background-color: #E4E4E4; } .has-dropdown:hover > .nav-dropdown { visibility: visible; opacity: 1; -webkit-transition-delay: 0s; transition-delay: 0s; } .nav-dropdown .menu-item { border: 0; } .nav-dropdown .menu-item:hover, .nav-dropdown .nav-dropdown .menu-item:hover { background-color: #0e1242; } .nav-dropdown .nav-dropdown, .nav-dropdown .nav-dropdown .menu-item { background-color: #28476C; } .nav-dropdown .nav-dropdown { z-index: 9998; top: 0; left: 100%; } .content { margin-top: 0; } } @media (max-width:780px){ .nav-container { width: 100%; padding: 2em; padding-top: 5em; } .nav-toggle .icon-menu { transform: scale(0.6);top: -15px; } } @media (max-width:510px){ .home-top-menu-wrap.fixed button { top: -5px; } }