Student-Attendance-Management/target/classes/static/css/button.css
2025-12-09 17:36:07 +08:00

232 lines
5.0 KiB
CSS

button[name="cssbutton"] {
position: relative;
margin: 0;
padding: 5px 12px;
height: 60px;
width: 100px;
outline: none;
text-decoration: none;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
text-transform: uppercase;
background-color: #ffffff;
border: 1px solid rgba(22, 76, 167, 0.6);
border-radius: 10px;
color: #1d89ff;
font-weight: 400;
font-size: 20px;
font-family: inherit;
z-index: 0;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}
button[name="cssbutton"] span {
color: #164ca7;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.7px;
}
button[name="cssbutton"]:hover {
animation: rotate 0.7s ease-in-out both;
}
button[name="cssbutton"]:hover span {
animation: storm 0.7s ease-in-out both;
animation-delay: 0.06s;
}
button[name="layerbutton"] {
position: relative;
margin: 0 auto;
padding: 5px 12px;
height: 30px;
width: 150px;
outline: none;
text-decoration: none;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
text-transform: uppercase;
background-color: #ffffff;
border: 1px solid rgba(22, 76, 167, 0.6);
border-radius: 10px;
color: #1d89ff;
font-weight: 400;
font-size: 20px;
font-family: inherit;
z-index: 0;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}
button[name="layerbutton"] span {
color: #164ca7;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.7px;
}
button[name="layerbutton"]:hover {
animation: rotate 0.7s ease-in-out both;
}
button[name="layerbutton"]:hover span {
animation: storm 0.7s ease-in-out both;
animation-delay: 0.06s;
}
button[name="tablebutton"] {
position: relative;
margin: 0 auto;
padding: 5px 12px;
height: 25px;
outline: none;
text-decoration: none;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
text-transform: uppercase;
background-color: #ffffff;
border: 1px solid rgba(22, 76, 167, 0.6);
border-radius: 10px;
color: #1d89ff;
font-weight: 400;
font-size: 20px;
font-family: inherit;
z-index: 0;
overflow: hidden;
transition: all 0.3s cubic-bezier(0.02, 0.01, 0.47, 1);
}
button[name="tablebutton"] span {
color: #164ca7;
font-size: 12px;
font-weight: 500;
letter-spacing: 0.7px;
}
button[name="tablebutton"]:hover {
animation: rotate 0.7s ease-in-out both;
}
button[name="tablebutton"]:hover span {
animation: storm 0.7s ease-in-out both;
animation-delay: 0.06s;
}
@keyframes rotate {
0% {
transform: rotate(0deg) translate3d(0, 0, 0);
}
25% {
transform: rotate(3deg) translate3d(0, 0, 0);
}
50% {
transform: rotate(-3deg) translate3d(0, 0, 0);
}
75% {
transform: rotate(1deg) translate3d(0, 0, 0);
}
100% {
transform: rotate(0deg) translate3d(0, 0, 0);
}
}
@keyframes storm {
0% {
transform: translate3d(0, 0, 0) translateZ(0);
}
25% {
transform: translate3d(4px, 0, 0) translateZ(0);
}
50% {
transform: translate3d(-3px, 0, 0) translateZ(0);
}
75% {
transform: translate3d(2px, 0, 0) translateZ(0);
}
100% {
transform: translate3d(0, 0, 0) translateZ(0);
}
}
.btn-pill:before, .btn-pill:after {
position: absolute;
right: 0;
bottom: 0;
width: 100px;
height: 100px;
border-radius: 50%;
background: #1d89ff;
content: "";
opacity: 0;
transition: transform 0.15s cubic-bezier(0.02, 0.01, 0.47, 1), opacity 0.15s cubic-bezier(0.02, 0.01, 0.47, 1);
z-index: -1;
transform: translate(100%, -25%) translate3d(0, 0, 0);
}
.btn-pill:hover:before, .btn-pill:hover:after {
opacity: 0.15;
transition: transform 0.2s cubic-bezier(0.02, 0.01, 0.47, 1), opacity 0.2s cubic-bezier(0.02, 0.01, 0.47, 1);
}
.btn-pill:hover:before {
transform: translate3d(50%, 0, 0) scale(0.9);
}
.btn-pill:hover:after {
transform: translate(50%, 0) scale(1.1);
}
.btn-shine {
border: 1px solid;
overflow: hidden;
position: relative;
}
.btn-shine span {
z-index: 20;
}
.btn-shine:after {
background: #38ef7d;
content: "";
height: 155px;
left: -75px;
opacity: 0.4;
position: absolute;
top: -50px;
transform: rotate(35deg);
transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
width: 50px;
z-index: -10;
}
.btn-shine:hover:after {
left: 120%;
transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1);
}
.btn-slide-line.center:after {
left: 50%;
}
.btn-slide-line:after {
position: absolute;
right: 0;
left: auto;
transition: 0.3s;
content: "";
width: 0;
bottom: 0;
height: 3px;
background: #164ca7;
}
.btn-slide-line:hover {
cursor: pointer;
}
.btn-slide-line:hover:after {
width: 100%;
left: 0;
}
.inspire a {
text-decoration: none;
}