feat: header and other style updates
This commit is contained in:
parent
b1ef4f9900
commit
f5eaed457f
4 changed files with 50 additions and 3 deletions
|
@ -3,10 +3,10 @@
|
||||||
{% set emptyStars = 5 - number %}
|
{% set emptyStars = 5 - number %}
|
||||||
<ul class="[ stars ] [ flex list-none p-0 m-0 text-primary ]" aria-description="{{ number }} out of 5 stars">
|
<ul class="[ stars ] [ flex list-none p-0 m-0 text-primary ]" aria-description="{{ number }} out of 5 stars">
|
||||||
{% for i in range(0, filledStars) %}
|
{% for i in range(0, filledStars) %}
|
||||||
<li>{% include "svgs/star.svg" %}</li>
|
<li class="[ star-filled ]">{% include "svgs/star.svg" %}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% for i in range(0, emptyStars) %}
|
{% for i in range(0, emptyStars) %}
|
||||||
<li>{% include "svgs/star-empty.svg" %}</li>
|
<li class="[ star-empty ]">{% include "svgs/star-empty.svg" %}</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
|
@ -17,9 +17,18 @@
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu > li {
|
||||||
|
filter: drop-shadow(1px 0 0 var(--color-white))
|
||||||
|
drop-shadow(-1px 0 0 var(--color-white))
|
||||||
|
drop-shadow(0 -1px 0 var(--color-white))
|
||||||
|
drop-shadow(0 1px 0 var(--color-white));
|
||||||
|
}
|
||||||
|
|
||||||
.menu-button {
|
.menu-button {
|
||||||
|
display: block;
|
||||||
|
line-height: 1rem;
|
||||||
background-color: var(--color-white);
|
background-color: var(--color-white);
|
||||||
color: var(--color-black);
|
color: var(--color-shadow);
|
||||||
box-shadow:
|
box-shadow:
|
||||||
1px 1px 0px var(--color-shadow),
|
1px 1px 0px var(--color-shadow),
|
||||||
2px 2px 0 var(--color-shadow);
|
2px 2px 0 var(--color-shadow);
|
||||||
|
@ -29,4 +38,22 @@
|
||||||
border: 1px solid var(--color-shadow);
|
border: 1px solid var(--color-shadow);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
|
transition:
|
||||||
|
box-shadow var(--transition-duration),
|
||||||
|
transform var(--transition-duration),
|
||||||
|
background-color var(--transition-duration),
|
||||||
|
color var(--transition-duration);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-button:hover {
|
||||||
|
background-color: color-mix(
|
||||||
|
in srgb,
|
||||||
|
var(--color-white) 90%,
|
||||||
|
var(--color-primary)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-button:active {
|
||||||
|
box-shadow: 0 0 0 var(--color-shadow);
|
||||||
|
transform: translate(2px, 2px);
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,16 @@
|
||||||
transform: skew(0deg, -1deg) translateY(2px);
|
transform: skew(0deg, -1deg) translateY(2px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.site-logo .logo img {
|
||||||
|
filter: drop-shadow(0 1px 0 var(--color-white))
|
||||||
|
drop-shadow(1px 0 0 var(--color-white))
|
||||||
|
drop-shadow(-1px 0 0 var(--color-white))
|
||||||
|
drop-shadow(0 -1px 0 var(--color-white))
|
||||||
|
drop-shadow(
|
||||||
|
0 0 6px color-mix(in srgb, var(--color-primary) 80%, var(--color-white))
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
.site-logo .wordmark > span {
|
.site-logo .wordmark > span {
|
||||||
text-shadow:
|
text-shadow:
|
||||||
-1px 1px 0 var(--shadow-color),
|
-1px 1px 0 var(--shadow-color),
|
||||||
|
@ -35,4 +45,5 @@
|
||||||
|
|
||||||
.site-logo .wordmark > :nth-child(2) {
|
.site-logo .wordmark > :nth-child(2) {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
|
color: color-mix(in srgb, var(--color-white) 90%, var(--color-primary));
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,15 @@
|
||||||
transition: margin ease-in-out var(--transition-duration);
|
transition: margin ease-in-out var(--transition-duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.star-filled {
|
||||||
|
color: var(--color-primary);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.star-empty {
|
||||||
|
color: var(--color-fadeText);
|
||||||
|
}
|
||||||
|
|
||||||
.stars li:not(:first-child) {
|
.stars li:not(:first-child) {
|
||||||
margin-inline-start: -6px;
|
margin-inline-start: -6px;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue