Light mode part 2.
This commit is contained in:
@@ -90,7 +90,7 @@ $total = count($sites);
|
|||||||
$prev = $sites[($index - 1 + $total) % $total];
|
$prev = $sites[($index - 1 + $total) % $total];
|
||||||
$next = $sites[($index + 1) % $total];
|
$next = $sites[($index + 1) % $total];
|
||||||
?>
|
?>
|
||||||
<div id="ring" role="navigation" aria-label="Webring navigation">
|
<div id="ring" role="navigation" aria-label="Webring navigation" class="<?= $light ? 'light' : '' ?>">
|
||||||
<a href="https://<?= htmlspecialchars(
|
<a href="https://<?= htmlspecialchars(
|
||||||
$prev,
|
$prev,
|
||||||
ENT_QUOTES | ENT_SUBSTITUTE,
|
ENT_QUOTES | ENT_SUBSTITUTE,
|
||||||
@@ -180,6 +180,21 @@ p {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
height: min-content;
|
height: min-content;
|
||||||
}
|
}
|
||||||
|
#ring.light {
|
||||||
|
border-radius: var(--brad);
|
||||||
|
background-color: var(--fg2);
|
||||||
|
color: var(--blue1);
|
||||||
|
transition: scale 0.2s linear;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
height: 1em;
|
||||||
|
padding: 1em;
|
||||||
|
align-items: center;
|
||||||
|
overflow: hidden;
|
||||||
|
height: min-content;
|
||||||
|
}
|
||||||
|
|
||||||
#ring:hover a {
|
#ring:hover a {
|
||||||
transition: transform 1.3s ease-in-out;
|
transition: transform 1.3s ease-in-out;
|
||||||
|
|||||||
Reference in New Issue
Block a user