blog/themes/mytheme/assets/css/common/footer.css

59 lines
966 B
CSS

.footer,
.top-link {
font-size: 10px;
color: var(--secondary);
}
.footer {
max-width: calc(var(--main-width) + var(--gap) * 2);
margin: auto;
padding: calc((var(--footer-height) - var(--gap)) / 2) var(--gap);
text-align: center;
line-height: 18px;
}
.footer span {
margin-inline-start: 1px;
margin-inline-end: 1px;
}
.footer span:last-child {
white-space: nowrap;
}
.footer a {
color: var(--primary);
}
.footer a:hover {
text-decoration: underline;
}
.top-link {
visibility: hidden;
position: fixed;
bottom: 30px;
right: 30px;
z-index: 99;
width: 32px;
height: 32px;
border: none;
outline: none;
background-color: var(--tertiary);
color: black;
cursor: pointer;
padding: 8px;
border-radius: 5px;
transition: visibility 0.5s, opacity 0.8s linear;
}
.footer a:hover,
.top-link:hover {
color: var(--primary);
}
.top-link:focus,
#theme-toggle:focus {
outline: 0;
}