big style hover updates
This commit is contained in:
parent
247afd377a
commit
cefa2f773e
3 changed files with 84 additions and 54 deletions
|
@ -1,4 +1,5 @@
|
||||||
:root {
|
:root {
|
||||||
|
--main-placeholder-color: #b14242;
|
||||||
--main-text-color: #b4b4b4;
|
--main-text-color: #b4b4b4;
|
||||||
--main-text-opaque-color: rgba(180, 180, 180, 0.8);
|
--main-text-opaque-color: rgba(180, 180, 180, 0.8);
|
||||||
--main-bg-color: #121212;
|
--main-bg-color: #121212;
|
||||||
|
@ -33,27 +34,77 @@ header {
|
||||||
|
|
||||||
.post-nav {
|
.post-nav {
|
||||||
font-family: monospace;
|
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 {
|
.post-nav .symbol {
|
||||||
color: var(--main-bullet-color);
|
color: var(--main-bullet-color);
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
display: inline;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-nav a {
|
.site-logo.hover-symbol::before {
|
||||||
margin: 0 2px;
|
content: "@";
|
||||||
|
/* color: var(--main-bullet-color);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.site-logo {
|
.title.hover-symbol::before {
|
||||||
|
content: ">";
|
||||||
|
/* color: var(--main-bullet-color);*/
|
||||||
|
}
|
||||||
|
|
||||||
|
.hover-symbol {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
position: relative;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
/* font-size: 1.75rem;*/
|
transition: color 0.15s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.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.15s ease, color 0.15s ease;
|
||||||
|
color: var(--main-text-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hover-symbol:hover::before {
|
||||||
|
opacity: 1;
|
||||||
|
color: var(--main-placeholder-color); /* only the symbol changes color */
|
||||||
|
}
|
||||||
|
.hover-symbol:hover {
|
||||||
|
background-color: transparent;
|
||||||
|
/* color: var(--main-placeholder-color);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.toclink {
|
.toclink {
|
||||||
position: relative;
|
position: relative;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
transition: color 0.15s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toclink::before {
|
.toclink::before {
|
||||||
|
@ -64,7 +115,16 @@ header {
|
||||||
top: 50%;
|
top: 50%;
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.2s ease;
|
transition: opacity 0.15s ease, color 0.15s ease;
|
||||||
|
color: var(--main-link-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.toclink:hover::before {
|
||||||
|
opacity: 1;
|
||||||
|
color: var(--main-placeholder-color);
|
||||||
|
}
|
||||||
|
.toclink:hover {
|
||||||
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 .toclink::before {
|
h1 .toclink::before {
|
||||||
|
@ -83,13 +143,6 @@ h4 .toclink::before {
|
||||||
content: "###";
|
content: "###";
|
||||||
}
|
}
|
||||||
|
|
||||||
.toclink:hover::before {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
.toclink:hover {
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* h1, */
|
/* h1, */
|
||||||
h2,
|
h2,
|
||||||
h3,
|
h3,
|
||||||
|
@ -111,6 +164,11 @@ h1 {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.title a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
article h1:first-of-type {
|
article h1:first-of-type {
|
||||||
margin-block-start: 1.67rem;
|
margin-block-start: 1.67rem;
|
||||||
}
|
}
|
||||||
|
@ -156,38 +214,26 @@ h6 {
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
list-style-type: disc;
|
list-style-type: disc;
|
||||||
/* or any other list style */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
li::marker {
|
li::marker {
|
||||||
color: var(--main-bullet-color);
|
color: var(--main-bullet-color);
|
||||||
/* Change this to your desired color */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--main-link-color);
|
color: var(--main-link-color);
|
||||||
text-decoration: none;
|
text-decoration: underline;
|
||||||
position: relative;
|
text-decoration-color: rgba(0, 0, 0, 0);
|
||||||
|
text-underline-offset: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
a::after {
|
a {
|
||||||
content: "";
|
transition: color 0.15s ease, text-decoration-color 0.15s ease;
|
||||||
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 {
|
a:hover {
|
||||||
transform: scaleX(1);
|
text-decoration-color: var(--main-placeholder-color);
|
||||||
}
|
color: var(--main-bullet-color);
|
||||||
a:has(> code)::after {
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
@ -424,23 +470,3 @@ caption {
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
color: var(--main-small-text-color);
|
color: var(--main-small-text-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
a > code {
|
|
||||||
text-decoration: none;
|
|
||||||
color: var(--main-link-color);
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:has(> code) {
|
|
||||||
text-decoration: none;
|
|
||||||
background: none;
|
|
||||||
/* position: static;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover > code {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover:has(> code) {
|
|
||||||
background: none;
|
|
||||||
}
|
|
||||||
|
|
4
justfile
4
justfile
|
@ -3,6 +3,10 @@ zonaref := `rg "^.*(git\+.*).*$" -r '$1' .forgejo/workflows/deploy.yml`
|
||||||
echo:
|
echo:
|
||||||
echo {{zonaref}}
|
echo {{zonaref}}
|
||||||
|
|
||||||
|
# run the development build of zona
|
||||||
|
dev *args:
|
||||||
|
uv run --project "$HOME/dev/zona" zona {{args}}
|
||||||
|
|
||||||
serve *args:
|
serve *args:
|
||||||
@just run serve {{args}}
|
@just run serve {{args}}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<ul>
|
<ul>
|
||||||
<!-- TODO: make the template write the site name-->
|
<!-- TODO: make the template write the site name-->
|
||||||
<li><a class="site-logo" href="/">ficd.sh</a></li>
|
<li><a class="site-logo hover-symbol" href="/">ficd.sh</a></li>
|
||||||
{% for name, url in site_map.items() %}
|
{% for name, url in site_map.items() %}
|
||||||
<li><a href="{{ url }}">{{ name }}</a></li>
|
<li><a href="{{ url }}">{{ name }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue