cs2.tinysites.com/assets/style/components/main.css

268 lines
4.3 KiB
CSS

a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
sub,
img,
code,
span,
label,
small {
color: var(--f-color);
font-family: var(--p-font);
font-weight: 400;
padding: 0;
margin: 0;
}
h1 {
font-size: 5rem;
}
h2 {
font-size: 3.25rem;
}
h3 {
font-size: 2rem;
}
h4 {
font-size: 1.625rem;
}
h5 {
font-size: 1.125rem;
}
h6 {
font-size: 1rem;
}
a {
text-decoration: none;
text-underline-offset: .05rem;
}
.input {
label {
display: block;
font-size: 1rem;
font-weight: 400;
}
input {
width: 100%;
color: var(--f-color);
background: var(--i-color);
font-family: var(--p-font);
font-size: 1rem;
font-weight: 400;
line-height: 1.25rem;
padding: .75rem 1rem;
border: .15rem solid var(--i-color);
border-radius: var(--radius);
outline: none;
box-shadow: none;
&::placeholder {
color: var(--fq-color);
font-family: var(--p-font);
}
}
}
.input.border input {
border: .15rem solid var(--ib-color);
&:focus {
border-color: var(--if-color);
}
}
.input.search {
position: relative;
input {
padding: .75rem 1rem .75rem 2.5rem;
}
.icon-search {
position: absolute;
left: 0;
color: var(--fq-color);
font-size: 1.25rem;
margin: .9rem 0 0 .75rem;
}
}
/*
.button {
color: var(--fs-color);
display: block;
font-size: 1.1rem;
font-weight: 600;
border: .15rem solid var(--br-color);
border-radius: var(--radius-full);
padding: .75rem 1.15rem .75rem 1.15rem;
margin: 0;
text-align: center;
span {
color: var(--fs-color);
font-weight: 400;
}
&:hover {
background: var(--brh-color);
}
}
*/
.button {
display: inline-block;
font-size: 1.1rem;
font-weight: 500;
span {
color: var(--fs-color);
font-weight: 400;
}
}
.button {
color: var(--f-color);
background: var(--btn-bg);
font-size: 1rem;
font-weight: 600;
padding: .55rem .85rem .65rem .85rem;
margin: 0;
border: .15rem solid var(--s-color);
border-radius: var(--radius);
text-align: center;
cursor: pointer;
&:hover {
background: var(--btn-hover);
border-color: var(--btn-hover);
}
}
.skeleton {
position: relative;
background: linear-gradient(to right, var(--b-color) 15%, var(--bs-color) 35%, var(--b-color) 50%);
background-size: 1000px 640px;
animation-duration: 1.8s;
animation-fill-mode: forwards;
animation-iteration-count: infinite;
animation-name: shimmer;
animation-timing-function: ease-in;
}
@keyframes shimmer{
0%{
background-position: -468px 0
}
100%{
background-position: 468px 0
}
}
[data-tooltip]::before,
[data-tooltip]::after {
transition: opacity .15s ease-in-out, transform .15s ease-in-out;
transition-delay: .5s;
pointer-events: none;
visibility: hidden;
opacity: 0;
z-index: 999;
}
[data-tooltip]::before {
content: attr(data-tooltip);
position: absolute;
background: var(--q-color);
height: fit-content;
font-size: .925rem;
font-weight: 500;
padding: .25rem .5rem;
border: .15rem solid var(--q-color);
border-radius: var(--radius);
white-space: nowrap;
}
[data-tooltip]:after {
content: " ";
position: absolute;
border-right: .25rem solid transparent;
border-left: .25rem solid transparent;
}
.up[data-tooltip]::before {
bottom: 2.1rem;
left: -.25rem;
}
.up[data-tooltip]:after {
top: -.85rem;
left: .35rem;
border-top: .25rem solid var(--q-color);
}
.down[data-tooltip]::before {
top: 1.9rem;
left: 50%;
transform: translateX(-50%);
}
.down[data-tooltip]:after {
top: 1.65rem;
left: .45rem;
border-bottom: .25rem solid var(--q-color);
}
[data-tooltip]:hover:before,
[data-tooltip]:hover:after {
visibility: visible;
opacity: 1;
}
.loading {
max-width: 6rem;
margin: 2rem auto;
.square {
animation: loading 1.5s cubic-bezier(0.17, 0.37, 0.43, 0.67) infinite;
}
.square {
width: 1.25rem;
height: 1.25rem;
background-color: var(--s-color);
border-radius: 0.25rem;
}
}
@keyframes loading {
0% {
transform: translate(0, 0) rotate(0deg);
}
50% {
transform: translate(70px, 0) rotate(360deg);
}
100% {
transform: translate(0, 0) rotate(0deg);
}
}
.dots {
background: -webkit-radial-gradient(#084f2d63 .05rem, transparent .05rem), var(--s-color);
background-position: 0 0;
background-size: .75rem .75rem;
}