mirror of
https://github.com/caddyserver/website.git
synced 2025-04-23 05:26:16 -04:00
More work on marketing pages
This commit is contained in:
parent
48645cedc1
commit
14e9b01bf4
8 changed files with 426 additions and 42 deletions
|
@ -185,6 +185,17 @@ on('mouseover', '.button:not(.cool), button:not(.cool)', (e) => {
|
|||
});
|
||||
|
||||
|
||||
// mouseover highlights for feature sections that explain config
|
||||
on('mouseover', '.rollover', e => {
|
||||
const target = e.target.closest('.rollover') || e.target;
|
||||
$$(`.${target.dataset.rollover}`).forEach(elem => elem.classList.add('show'));
|
||||
});
|
||||
on('mouseout', '.rollover', e => {
|
||||
const target = e.target.closest('.rollover') || e.target;
|
||||
$$(`.${target.dataset.rollover}`).forEach(elem => elem.classList.remove('show'));
|
||||
});
|
||||
|
||||
|
||||
|
||||
// immediately set the configured theme to avoid flash
|
||||
setTheme(getTheme());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue