Add external link icons
This commit is contained in:
+25
@@ -56,6 +56,14 @@ a {
|
||||
color: var(--ink);
|
||||
text-decoration: underline;
|
||||
}
|
||||
a.external {
|
||||
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath fill='%23fff' stroke='%23000' d='M1.5 4.518h5.982V10.5H1.5z'/%3E%3Cpath fill='%23000' d='M5.765 1H11v5.39L9.427 7.937l-1.31-1.31L5.393 9.35l-2.69-2.688 2.81-2.808L4.2 2.544z'/%3E%3Cpath fill='%23fff' d='m9.995 2.004.022 4.885L8.2 5.07 5.32 7.95 4.09 6.723l2.882-2.88-1.85-1.852z'/%3E%3C/svg%3E%0A");
|
||||
display: inline-block;
|
||||
background-position: center right;
|
||||
background-repeat: no-repeat;
|
||||
background-size: 12px 12px;
|
||||
padding-right: 15px;
|
||||
}
|
||||
header {
|
||||
background: var(--blue);
|
||||
border-bottom: 1px solid #17619f;
|
||||
@@ -91,6 +99,23 @@ header {
|
||||
.nav a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.nav a.external,
|
||||
.footer-links a.external {
|
||||
background-image: none;
|
||||
padding-right: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
.nav a.external::after,
|
||||
.footer-links a.external::after {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
flex: 0 0 12px;
|
||||
transform: translateY(-2px);
|
||||
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.25' d='M1.5 4.5v6h6v-3M4.5 1.5h6v6M10.5 1.5l-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
|
||||
content: "";
|
||||
}
|
||||
.content {
|
||||
max-width: 1140px;
|
||||
width: calc(100% - 40px);
|
||||
|
||||
Reference in New Issue
Block a user