You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

221 lines
3.6 KiB

4 years ago
@charset "UTF-8";
* {
padding: 0;
margin: 0;
font-size: 16px;
font-family: "Helvetica Neue", serif;
}
/* 定义好背景 */
/* 配置头部导航 */
.head {
width: 100vw;
height: 80px;
border-bottom: 2px #efefef solid;
}
.menu-logo {
float: left;
padding-left: 40px;
}
.menu-logo .logo {
width: 100px;
height: 80px;
}
/* logo */
/* menu */
.menu-item {
padding-right: 40px;
}
.menu-item ul {
float: right;
list-style: none;
display: block;
}
.menu-item ul li {
margin: 0 30px;
float: left;
line-height: 80px;
}
.menu-item ul li a {
color: #222222;
text-decoration: none;
}
/* checkbox display none*/
4 years ago
#toggler {
4 years ago
display: none;
}
4 years ago
4 years ago
@media all and (max-width: 762px) {
/* 汉堡导航样式 */
4 years ago
.check_button {
4 years ago
width: 40px;
height: 40px;
display: block;
position: relative;
float: right;
right: 45px;
top: 20px;
text-align: center;
cursor: pointer;
}
4 years ago
#toggler {
4 years ago
display: none;
}
/* 设置汉堡导航的导航条 */
4 years ago
.check_button span {
4 years ago
display: block;
height: 2px;
background-color: #000;
position: relative;
transition: transform .9s ease-in-out;
top: 0;
text-align: center;
}
4 years ago
.check_button span:nth-child(2) {
4 years ago
margin-top: 7px;
}
4 years ago
.check_button span:nth-child(3) {
4 years ago
margin-top: 7px;
}
4 years ago
.check_button span:nth-child(4) {
4 years ago
margin-top: 7px;
}
4 years ago
#toggler:checked + label .check_button span:nth-child(1) {
4 years ago
top: 10px;
4 years ago
transition: top .2s;
4 years ago
/*ease-in-out, opacity .8s ease-in-out .4s;*/
height: 1px;
}
4 years ago
#toggler:checked + label .check_button span:nth-child(2) {
4 years ago
top: 6px;
4 years ago
transition: top .3s;
4 years ago
/*ease-in-out, opacity .8s ease-in-out .4s;*/
height: 1px;
}
4 years ago
#toggler:checked + label .check_button span:nth-child(3) {
4 years ago
top: 3px;
4 years ago
transition: top .4s;
4 years ago
/*ease-in-out, opacity .8s ease-in-out .4s;*/
height: 2px;
}
4 years ago
#toggler:checked + label .check_button span:nth-child(4) {
4 years ago
top: 0;
4 years ago
transition: top .6s;
4 years ago
/*ease-in-out, opacity .4s ease-in-out .4s;*/
height: 2px;
}
4 years ago
.menu-item {
background-color: rgba(239, 239, 239, 0.92);
4 years ago
width: 100%;
height: 100vh;
position: absolute;
top: 82px;
left: 0;
transform: scaleY(0);
transition: transform .7s ease-in-out, opacity .2s ease-in-out .2s;
transform-origin: 50% 0;
opacity: 0;
z-index: 100;
padding: 40px 4%;
}
4 years ago
#toggler:checked ~ .menu-item {
4 years ago
transform: scaleY(1);
opacity: 1;
}
4 years ago
/* 定义汉堡导航后的结果。 */
.menu-list {
4 years ago
position: fixed;
left: 0;
}
4 years ago
.menu-list li {
4 years ago
width: 300px;
display: block;
float: left;
border-bottom: 3px #000 solid;
}
}
@media (max-width: 1200px) {
}
/* 定义移动样式 */
4 years ago
.man {
4 years ago
background-color: #f6f6f6;
margin: 0 auto;
width: 90%;
height: 60%;
border-radius: 15px;
overflow: hidden;
4 years ago
box-shadow: 0 4px 6px rgba(0, 0, 0, .12%);
4 years ago
}
4 years ago
.images {
4 years ago
height: 200px;
}
4 years ago
.images img {
4 years ago
width: 100%;
display: block;
height: inherit;
}
4 years ago
.title_content_box h1 {
4 years ago
margin: 10px;
padding: 5px;
display: inline-block;
font-family: "Helvetica Neue", serif;
font-size: 40px;
border-bottom: 1px #000000 solid;
}
4 years ago
[id="text"] p {
4 years ago
margin: 0 10px;
font-weight: bold;
}
4 years ago
4 years ago
/* 定义PC样式 */