add update cards elements
This commit is contained in:
parent
b89096cbe6
commit
b187c50fb1
5 changed files with 112 additions and 68 deletions
|
|
@ -26,12 +26,11 @@ const links = [
|
|||
|
||||
<script>
|
||||
// Add active class to the current link
|
||||
const link = document.querySelector(`a[href='${location.pathname}']`);
|
||||
|
||||
if (link) {
|
||||
link.classList.add("active");
|
||||
}
|
||||
const link = document.querySelector(`a[href='${location.pathname}']`);
|
||||
|
||||
if (link) {
|
||||
link.classList.add('active');
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
|
@ -39,13 +38,16 @@ const links = [
|
|||
width: fit-content;
|
||||
}
|
||||
|
||||
ul {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
li > a {
|
||||
padding: 0.25rem 0.5rem;
|
||||
}
|
||||
|
||||
a {
|
||||
--boder-color: transparent;
|
||||
color: var(--prj-link-text);
|
||||
border: 1px solid var(--boder-color);
|
||||
border-radius: 4px;
|
||||
text-decoration: none;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue