feat: Underline links for accessebility, add active style for clickable elements, use current year in footer

This commit is contained in:
daudix
2024-01-16 01:03:15 +03:00
parent 2c5fd27b90
commit 8c413a6101
8 changed files with 48 additions and 31 deletions

View File

@ -13,6 +13,7 @@
display: inline-block; display: inline-block;
font-size: 0.9rem; font-size: 0.9rem;
padding: 0.4rem 1rem; padding: 0.4rem 1rem;
text-decoration: none;
transition: var(--transition); transition: var(--transition);
&:hover { &:hover {
@ -20,6 +21,10 @@
text-decoration: none; text-decoration: none;
} }
&:active {
transform: scale(var(--active));
}
&.colored { &.colored {
color: var(--primary-color); color: var(--primary-color);
background-color: transparent; background-color: transparent;

View File

@ -33,6 +33,11 @@ section#comments {
box-shadow: var(--shadow-raised); box-shadow: var(--shadow-raised);
transform: rotate(10deg) scale(1.1); transform: rotate(10deg) scale(1.1);
} }
&:active {
box-shadow: var(--shadow);
transform: scale(var(--active));
}
} }
&.op::after { &.op::after {
@ -63,7 +68,7 @@ section#comments {
.instance { .instance {
background-color: var(--fg-muted-1); background-color: var(--fg-muted-1);
border-radius: 9999px; border-radius: 999px;
color: var(--fg-color); color: var(--fg-color);
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 600; font-weight: 600;

View File

@ -4,10 +4,6 @@
box-shadow: var(--glow); box-shadow: var(--glow);
background: var(--crt-bg); background: var(--crt-bg);
a {
text-decoration: underline;
}
pre { pre {
color: var(--primary-color); color: var(--primary-color);
padding: 1rem 1rem; padding: 1rem 1rem;
@ -44,10 +40,10 @@
width: 100%; width: 100%;
@keyframes scanlines { @keyframes scanlines {
0% { from {
transform: translateY(0px); transform: translateY(0px);
} }
100% { to {
transform: translateY(-8px); transform: translateY(-8px);
} }
} }
@ -57,7 +53,7 @@
animation: blicking 1s infinite; animation: blicking 1s infinite;
@keyframes blicking { @keyframes blicking {
0% { from {
opacity: 1; opacity: 1;
} }
50% { 50% {

View File

@ -130,7 +130,7 @@ a {
color: var(--primary-color); color: var(--primary-color);
cursor: pointer; cursor: pointer;
font-weight: 600; font-weight: 600;
text-decoration: none; text-decoration: underline dotted;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
@ -236,18 +236,18 @@ pre {
} }
kbd { kbd {
background-color: var(--fg-muted-1); background-color: var(--fg-muted-2);
border-radius: var(--rounded-corner-small); border-radius: var(--rounded-corner-small);
box-shadow: inset 0 -2px 0 var(--fg-muted-2), 0 -1px 0 var(--fg-muted-2); box-shadow: inset 0 -2px 0 var(--fg-muted-2), 0 -1px 0 var(--fg-muted-3);
cursor: pointer; cursor: pointer;
display: inline-block; display: inline-block;
font-size: 0.8rem; font-size: 0.8rem;
line-height: normal; line-height: normal;
padding: 2px 6px; padding: 2px 6px;
transition: var(--transition);
// Small nice thingy, keys can be pressed! // Small nice thingy, keys can be pressed!
&:active { &:active {
background-color: var(--fg-muted-2); background-color: var(--fg-muted-3);
box-shadow: inset 0 1px 0 var(--fg-muted-2); box-shadow: inset 0 1px 0 var(--fg-muted-2);
transform: translateY(2px); transform: translateY(2px);
} }
@ -312,4 +312,3 @@ td,
th { th {
padding: 0; padding: 0;
} }

View File

@ -38,6 +38,7 @@
display: inline-block; display: inline-block;
font-weight: 400; font-weight: 400;
padding: 0.4rem 1rem; padding: 0.4rem 1rem;
text-decoration: none;
transform: scale(1); transform: scale(1);
transition: var(--transition); transition: var(--transition);
@ -46,6 +47,10 @@
color: var(--primary-color); color: var(--primary-color);
text-decoration: none; text-decoration: none;
} }
&:active {
transform: scale(var(--active));
}
} }
@media only screen and (max-device-width: 480px) { @media only screen and (max-device-width: 480px) {
@ -57,7 +62,7 @@
@media (min-width: 600px) { @media (min-width: 600px) {
& { & {
border-radius: 9999px; border-radius: 999px;
&-container { &-container {
text-align: left; text-align: left;
@ -70,7 +75,7 @@
} }
a { a {
border-radius: 9999px; border-radius: 999px;
} }
} }
} }

View File

@ -6,14 +6,19 @@
li { li {
display: inline-block; display: inline-block;
margin: 0 0.2rem 0.4rem 0; margin: 0 0.2rem 0.4rem 0;
} transition: var(--transition);
}
.tag { &:active {
transform: scale(var(--active));
}
}
.tag {
background-color: var(--fg-muted-1); background-color: var(--fg-muted-1);
border-radius: 9999px; border-radius: 999px;
color: var(--fg-color); color: var(--fg-color);
padding: 0.25rem 0.75rem; padding: 0.25rem 0.75rem;
text-decoration: none;
transition: var(--transition); transition: var(--transition);
&:hover { &:hover {
@ -25,4 +30,5 @@
&::before { &::before {
content: "#"; content: "#";
} }
}
} }

View File

@ -46,6 +46,7 @@ $glow: 0 0 0 1px color.scale($primary-color, $alpha: -95%),
--yellow-fg: rgb(156, 110, 3); --yellow-fg: rgb(156, 110, 3);
// VARIABLES // VARIABLES
--active: 0.9;
--content-width: 720px; --content-width: 720px;
--drop-shadow: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07)) --drop-shadow: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07))
drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06)); drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));

View File

@ -1,6 +1,6 @@
<footer class="footer"> <footer class="footer">
{% if config.extra.footer.show_copyright %} {% if config.extra.footer.show_copyright %}
<p title="Last built at {{ now() | date(format='%F %R %Z') }}">&copy; {{ config.title }}, 2023</p> <p title="Last built at {{ now() | date(format='%F %R %Z') }}">&copy; {{ config.title }}, {{ now() | date(format="%Y") }}</p>
{% endif %} {% endif %}
{% if config.extra.footer.show_source %} {% if config.extra.footer.show_source %}