/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
body{
background: #0F222B;
color: #69CA62;
}
a{
color: #69CA62;
text-decoration: none;
}
.wrap{
max-width: 960px;
margin: 0 auto;
}
.header{
height: 80px;
border-bottom: 1px solid #69CA62;
position: relative;
}
.logo{
float: left;
width: 50px;
height: 50px;
background: #69CA62;
border: 3px solid green;
}
.menu{
float: right;
}
.menu li{
float: left;
}
.menu li a{
display: block;
color: #69CA62;
padding: 1em;
text-decoration: none;
}
.content{
padding: 1em;
line-height: 1.8;
}
.content p{
margin-bottom: 1em;
}
/*在PC上隱藏漢堡選單*/
.showmenu{
display: none;
}
@media (max-width: 767px){
.menu {
/*隱藏選單開始*/
max-height: 0px;
overflow: hidden;
/*隱藏選單結束*/
transition: max-height 2.3s;
margin-top: 1px;
/*絕對定位疊在網頁上*/
position: absolute;
z-index: 100;
/*header 80px+1px boder 線條*/
top: 81px;
left: 0;
right: 0;
background: #0F222B;
}
.menu li{
float: none;
border-bottom: 1px dashed #69CA62;
}
.menu li a{
transition: all 0.3s;
}
.menu li a:hover{
background: #69CA62;
color: #fff;
}
.showmenu{
display: block;
float: right;
margin: 1em;
}
/*jQ點擊後動態在 body 加上 class */
.menu-show .menu{
max-height: 500px
}
}