Line 2: | Line 2: | ||
<style> | <style> | ||
html { | html { | ||
+ | height: 100%; | ||
background-color: #f8f8f8; | background-color: #f8f8f8; | ||
+ | } | ||
+ | |||
+ | body { | ||
+ | overflow: hidden; | ||
+ | height: 100%; | ||
+ | width: 100%; | ||
+ | margin: 0 auto; | ||
+ | background-color: #ffffff; | ||
+ | font-family: 'Roboto', sans-serif; | ||
+ | color: #555555; | ||
} | } | ||
Line 18: | Line 29: | ||
position: relative; | position: relative; | ||
cursor: pointer; | cursor: pointer; | ||
− | |||
} | } | ||
.menu:hover .menu-dropdown{ | .menu:hover .menu-dropdown{ | ||
Line 25: | Line 35: | ||
.menu-title { | .menu-title { | ||
+ | white-space:nowrap; | ||
+ | font-size:25px; | ||
display: block; | display: block; | ||
width: 150px; | width: 150px; | ||
height: 40px; | height: 40px; | ||
padding: 12px 0 0; | padding: 12px 0 0; | ||
− | |||
text-align: center; | text-align: center; | ||
color: #ffffff; | color: #ffffff; | ||
Line 35: | Line 46: | ||
text-transform: uppercase; | text-transform: uppercase; | ||
transition: 0.3s background-color; | transition: 0.3s background-color; | ||
− | |||
} | } | ||
− | + | .menu-title:before { | |
− | .menu-title: | + | content: ""; |
− | + | display: block; | |
+ | height: 0; | ||
+ | border-top: 5px solid #9BFEF9; | ||
+ | border-left: 75px solid transparent; | ||
+ | border-right: 75px solid transparent; | ||
+ | border-bottom: 0 solid #dddddd; | ||
+ | position: absolute; | ||
+ | top: 100%; | ||
+ | left: 0; | ||
+ | z-index: 101; | ||
+ | transition: 0.2s 0.2s border-top ease-out, 0.3s border-top-color; | ||
} | } | ||
Line 52: | Line 72: | ||
} | } | ||
+ | .menu-title:after { | ||
+ | content: ""; | ||
+ | display: block; | ||
+ | height: 0; | ||
+ | border-left: 75px solid transparent; | ||
+ | border-right: 75px solid transparent; | ||
+ | border-bottom: 0 solid #ebebeb; | ||
+ | position: absolute; | ||
+ | bottom: 0; | ||
+ | left: 0; | ||
+ | z-index: 101; | ||
+ | transition: 0.2s border-bottom ease-in; | ||
+ | } | ||
.menu:hover > .menu-title:after { | .menu:hover > .menu-title:after { | ||
Line 58: | Line 91: | ||
} | } | ||
− | |||
− | |||
− | |||
.menu-title_2nd:hover { | .menu-title_2nd:hover { | ||
− | background: # | + | background:#C3FBF0; |
} | } | ||
.menu-title_2nd:before { | .menu-title_2nd:before { | ||
− | border-top-color: # | + | border-top-color: #C3FBF0; |
} | } | ||
Line 74: | Line 104: | ||
} | } | ||
− | |||
− | |||
− | |||
.menu-title_3rd:hover { | .menu-title_3rd:hover { | ||
− | background: # | + | background:#DEF8ED; |
} | } | ||
.menu-title_3rd:before { | .menu-title_3rd:before { | ||
− | border-top-color: # | + | border-top-color: #DEF8ED; |
} | } | ||
.menu-title_3rd:hover:before { | .menu-title_3rd:hover:before { | ||
− | border-top-color: # | + | border-top-color:#DEF8ED; |
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 113: | Line 122: | ||
display: none; | display: none; | ||
min-width: 100%; | min-width: 100%; | ||
+ | padding: 15px 0; | ||
position: absolute; | position: absolute; | ||
background: #ebebeb; | background: #ebebeb; | ||
− | z-index: | + | z-index: 1; |
transition: 0.5s padding, 0.5s background; | transition: 0.5s padding, 0.5s background; | ||
− | |||
− | |||
− | |||
} | } | ||
Line 132: | Line 139: | ||
top: 100%; | top: 100%; | ||
left: 0; | left: 0; | ||
− | z-index: | + | z-index: 101; |
transition: 0.5s border-top; | transition: 0.5s border-top; | ||
} | } | ||
Line 138: | Line 145: | ||
.menu:not(:hover) > .menu-dropdown { | .menu:not(:hover) > .menu-dropdown { | ||
padding: 4px 0; | padding: 4px 0; | ||
− | background: # | + | background: #ddddd; |
z-index: 99; | z-index: 99; | ||
} | } | ||
Line 160: | Line 167: | ||
.menu-dropdown > *:hover { | .menu-dropdown > *:hover { | ||
− | background: rgba(0, 0, 0, 0. | + | background: rgba(0, 0, 0, 0.2); |
} | } | ||
Line 174: | Line 181: | ||
} | } | ||
− | .hList{ | + | .hList > * { |
− | + | float: left; | |
} | } | ||
− | nav { | + | .hList > * + * { |
+ | margin-left: 0; | ||
+ | } | ||
+ | nav{ | ||
+ | vertical-align: middle; | ||
height: 100px; | height: 100px; | ||
− | background: linear-gradient(to | + | background: linear-gradient(to left,#FFFFFF,#DCF8EC,#B6FDF2,#9BFEF9); |
box-shadow: 0 6px 12px rgba(0,0,0,0.5),0 12px 32px rgba(0,0,0,0.1); | box-shadow: 0 6px 12px rgba(0,0,0,0.5),0 12px 32px rgba(0,0,0,0.1); | ||
− | + | color:#FFFFFF; | |
− | top: | + | padding-top:60px; |
− | + | } | |
− | + | .logo{ | |
− | + | position: absolute; | |
− | + | top: 0px; | |
− | + | right: 50px; | |
+ | width: 80px; | ||
+ | height: 100px; | ||
} | } | ||
− | |||
− | |||
− | |||
</style> | </style> | ||
</html> | </html> |
Revision as of 09:42, 2 June 2019