wolegca.github.io/index.css

233 lines
3.5 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%;
2019-09-12 11:02:34 +08:00
overflow: hidden
2019-09-09 17:19:35 +08:00
}
body {
2019-09-12 15:58:47 +08:00
background: black url(bg.jpg) no-repeat center;
2019-09-09 17:19:35 +08:00
background-size: cover;
2019-09-12 13:37:38 +08:00
width: 200%;
2019-09-12 15:58:47 +08:00
z-index: 0
2019-09-09 17:57:54 +08:00
}
2019-09-12 15:58:47 +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;
2019-09-13 15:52:47 +08:00
transition: all .2s ease;
2019-09-12 13:37:38 +08:00
overflow: hidden;
2019-09-12 18:04:02 +08:00
background-color: rgba(0, 0, 0, 0.8);
z-index: 1;
box-shadow: 2px 0px 8px black
2019-09-12 01:30:49 +08:00
}
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 14:10:51 +08:00
div.menu-container ul li * {
2019-09-12 01:30:49 +08:00
text-decoration: none;
2019-09-12 18:04:02 +08:00
color: white;
2019-09-12 01:30:49 +08:00
display: block;
padding: 8px 0 0;
2019-09-12 18:04:02 +08:00
transition: all .3s ease;
2019-09-12 01:30:49 +08:00
font-size: 24px;
2019-09-12 14:10:51 +08:00
height: 40px;
cursor: pointer
2019-09-12 01:30:49 +08:00
}
2019-09-12 14:10:51 +08:00
div.menu-container ul li *:hover {
2019-09-12 18:04:02 +08:00
background-color: rgba(255, 255, 255, .2);
/*color: black*/
2019-09-12 01:30:49 +08:00
}
2019-09-13 15:52:47 +08:00
div.menu-container ul li *:active {
background-color: gray;
}
2019-09-12 01:30:49 +08:00
div.menu-container ul>li+li:before {
content: '';
display: block;
height: 1px;
margin: 2px 2px
}
2019-09-12 13:37:38 +08:00
label[for=menu-control].menu-button-container {
2019-09-12 01:30:49 +08:00
display: block;
position: fixed;
top: 0;
left: 0;
width: 50px;
height: 30px;
2019-09-12 15:58:47 +08:00
cursor: pointer !important;
z-index: 3;
2019-09-12 15:30:10 +08:00
}
label[for=menu-control].menu-button-container:hover span {
2019-09-12 15:58:47 +08:00
background-color: white;
2019-09-12 13:37:38 +08:00
}
2019-09-12 15:58:47 +08:00
label[for=menu-control].content-mask {
2019-09-12 13:37:38 +08:00
display: block;
position: relative;
2019-09-12 15:58:47 +08:00
width: 50%;
height: 100%;
2019-09-12 18:04:02 +08:00
background-color: rgba(0, 0, 0, .5);
2019-09-12 13:37:38 +08:00
float: left;
z-index: 1;
2019-09-12 15:58:47 +08:00
transition: all .5s ease;
2019-09-12 13:37:38 +08:00
opacity: 0;
visibility: hidden
2019-09-12 01:30:49 +08:00
}
div.menu-button span {
width: 44px;
height: 3px;
background-color: #ccc;
display: block;
2019-09-12 14:10:51 +08:00
margin: 5px 0 0 3px;
2019-09-12 15:58:47 +08:00
cursor: pointer;
2019-09-12 15:30:10 +08:00
transition: all .5s ease;
2019-09-12 01:30:49 +08:00
}
div.content-border {
2019-09-12 13:37:38 +08:00
width: 100%;
2019-09-12 01:30:49 +08:00
height: 100%;
2019-09-12 13:37:38 +08:00
position: absolute;
2019-09-09 18:15:12 +08:00
box-sizing: border-box;
2019-09-12 01:30:49 +08:00
padding: 50px 50px 25px;
2019-09-12 23:24:39 +08:00
overflow-y: scroll;
transition:padding .5s ease
2019-09-12 01:30:49 +08:00
}
div.content {
2019-09-12 11:02:34 +08:00
min-height: 200px;
max-width: 800px;
2019-09-12 23:24:39 +08:00
background-color: rgba(255, 255, 255, .5);
2019-09-12 01:30:49 +08:00
border-radius: 15px;
2019-09-12 18:04:02 +08:00
opacity: 1;
2019-09-12 15:58:47 +08:00
transition: opacity .5s ease, transform .5s ease;
2019-09-12 23:24:39 +08:00
cursor: default;
2019-09-12 11:02:34 +08:00
padding: 15px;
2019-09-12 13:37:38 +08:00
margin-bottom: 25px;
2019-09-12 15:58:47 +08:00
text-overflow: ellipsis;
2019-09-12 15:30:10 +08:00
z-index: 1;
text-align: center
2019-09-09 18:11:41 +08:00
}
2019-09-12 01:30:49 +08:00
div.content:hover {
2019-09-12 11:02:34 +08:00
opacity: 1;
}
2019-09-12 15:58:47 +08:00
div.content img {
margin: 0 auto;
2019-09-12 15:30:10 +08:00
max-width: 100%;
max-height: 100%
}
2019-09-12 15:58:47 +08:00
div.content p {
2019-09-12 15:30:10 +08:00
font-size: 18px;
text-align: left
}
2019-09-12 15:58:47 +08:00
div.content span {
2019-09-12 15:30:10 +08:00
font-size: 24px;
font-weight: bold
}
2019-09-12 15:58:47 +08:00
div.content span+p:first-letter {
2019-09-12 15:30:10 +08:00
float: left;
font-size: 36px;
font-weight: bold
}
2019-09-12 15:58:47 +08:00
div.content p~p {
2019-09-12 15:30:10 +08:00
text-indent: 36px;
}
2019-09-12 15:58:47 +08:00
input#menu-control:checked~label.content-mask {
2019-09-12 13:37:38 +08:00
opacity: 1;
visibility: visible
}
2019-09-12 11:02:34 +08:00
@media screen and (max-width:700px) {
2019-09-12 15:58:47 +08:00
body {
width: 100%
}
2019-09-12 16:04:59 +08:00
div.content {
opacity:1
}
2019-09-12 11:02:34 +08:00
input#menu-control:checked+div.menu-container {
2019-09-12 15:58:47 +08:00
width: 100%;
}
input#menu-control:checked~label.content-mask {
opacity: 0;
visibility: hidden
2019-09-12 15:44:32 +08:00
}
2019-09-12 15:58:47 +08:00
div.content-border {
2019-09-12 15:44:32 +08:00
padding: 50px 5px 25px;
2019-09-12 11:02:34 +08:00
}
}
@media screen and (min-width:700px) {
input#menu-control:checked+div.menu-container {
width: 350px;
left: 0
}
div.content {
2019-09-12 15:58:47 +08:00
margin-left: auto;
margin-right: auto
2019-09-12 11:02:34 +08:00
}
2019-09-12 19:04:10 +08:00
/* div.content:hover {
2019-09-12 15:58:47 +08:00
transform: scale(1.01)
2019-09-12 19:04:10 +08:00
} */
2019-09-12 11:06:33 +08:00
}
2019-09-12 15:58:47 +08:00
* {
2019-09-12 11:06:33 +08:00
-webkit-tap-highlight-color: transparent
2019-09-12 13:37:38 +08:00
}
2019-09-12 15:58:47 +08:00
#blog-title {
color: white;
2019-09-12 13:37:38 +08:00
white-space: nowrap;
position: fixed;
2019-09-12 15:58:47 +08:00
top: 0px;
left: 0px;
2019-09-12 13:37:38 +08:00
text-align: center;
font-size: 24px;
2019-09-12 15:58:47 +08:00
background-color: rgba(25, 25, 25, .9);
width: 100%;
z-index: 2;
2019-09-12 14:10:51 +08:00
cursor: default
2019-09-12 15:58:47 +08:00
}