wolegca.github.io/css/myui.css

599 lines
9.0 KiB
CSS
Raw Normal View History

2019-09-12 23:48:49 +08:00
* {
touch-action: pan-y;
2019-09-13 22:35:43 +08:00
-webkit-tap-highlight-color: transparent;
box-sizing: border-box
}
body,
html {
margin: 0;
padding: 0;
2019-09-21 16:07:59 +08:00
height: 100%;
2019-09-13 22:35:43 +08:00
}
body {
2019-09-13 23:15:55 +08:00
width: 100%;
2019-09-15 14:27:21 +08:00
z-index: 0;
position: relative;
2019-09-20 22:34:39 +08:00
display: block;
overflow-x: hidden
2019-09-13 22:35:43 +08:00
}
#menu-control {
display: none
}
#blog-title {
color: white;
white-space: nowrap;
position: fixed;
top: 0px;
left: 0px;
text-align: center;
font-size: 24px;
background-color: rgba(25, 25, 25, .9);
width: 100%;
2019-09-13 23:15:55 +08:00
z-index: 4;
2019-09-13 22:35:43 +08:00
cursor: default
}
.menu-container {
display: block;
2019-09-15 14:27:21 +08:00
position: fixed;
/* float: left; */
2019-09-13 22:35:43 +08:00
top: 0;
left: 0;
2019-09-15 15:22:40 +08:00
height: 130%;
2019-09-13 22:35:43 +08:00
width: 0;
padding-top: 50px;
transition: all .2s ease;
overflow: hidden;
2019-09-13 23:15:55 +08:00
background-color: rgba(0, 0, 0, 0.5);
z-index: 2;
2019-09-13 22:35:43 +08:00
box-shadow: 2px 0px 8px black
}
.menu-container ul {
position: relative;
padding: 0;
margin: 0;
top: 30%;
transform: translateY(-50%)
}
.menu-container ul li {
list-style: none;
text-align: center;
white-space: nowrap
}
.menu-container ul li * {
text-decoration: none;
color: white;
display: block;
2019-09-13 22:37:14 +08:00
padding: 4px 0 0;
2019-09-13 22:35:43 +08:00
transition: all .3s ease;
font-size: 24px;
height: 40px;
cursor: pointer
}
.menu-container ul li *:hover {
background-color: rgba(255, 255, 255, .2);
}
.menu-container ul li *:active {
background-color: gray;
}
.menu-container ul>li+li:before {
content: '';
display: block;
height: 1px;
margin: 2px 2px
}
[for=menu-control].menu-button-container {
display: block;
position: fixed;
top: 0;
left: 0;
2019-09-14 16:44:41 +08:00
width: 60px;
2019-09-13 22:35:43 +08:00
height: 30px;
cursor: pointer !important;
2019-09-13 23:15:55 +08:00
z-index: 4;
2019-09-14 17:56:41 +08:00
padding-left: 10px;
2019-10-19 21:56:07 +08:00
padding-top: 2px
2019-09-13 22:35:43 +08:00
}
[for=menu-control].menu-button-container:hover span {
background-color: white;
}
[for=menu-control].content-mask {
display: block;
2019-09-15 14:27:21 +08:00
position: fixed;
2019-09-13 23:15:55 +08:00
width: 100%;
2019-09-15 15:06:21 +08:00
height: 200%;
2019-09-13 22:35:43 +08:00
background-color: rgba(0, 0, 0, .5);
float: left;
z-index: 1;
2019-09-13 23:15:55 +08:00
transition: all .2s ease;
2019-09-13 22:35:43 +08:00
opacity: 0;
2019-09-15 15:02:30 +08:00
visibility: hidden;
2019-10-19 21:56:07 +08:00
top: 0px;
left: 0px
2019-09-13 22:35:43 +08:00
}
2019-09-13 23:15:55 +08:00
#menu-control:checked~label.content-mask {
opacity: 1;
visibility: visible
}
2019-09-13 22:35:43 +08:00
.menu-button span {
width: 44px;
height: 3px;
background-color: #ccc;
display: block;
2019-09-14 16:44:41 +08:00
position: relative;
2019-09-13 22:35:43 +08:00
cursor: pointer;
2019-09-18 22:34:01 +08:00
transition: all .2s ease-in;
2019-10-19 21:56:07 +08:00
top: 0px;
left: 0px
2019-09-18 23:11:41 +08:00
}
2019-10-19 21:56:07 +08:00
.menu-button span:before {
content: '';
2019-09-18 23:11:41 +08:00
display: block;
position: relative;
2019-10-19 21:56:07 +08:00
margin-top: 5px
2019-09-14 16:44:41 +08:00
}
2019-10-19 21:56:07 +08:00
#menu-control:checked~.menu-button-container .menu-button>span:nth-child(1) {
transform: rotate(45deg);
width: 30px;
top: 8px;
left: 2px
2019-09-14 16:44:41 +08:00
}
2019-10-19 21:56:07 +08:00
#menu-control:checked~.menu-button-container .menu-button>span:nth-child(2) {
width: 0px;
left: 20px
2019-09-14 16:44:41 +08:00
}
2019-10-19 21:56:07 +08:00
#menu-control:checked~.menu-button-container .menu-button>span:nth-child(3) {
transform: rotate(-45deg);
width: 30px;
top: -8px;
left: 2px
2019-09-13 22:35:43 +08:00
}
.content-border {
width: 100%;
2019-09-15 15:02:30 +08:00
position: relative;
2019-09-15 14:27:21 +08:00
padding: 50px 20px 25px;
2019-09-18 23:11:41 +08:00
transition: padding .5s ease .1s;
2019-09-15 14:27:21 +08:00
left: 50%;
2019-10-19 21:56:07 +08:00
transform: translateX(-50%)
2019-09-13 22:35:43 +08:00
}
.content {
min-height: 200px;
2019-09-15 14:27:21 +08:00
max-width: 1000px;
2019-09-18 22:34:01 +08:00
background-color: rgba(255, 255, 255, .8);
2019-09-13 22:35:43 +08:00
border-radius: 15px;
opacity: 1;
transition: opacity .5s ease, transform .5s ease;
cursor: default;
padding: 15px;
margin-bottom: 25px;
text-overflow: ellipsis;
z-index: 1;
text-align: center
}
.content:hover {
opacity: 1;
}
.content img {
margin: 0 auto;
max-width: 100%;
max-height: 100%
}
.content p {
font-size: 18px;
text-align: left
}
2019-09-15 14:27:21 +08:00
.content>span {
2019-09-13 22:35:43 +08:00
font-size: 24px;
font-weight: bold
}
2019-09-15 14:27:21 +08:00
.content>span+p:first-letter {
2019-09-13 22:35:43 +08:00
float: left;
font-size: 36px;
font-weight: bold
}
2019-09-15 14:27:21 +08:00
.content>p~p {
2019-09-13 22:35:43 +08:00
text-indent: 36px;
2019-09-12 23:24:39 +08:00
}
2019-09-12 23:48:49 +08:00
.msg-container {
2019-09-12 23:24:39 +08:00
display: block;
2019-09-12 23:48:49 +08:00
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
2019-10-23 02:16:03 +08:00
/* min-height: 150px; */
2019-09-12 23:48:49 +08:00
min-width: 250px;
max-width: 460px;
color: white;
padding-bottom: 40px;
2019-09-12 23:24:39 +08:00
cursor: default;
border-radius: 10px;
2019-09-13 15:52:47 +08:00
box-shadow: 3px 2px 8px rgb(0, 0, 0);
2019-09-12 23:24:39 +08:00
opacity: 0;
2019-09-13 15:52:47 +08:00
animation: fadeIn .3s forwards;
2019-09-12 23:48:49 +08:00
z-index: 999;
2019-09-12 23:24:39 +08:00
text-overflow: ellipsis;
2019-09-15 15:06:21 +08:00
word-break: break-word;
2019-10-23 02:16:03 +08:00
background-color: rgb(50, 50, 50);
2019-09-12 23:24:39 +08:00
}
2019-09-12 23:48:49 +08:00
.msg-header {
display: block;
2019-09-12 23:24:39 +08:00
position: relative;
2019-09-12 23:48:49 +08:00
width: 100%;
2019-09-15 14:27:21 +08:00
min-height: 40px;
2019-09-12 23:48:49 +08:00
background-color: rgb(40, 40, 40);
2019-09-12 23:24:39 +08:00
cursor: move;
border-radius: 10px 10px 0px 0px;
padding: 10px;
text-align: center;
text-overflow: ellipsis;
word-break: break-word
}
2019-09-12 23:48:49 +08:00
.msg-content {
2019-09-12 23:24:39 +08:00
display: block;
position: relative;
2019-09-12 23:48:49 +08:00
width: 100%;
2019-10-23 02:16:03 +08:00
/* min-height: 70px; */
max-height:0px;
/* background-color: rgb(50, 50, 50); */
2019-09-12 23:24:39 +08:00
cursor: default;
2019-09-12 23:48:49 +08:00
padding: 10px;
2019-09-12 23:24:39 +08:00
text-overflow: ellipsis;
2019-10-23 02:16:03 +08:00
word-break: break-word;
animation: msgSlideOut 2s linear forwards,fadeIn .5s linear forwards;
opacity: 0;
overflow: hidden;
2019-09-12 23:24:39 +08:00
}
2019-09-12 23:48:49 +08:00
.msg-footer {
2019-09-12 23:24:39 +08:00
display: block;
position: fixed;
2019-09-12 23:48:49 +08:00
bottom: 0px;
width: 100%;
2019-09-12 23:24:39 +08:00
height: 40px;
2019-09-12 23:48:49 +08:00
background-color: rgb(30, 30, 30);
2019-09-12 23:24:39 +08:00
cursor: default;
border-radius: 0px 0px 10px 10px;
padding: 10px;
text-align: right;
text-overflow: ellipsis;
word-break: break-word
}
2019-09-12 23:48:49 +08:00
.msg-footer span {
2019-09-12 23:24:39 +08:00
cursor: pointer;
2019-09-18 22:34:01 +08:00
transition: all .2s ease;
2019-09-12 23:24:39 +08:00
font-size: 16px;
2019-09-12 23:48:49 +08:00
padding: 3px 8px;
2019-09-12 23:24:39 +08:00
}
2019-09-12 23:48:49 +08:00
.msg-footer span:hover {
color: #ccc
2019-09-12 23:24:39 +08:00
}
2019-09-12 23:48:49 +08:00
.msg-footer span:active {
color: rgb(50, 50, 50)
2019-09-12 23:24:39 +08:00
}
2019-09-13 22:35:43 +08:00
.mask {
2019-09-15 14:27:21 +08:00
position: fixed;
display: block;
2019-09-13 22:35:43 +08:00
width: 100%;
2019-09-15 15:06:21 +08:00
height: 200%;
2019-09-13 22:35:43 +08:00
background-color: rgba(95, 95, 95, 0.7);
z-index: 998;
2019-09-13 15:52:47 +08:00
opacity: 0;
2019-10-19 21:56:07 +08:00
top: 0px;
2019-09-15 14:27:21 +08:00
left: 0px
2019-09-13 13:04:03 +08:00
}
2019-10-23 02:39:12 +08:00
.NotFound {
display: block;
position: absolute;
width:100%;
text-align: center;
top:50%;
transform: translateY(-50%);
color: white;
font-size: 24px;
}
2019-10-19 21:56:07 +08:00
.container {
2019-09-20 22:34:39 +08:00
max-width: 1440px;
2019-10-19 21:56:07 +08:00
margin: 0 auto;
2019-10-23 02:39:12 +08:00
position: relative;
min-height: 100%;
2019-09-20 22:34:39 +08:00
}
2019-10-19 21:56:07 +08:00
.container:before {
content: '';
2019-09-20 22:34:39 +08:00
display: block;
2019-10-19 21:56:07 +08:00
position: fixed;
top: 0px;
left: 0px;
height: 150%;
width: 100%;
2019-09-20 22:34:39 +08:00
background: black url(../images/bg.jpg) no-repeat top;
background-size: cover
}
2019-10-19 21:56:07 +08:00
.clearfix:after {
content: '';
2019-09-20 22:34:39 +08:00
display: block;
2019-10-19 21:56:07 +08:00
height: 0px;
2019-09-20 22:34:39 +08:00
clear: both;
visibility: hidden
}
2019-10-19 21:56:07 +08:00
.sidebar-border {
2019-09-20 22:34:39 +08:00
position: absolute;
2019-10-19 21:56:07 +08:00
left: 0px;
top: 0px;
2019-09-20 22:34:39 +08:00
display: block;
2019-10-19 21:56:07 +08:00
width: 250px;
2019-09-20 22:34:39 +08:00
background-color: transparent;
2019-10-19 21:56:07 +08:00
padding-top: 50px;
overflow-x: hidden;
2019-09-20 22:34:39 +08:00
padding-bottom: 10px;
padding-left: 10px
}
2019-10-19 21:56:07 +08:00
.sidebar {
2019-09-20 22:34:39 +08:00
position: relative;
display: block;
2019-10-19 21:56:07 +08:00
width: 100%;
background-color: rgba(255, 255, 255, .8);
2019-09-20 22:34:39 +08:00
border-radius: 15px;
2019-10-19 21:56:07 +08:00
padding: 15px;
cursor: default
2019-09-20 22:34:39 +08:00
}
2019-10-19 21:56:07 +08:00
.sidebar div:first-child {
2019-09-20 22:34:39 +08:00
font-size: 20px;
font-weight: bold;
margin-bottom: 10px
}
2019-10-19 21:56:07 +08:00
.loading {
2019-09-21 16:07:59 +08:00
display: block;
2019-10-19 21:56:07 +08:00
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100px;
height: 100px;
z-index: 100;
animation: fadeIn .2s ease .5s forwards;
2019-09-21 16:07:59 +08:00
opacity: 0;
}
2019-10-19 21:56:07 +08:00
.loading span {
2019-09-21 16:07:59 +08:00
display: block;
position: absolute;
2019-10-19 21:56:07 +08:00
top: 0px;
2019-09-21 16:07:59 +08:00
left: 45px;
2019-10-19 21:56:07 +08:00
height: 10px;
width: 10px;
background: white;
2019-09-21 16:07:59 +08:00
border-radius: 10px;
transform-origin: 5px 50px;
2019-10-19 21:56:07 +08:00
animation: load 2s cubic-bezier(.6, 0, .4, 1) infinite;
2019-09-21 16:07:59 +08:00
}
2019-10-19 21:56:07 +08:00
.loading span:nth-of-type(1) {
2019-09-21 16:07:59 +08:00
animation-delay: .125s
}
2019-10-19 21:56:07 +08:00
.loading span:nth-of-type(2) {
2019-09-21 16:07:59 +08:00
animation-delay: .250s
}
2019-10-19 21:56:07 +08:00
.loading span:nth-of-type(3) {
2019-09-21 16:07:59 +08:00
animation-delay: .375s
}
2019-10-19 21:56:07 +08:00
.loading span:nth-of-type(4) {
2019-09-21 16:07:59 +08:00
animation-delay: .5s
}
2019-10-19 21:56:07 +08:00
.loading span:nth-of-type(5) {
2019-09-21 16:07:59 +08:00
animation-delay: .625s
}
2019-10-19 21:56:07 +08:00
.loading span:nth-of-type(6) {
2019-09-21 16:07:59 +08:00
animation-delay: .750s
}
2019-10-19 21:56:07 +08:00
.top {
display: block;
position: fixed;
bottom: 10px;
right: 25px;
height: 40px;
width: 40px;
border: 10px;
background: #ccc;
cursor: pointer;
border: 2px solid gray;
transition: border .3s ease;
border-radius: 50%;
opacity: 0;
}
.top:hover {
border: 2px solid white;
}
.topBtn:before {
content: '';
display: block;
position: absolute;
width: 50%;
height: 50%;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) rotate(45deg);
border-left: 5px solid rgb(30, 30, 30);
border-top: 5px solid rgb(30, 30, 30);
}
.topBtn:after {
content: '';
display: block;
position: absolute;
width: 50%;
height: 50%;
top: 80%;
left: 50%;
transform: translate(-50%, -50%) rotate(45deg);
border-left: 5px solid rgb(30, 30, 30);
border-top: 5px solid rgb(30, 30, 30);
}
2019-09-21 16:07:59 +08:00
@keyframes load {
2019-10-19 21:56:07 +08:00
0% {
transform: rotate(0deg)
2019-09-21 16:07:59 +08:00
}
2019-10-19 21:56:07 +08:00
2019-09-21 16:07:59 +08:00
50% {
2019-10-19 21:56:07 +08:00
transform: rotate(360deg);
2019-09-21 16:07:59 +08:00
}
2019-10-19 21:56:07 +08:00
100% {
transform: rotate(360deg);
2019-09-21 16:07:59 +08:00
}
}
2019-09-12 23:24:39 +08:00
@keyframes fadeIn {
2019-09-12 23:48:49 +08:00
from {
opacity: 0
}
to {
opacity: 1
}
2019-09-12 23:24:39 +08:00
}
@keyframes fadeOut {
2019-09-12 23:48:49 +08:00
from {
opacity: 1
}
to {
opacity: 0
}
2019-09-12 23:24:39 +08:00
}
2019-10-23 02:16:03 +08:00
@keyframes msgSlideOut {
from {
max-height: 0px;
}
to {
max-height:760px;
}
}
2019-09-15 15:02:30 +08:00
@media screen and (min-width:700px) {
input#menu-control:checked+div.menu-container {
width: 350px;
left: 0
}
div.content {
margin-left: auto;
margin-right: auto
}
2019-10-19 21:56:07 +08:00
.content-border {
2019-09-15 15:02:30 +08:00
padding-left: 260px;
}
}
2019-09-13 22:35:43 +08:00
@media screen and (max-width:700px) {
body {
width: 100%
}
div.content {
opacity: 1
}
input#menu-control:checked+div.menu-container {
width: 100%;
}
div.content-border {
padding: 50px 5px 25px;
}
2019-10-19 21:56:07 +08:00
.msg-footer span {
display: block;
2019-09-15 15:02:30 +08:00
position: absolute;
2019-10-19 21:56:07 +08:00
height: 100%;
width: 100%;
top: 0px;
left: 0px;
2019-09-15 15:02:30 +08:00
text-align: center;
2019-10-19 21:56:07 +08:00
padding-top: 10px;
2019-09-15 15:02:30 +08:00
border-radius: 0 0 15px 15px
2019-09-13 22:35:43 +08:00
}
2019-10-19 21:56:07 +08:00
.msg-footer span:active {
background-color: black;
2019-09-18 22:34:01 +08:00
border-radius: 0px 0px 10px 13px;
2019-10-19 21:56:07 +08:00
color: white
2019-09-15 14:27:21 +08:00
}
2019-09-20 22:34:39 +08:00
2019-10-19 21:56:07 +08:00
.sidebar-border {
2019-09-20 22:34:39 +08:00
position: relative;
2019-10-19 21:56:07 +08:00
width: 100%;
height: auto;
padding: 0px
2019-09-20 22:34:39 +08:00
}
2019-10-19 21:56:07 +08:00
.sidebar div:nth-of-type(n+1) * {
2019-09-20 22:34:39 +08:00
text-align: center
}
2019-10-19 21:56:07 +08:00
.sidebar div:nth-of-type(n+1) a {
border: 1px solid black;
border-radius: 5px
2019-09-20 22:34:39 +08:00
}
2019-09-13 23:15:55 +08:00
}
@media screen and (max-width:480px) {
.msg-container {
max-width: 250px;
}
2019-09-12 23:24:39 +08:00
}