跳转到内容

Template:沙盒/TemplateStyles/K1ng8766/styles.css

维基百科,自由的百科全书
::selection {
background: #ff9500;
color: #fff;
text-shadow: 0 0 5px #ffd69c, 0 0 10px #ffd69c, 0 0 25px #ffd69c, 0 0 50px #ffd69c, 0 0 100px #ffd69c
}
.button{
    width: 150px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    line-height: 40px;
    color: #000;
    background-color: transparent;
    position: relative;
    transition: all .3s linear;
}
.button > p{
    position: relative;
    z-index: 1;
}
.button::before{
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    box-sizing: border-box;
    border-top: 1px solid #000;
    border-left: 1px solid #000;
    position: absolute;
    top: 0;
    left: 0;
    transition: all .3s linear;
}
.button::after{
    content: "";
    width: 20px;
    height: 20px;
    display: block;
    box-sizing: border-box;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    position: absolute;
    bottom: 0;
    right: 0;
    transition: all .3s ease;
}
.button:hover::before,
.button:hover::after{
    width: 100%;
    height: 100%;
}