added hover symbols to page titles
This commit is contained in:
parent
bafe70ed37
commit
c33acfa1c8
2 changed files with 88 additions and 23 deletions
|
@ -1,4 +1,5 @@
|
|||
:root {
|
||||
--main-placeholder-color: #b14242;
|
||||
--main-text-color: #b4b4b4;
|
||||
--main-text-opaque-color: rgba(180, 180, 180, 0.8);
|
||||
--main-bg-color: #121212;
|
||||
|
@ -33,21 +34,65 @@ header {
|
|||
|
||||
.post-nav {
|
||||
font-family: monospace;
|
||||
font-size: 0.95em;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.post-nav .bar {
|
||||
position: relative;
|
||||
bottom: 0.05em;
|
||||
display: inline-block;
|
||||
width: 1px;
|
||||
height: 0.8em;
|
||||
background-color: currentColor;
|
||||
vertical-align: middle;
|
||||
margin: 0 0.3em;
|
||||
}
|
||||
|
||||
.post-nav .placeholder {
|
||||
color: var(--main-placeholder-color);
|
||||
}
|
||||
|
||||
.post-nav .symbol {
|
||||
color: var(--main-bullet-color);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.post-nav a {
|
||||
margin: 0 2px;
|
||||
.site-logo.hover-symbol::before {
|
||||
content: "@";
|
||||
}
|
||||
|
||||
.site-logo {
|
||||
.title.hover-symbol::before {
|
||||
content: ">";
|
||||
color: var(--main-bullet-color);
|
||||
}
|
||||
|
||||
.hover-symbol {
|
||||
color: inherit;
|
||||
position: relative;
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
/* font-size: 1.75rem;*/
|
||||
}
|
||||
|
||||
.hover-symbol::before {
|
||||
font-family: monospace;
|
||||
content: "#";
|
||||
position: absolute;
|
||||
right: 100%;
|
||||
margin-right: 0.25em;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.hover-symbol:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
.hover-symbol:hover {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.toclink {
|
||||
|
@ -111,6 +156,11 @@ h1 {
|
|||
font-family: monospace;
|
||||
}
|
||||
|
||||
.title a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
article h1:first-of-type {
|
||||
margin-block-start: 1.67rem;
|
||||
}
|
||||
|
@ -164,30 +214,45 @@ li::marker {
|
|||
/* Change this to your desired color */
|
||||
}
|
||||
|
||||
/*a {*/
|
||||
/* color: var(--main-link-color);*/
|
||||
/* text-decoration: none;*/
|
||||
/* position: relative;*/
|
||||
/*}*/
|
||||
|
||||
/*a::after {*/
|
||||
/* content: "";*/
|
||||
/* position: absolute;*/
|
||||
/* left: 0;*/
|
||||
/* bottom: -2px;*/
|
||||
/* width: 100%;*/
|
||||
/* height: 1px;*/
|
||||
/* background-color: currentColor;*/
|
||||
/* transform: scaleX(0);*/
|
||||
/* transform-origin: center;*/
|
||||
/* transition: transform 0.1s ease;*/
|
||||
/*}*/
|
||||
|
||||
/*a:hover::after {*/
|
||||
/* transform: scaleX(1);*/
|
||||
/*}*/
|
||||
/*a:has(> code)::after {*/
|
||||
/* display: none;*/
|
||||
/*}*/
|
||||
|
||||
a {
|
||||
color: var(--main-link-color);
|
||||
text-decoration: none;
|
||||
position: relative;
|
||||
text-decoration: underline;
|
||||
text-decoration-color: rgba(0, 0, 0, 0);
|
||||
text-underline-offset: 2px; /* Optional: tweak spacing */
|
||||
}
|
||||
|
||||
a::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
bottom: -2px;
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background-color: currentColor;
|
||||
transform: scaleX(0);
|
||||
transform-origin: center;
|
||||
transition: transform 0.1s ease;
|
||||
a {
|
||||
transition: text-decoration-color 0.15s ease;
|
||||
}
|
||||
|
||||
a:hover::after {
|
||||
transform: scaleX(1);
|
||||
}
|
||||
a:has(> code)::after {
|
||||
display: none;
|
||||
a:hover {
|
||||
text-decoration-color: currentColor;
|
||||
}
|
||||
|
||||
max-width: 100%;
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
<center><h1 class="title">{{ metadata.title }}</h1></center>
|
||||
<center><h1 class="title hover-symbol"><a id="" href="#">{{ metadata.title }}</a></h1></center>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue