template/src/main/css/snippets/common.css

89 lines
2.1 KiB
CSS

/* External link icon */
a[target="_blank"]::after {
display: inline-block;
width: 0.7em;
height: 0.7em;
margin-left: 0.25rem;
/* Image from https://icons.getbootstrap.com/icons/box-arrow-up-right/. MIT License. */
mask-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg fill='currentColor' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z' fill-rule='evenodd'/%3E%3Cpath d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z' fill-rule='evenodd'/%3E%3C/svg%3E%0A");
mask-size: cover;
background-repeat: no-repeat no-repeat;
background-position: center center;
background-size: cover;
background-color: var(--primary);
content: "";
}
/* Hide anything */
.hidden {
display: none !important;
}
@media (min-width: 576px) {
.hidden-no-mobile {
display: none;
}
}
@media (max-width: 576px) {
.hidden-on-mobile {
display: none;
}
}
/* Input with button next to it */
.input-with-button {
display: flex;
}
.input-with-button > *:first-child {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.input-with-button > *:not(:first-child) {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
/* Container with table of contents */
@media (min-width: 576px) {
.container-with-toc {
display: grid;
grid-template-columns: 200px auto;
}
}
@media (max-width: 576px) {
.container-with-toc aside {
margin-bottom: var(--block-spacing-vertical);
}
}
/* Noscript */
noscript.fwd-js-notice img {
position: absolute;
}
noscript.fwd-js-notice p {
font-weight: bold;
text-align: center;
}
/* Header */
header a[href="."] {
color: black;
}
/* Footer */
footer.fwd-footer #fwd-footer-version {
float: right;
}