mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-23 09:19:00 +00:00
Update logo thingy
This commit is contained in:
parent
2f3e188983
commit
66c8573bd2
@ -1,3 +1,6 @@
|
|||||||
|
// This is copied from https://stackoverflow.com/a/19721069.
|
||||||
|
$tooltip-size: 5em
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--accented-border-style: var(--content-color) solid .1vw;
|
--accented-border-style: var(--content-color) solid .1vw;
|
||||||
--content-color: var(--base05);
|
--content-color: var(--base05);
|
||||||
@ -65,22 +68,45 @@ article.post {
|
|||||||
|
|
||||||
// Custom layouts
|
// Custom layouts
|
||||||
#logo {
|
#logo {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: $tooltip-size;
|
||||||
|
width: $tooltip-size;
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
--size: 4em;
|
--size: 4em;
|
||||||
height: var(--size);
|
height: var(--size);
|
||||||
width: var(--size);
|
width: var(--size);
|
||||||
fill: var(--base0C);
|
fill: var(--base0C);
|
||||||
|
position: relative;
|
||||||
&:hover {
|
animation: rainbow 3s infinite, pulse 2s alternate infinite, bounce 0.6s ease-in-out alternate infinite;
|
||||||
fill: var(--base08);
|
|
||||||
animation: rainbow 2s ease infinite;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes bounce {
|
||||||
|
$baseSize: 3em;
|
||||||
|
$baseRotation: 20deg;
|
||||||
|
from {
|
||||||
|
transform: rotate($baseRotation) translateX($baseSize) translateY(-#{$baseSize / 5});
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: rotate(-$baseRotation) translateX(-$baseSize) translateY(-#{$baseSize / 5});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse {
|
||||||
|
from { width: #{$tooltip-size / 2}; }
|
||||||
|
to { width: #{$tooltip-size}; }
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes rainbow {
|
@keyframes rainbow {
|
||||||
@for $i from 0 through 8 {
|
$colorOrder: "07" "08" "09" "0A" "0B" "0C" "0D" "0E" "0F";
|
||||||
#{$i * 10}% { fill: var(--base#{decToHex($i + 7)}); }
|
$divide: floor(100 / length($colorOrder));
|
||||||
|
@for $i from 1 to length($colorOrder) {
|
||||||
|
#{$i * $divide}% {
|
||||||
|
fill: var(--base#{nth($colorOrder, $i)});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,7 +119,7 @@ article.post {
|
|||||||
font-size: 0.8em;
|
font-size: 0.8em;
|
||||||
padding: 0.5em;
|
padding: 0.5em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
transform: translateY(var(--translate-y, -50%)) scale(var(--scale));
|
transform: translateY(var(--translate-y, -#{round($tooltip-size / 2)})) scale(var(--scale));
|
||||||
transform-origin: bottom center;
|
transform-origin: bottom center;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
Loading…
Reference in New Issue
Block a user