|
.btn { |
|
position: relative; |
|
display: inline-flex; |
|
justify-content: center; |
|
align-items: center; |
|
padding: 0 1.25rem; |
|
margin: 0; |
|
border: 0.0625rem solid var(--text-secondary); |
|
height: 2.25rem; |
|
line-height: 2.25rem; |
|
font-size: 0.9375rem; |
|
text-decoration: none; |
|
color: var(--text-secondary); |
|
border-radius: 1.125rem; |
|
|
|
white-space: nowrap; |
|
cursor: pointer; |
|
|
|
|
|
&:not(.disabled):hover { |
|
border-color: var(--text-hover-secondary); |
|
color: var(--text-hover-secondary); |
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
&.secondary { |
|
color: #fff; |
|
background-color: var(--text-secondary); |
|
|
|
&:not(.disabled):hover { |
|
border-color: var(--text-hover-secondary); |
|
background: var(--text-hover-secondary); |
|
color: #fff; |
|
} |
|
} |
|
} |
|
|
|
.spinner { |
|
font-size: 10px; |
|
|
|
margin-right: 1em; |
|
width: 1.5em; |
|
height: 1.5em; |
|
border-radius: 50%; |
|
background: #ffffff; |
|
background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0) 42%); |
|
position: relative; |
|
animation: load3 1.4s infinite linear; |
|
transform: translateZ(0); |
|
|
|
&:before { |
|
width: 50%; |
|
height: 50%; |
|
background: #ffffff; |
|
border-radius: 100% 0 0 0; |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
content: ''; |
|
} |
|
|
|
&:after { |
|
background: var(--text-secondary); |
|
width: 75%; |
|
height: 75%; |
|
border-radius: 50%; |
|
content: ''; |
|
margin: auto; |
|
position: absolute; |
|
top: 0; |
|
left: 0; |
|
bottom: 0; |
|
right: 0; |
|
} |
|
} |
|
|
|
@keyframes load3 { |
|
0% { |
|
transform: rotate(0deg); |
|
} |
|
100% { |
|
transform: rotate(360deg); |
|
} |
|
} |
|
|
|
.disabled { |
|
cursor: not-allowed; |
|
|
|
&:after { |
|
content: ""; |
|
position: absolute; |
|
width: 100%; |
|
height: 100%; |
|
background: #4f4f4f; |
|
border: 0.0625rem solid #4f4f4f; |
|
border-radius: 1.125rem; |
|
opacity: 0.5; |
|
box-sizing: content-box; |
|
} |
|
} |
|
|
|
|