wolegca.github.io/index.css

113 lines
1.7 KiB
CSS
Raw Normal View History

2019-09-12 01:30:49 +08:00
body,
2019-09-09 17:19:35 +08:00
html {
margin: 0;
padding: 0;
2019-09-12 10:29:44 +08:00
height: 100%;
overflow: hidden;
2019-09-09 17:19:35 +08:00
}
body {
2019-09-12 01:30:49 +08:00
background: url(star-catcher-astronaut-catching-stars-for-research-astronaut.jpg) no-repeat center;
2019-09-09 17:19:35 +08:00
background-size: cover;
2019-09-12 01:30:49 +08:00
width: 200%;
2019-09-09 17:57:54 +08:00
}
2019-09-12 01:30:49 +08:00
input#menu-control {
display: none
2019-09-09 17:57:54 +08:00
}
2019-09-12 01:30:49 +08:00
div.menu-container {
2019-09-09 17:57:54 +08:00
display: block;
2019-09-12 01:30:49 +08:00
position: relative;
float: left;
top: 0;
left: 0;
height: 100%;
width: 0;
box-sizing: border-box;
padding-top: 50px;
transition: all .5s ease;
overflow: hidden
}
div.menu-container ul {
position: relative;
padding: 0;
margin: 0;
top: 30%;
transform: translateY(-50%)
}
div.menu-container ul li {
2019-09-09 18:00:48 +08:00
list-style: none;
2019-09-12 01:30:49 +08:00
text-align: center;
white-space: nowrap
2019-09-09 18:11:41 +08:00
}
2019-09-12 01:30:49 +08:00
div.menu-container ul li a {
text-decoration: none;
color: #fff;
display: block;
padding: 8px 0 0;
transition: all .5s ease;
font-size: 24px;
height: 40px
}
div.menu-container ul li a:hover {
background-color: rgba(255, 0, 0, .5)
}
div.menu-container ul>li+li:before {
content: '';
display: block;
height: 1px;
margin: 2px 2px
}
label[for=menu-control] {
display: block;
position: fixed;
top: 0;
left: 0;
width: 50px;
height: 30px;
cursor: pointer
}
div.menu-button span {
width: 44px;
height: 3px;
background-color: #ccc;
display: block;
margin: 5px 0 0 3px
}
input#menu-control:checked+div.menu-container {
width: 350px;
left: 0
}
div.content-border {
width: 50%;
height: 100%;
float: left;
2019-09-09 18:15:12 +08:00
box-sizing: border-box;
2019-09-12 01:30:49 +08:00
padding: 50px 50px 25px;
overflow-y:scroll
}
div.content {
height: 200px;
background-color: #fff;
border-radius: 15px;
opacity: .5;
animation: anim-content .5s;
transition: opacity .5s ease;
cursor: pointer;
padding: 15px
2019-09-09 18:11:41 +08:00
}
2019-09-12 01:30:49 +08:00
div.content:hover {
opacity: 1
2019-09-09 17:19:35 +08:00
}