Line 8: | Line 8: | ||
<style> | <style> | ||
+ | * { | ||
+ | box-sizing: border-box; | ||
+ | font-family: "Quicksand", sans-serif; | ||
+ | } | ||
+ | |||
#bodyContent nav { | #bodyContent nav { | ||
border-top: 1px solid #ddd; | border-top: 1px solid #ddd; | ||
Line 19: | Line 24: | ||
#bodyContent .menu { | #bodyContent .menu { | ||
+ | display: -webkit-box; | ||
+ | display: -ms-flexbox; | ||
display: flex; | display: flex; | ||
− | flex-direction: row; | + | -webkit-box-orient: horizontal; |
− | justify-content: space-between; | + | -webkit-box-direction: normal; |
− | + | -ms-flex-direction: row; | |
− | + | flex-direction: row; | |
− | + | -webkit-box-pack: justify; | |
− | + | -ms-flex-pack: justify; | |
− | + | justify-content: space-between; | |
− | + | } | |
− | + | #bodyContent .menu li { | |
− | + | display: block; | |
− | + | list-style-type: none; | |
− | + | text-transform: uppercase; | |
− | + | } | |
− | + | #bodyContent .menu li a { | |
− | + | display: -webkit-box; | |
− | + | display: -ms-flexbox; | |
− | + | display: flex; | |
− | + | text-align: center; | |
− | + | text-decoration: none; | |
− | + | color: #777; | |
− | + | padding: 1rem; | |
+ | } | ||
+ | #bodyContent .menu li a:hover { | ||
+ | background: #777; | ||
+ | color: #fff; | ||
} | } | ||
Line 65: | Line 76: | ||
} | } | ||
− | #bodyContent .sub-menu { | + | #bodyContent .sub-menu li { |
− | + | display: -webkit-box; | |
− | + | display: -ms-flexbox; | |
− | + | display: flex; | |
− | + | padding-right: 2em; | |
− | + | } | |
− | + | #bodyContent .sub-menu li:hover, | |
− | + | #bodyContent .sub-menu li a:hover { | |
− | + | background: #ddd; | |
− | + | color: #777; | |
− | + | ||
} | } | ||
Line 83: | Line 93: | ||
} | } | ||
− | #bodyContent .menu-item-has-children .menu-item-has-children:hover > a:after{ | + | #bodyContent .menu-item-has-children .menu-item-has-children:hover > a:after { |
− | transform: rotate(-90deg); | + | -webkit-transform: rotate(-90deg); |
+ | transform: rotate(-90deg); | ||
+ | -webkit-transition: -webkit-transform 0.5s; | ||
+ | transition: -webkit-transform 0.5s; | ||
transition: transform 0.5s; | transition: transform 0.5s; | ||
+ | transition: transform 0.5s, -webkit-transform 0.5s; | ||
} | } | ||
Revision as of 11:03, 29 October 2017