加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.css 4.08 KB
一键复制 编辑 原始数据 按行查看 历史
yglj 提交于 2022-06-06 13:23 . 602
body:before,
body:after {
content: "";
position: fixed;
left: 50%;
min-width: 250vw;
min-height: 250vw;
background-color: rgb(118, 218, 255);
opacity: .4;
animation-name: rotate;
animation-iteration-count: infinite;
animation-timing-function: linear;
z-index: -1;
}
body:before {
top: 90vh;
border-radius: 42%;
animation-duration: 10s;
}
body:after {
top: 95vh;
opacity: 0.5;
border-radius: 45%;
animation-duration: 10s;
}
@keyframes rotate {
0% {
transform: translate(-50%, 0) rotateZ(0deg);
}
50% {
transform: translate(-50%, -2%) rotateZ(180deg);
}
100% {
transform: translate(-50%, 0%) rotateZ(360deg);
}
}
body {
z-index: 1;
position: relative;
align-items: center;
min-height: 100vh;
margin: 0;
padding: 0;
font-size: 16px;
text-decoration: none;
font-family: new_font;
width: 100%;
height: 100%;
/* background: url("../images/BingWallpaper.jpg") no-repeat center 640px scroll; */
background-size: cover;
transition: all 2s ease-in;
overflow-x: hidden;
}
body:hover {
background-position: center center;
transition: all 2s ease-out;
cursor: wait;
}
@font-face {
font-family: new_font;
src: url("../public/ttf/华康海报体W12\(P\).ttf");
}
.hwbox table {
margin: 100px auto;
padding: auto;
width: 420px;
height: 420px;
text-align: center;
font-size: 16px;
border-spacing: 3px;
box-sizing: border-box;
/* box-shadow:
rgba(242, 164, 249, 0.4) 40px 50px 0px 10px,
rgba(126, 158, 227, 0.3) 80px 90px 0 10px; */
border-radius: 10px;
display: flex;
align-items: center;
justify-content: space-between;
/* flex-wrap: wrap; */
flex-direction: column;
/* background-color: rgba(255, 255, 255, 0.8); */
}
.hwbox table caption {
width: 100%;
font: bolder italic 32px "Arial";
line-height: 60px;
text-shadow: 0.5em 0.5em 5px rgb(166, 167, 167);
border-radius: 5px 5px 25px 25px;
/* background-color: rgba(121, 161, 247, 0.8); */
/* position: relative;
top: -60px; */
}
.hwbox td, th {
height: 60px;
width: 60px;
line-height: 60px;
/* border: 1px solid rgb(236, 235, 235); */
border-radius: 10px;
}
.hwbox td a {
display: inline-block;
width: 3em;
height: 3em;
background-color: rgba(56, 195, 112, 0.2);
line-height: 3em;
vertical-align: middle;
text-decoration: underline wavy coral;
border: 1px solid white;
border-radius: 20px;
color: blue;
}
.hwbox a:link {
text-shadow: -5px 2px 20px plum;
}
.hwbox table td a:visited {
text-decoration-line: none;
}
.hwbox td a:hover {
font-size: 20px;
font-weight: 800;
background-color: rgb(255, 168, 230);
text-decoration: none;
border-radius: 3em;
color: red;
transition: all .2s ease-in;
}
.hwbox td a:active {
color: yellow;
}
.hwbox tr:nth-last-child(3)~tr {
background-color: rgba(255, 165, 0, .2);
}
nav {
display: flex;
width: 100px;
/* height: 300px; */
position: fixed;
/* left: 50%; */
right: 100px;
top: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
nav li {
list-style: none;
margin: 20px;
}
nav ul li a {
cursor: pointer;
width: 100px;
height: 60px;
font-size: 24px;
line-height: 36px;
margin: 10px;
text-decoration: none;
border: 3px dashed rgb(240, 229, 229);
background-color: rgb(93, 64, 69);
border-radius: 15px;
color: gold;
}
#hw-table {
position: relative;
}
/* #hw-table::before, #hw-table::after {
color: #fff;
width: 1.5em;
height: 1.5em;
border-radius: 1.5em;
background-color: rgba(183, 126, 245, 0.2);
font-weight: 1000;
font-size: 36px;
text-align: center;
line-height: 1.5em;
position: absolute;
}
#hw-table::before{
content: "<";
left: 0;
z-index: 10;
}
#hw-table::after {
content: ">";
right: 0;
z-index: 10;
} */
nav li a:nth-child(1):active #April {
background-color: red;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化