Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsca committed Oct 19, 2024
1 parent 2db3683 commit 0a32693
Show file tree
Hide file tree
Showing 11 changed files with 68 additions and 145 deletions.
2 changes: 1 addition & 1 deletion docs/components/Logo.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
<a
{{ attrs.render(class="Logo", href=base_url, title="Back home") }}>
<img class="light" src="/static/img/jinjax-logo.svg" width="140" aria-hidden>
<img class="dark" src="/static/img/jinjax-logo-w.svg" width="140" aria-hidden>
<img class="dark" src="/static/img/jinjax-logo-dark.svg" width="140" aria-hidden>
</a>
6 changes: 4 additions & 2 deletions docs/components/ui/LinkedList/DemoHTML.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
<button
type="button"
class="select-all"
onclick="document.getElementById('linkedlist-demo-list1').dispatchEvent(new CustomEvent('jxui:linked:sendall'));"
onclick="document.getElementById('linkedlist-demo-list1')
.dispatchEvent(new CustomEvent('jxui:linked:sendall'));"
>
Select all &raquo;
</button>
Expand All @@ -26,7 +27,8 @@
<button
type="button"
class="remove-all"
onclick="document.getElementById('linkedlist-demo-list2').dispatchEvent(new CustomEvent('jxui:linked:sendall'));"
onclick="document.getElementById('linkedlist-demo-list2')
.dispatchEvent(new CustomEvent('jxui:linked:sendall'));"
>
&laquo; Remove all
</button>
Expand Down
18 changes: 18 additions & 0 deletions docs/components/ui/LinkedList/LinkedList.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
border-radius: 0.25rem;
font-size: 0.85rem;
}
&:is(.dark *) .ui-linkedlist {
background-color: rgb(30 30 30);
}
.ui-linkedlist li {
cursor: pointer;
display: flex;
Expand All @@ -39,6 +42,9 @@
.ui-linkedlist li:hover {
background-color: rgb(243 244 246);
}
&:is(.dark *) .ui-linkedlist li:hover {
background-color: rgb(0 0 0);
}
.ui-linkedlist input[type="checkbox"] {
margin-right: 0.5rem;
}
Expand All @@ -52,6 +58,9 @@
font-size: 0.7rem;
margin-bottom: -1px;
}
&:is(.dark *) label {
background-color: rgb(23 23 23);
}

button {
margin-top: 0.5rem;
Expand Down Expand Up @@ -85,6 +94,15 @@
outline-offset: 1px;
outline-color: #3b82f6;
}
&:is(.dark *) button {
background-color: rgb(23 23 23);
}
&:is(.dark *) button:hover {
background-color: rgb(30 30 30);
}
&:is(.dark *) button:focus {
background-color: rgb(23 23 23);
}
@media (min-width: 640px) {
button {
padding: 0.25rem 0.5rem;
Expand Down
7 changes: 5 additions & 2 deletions docs/static/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
height: 2.5rem;
align-items: center;
color: rgb(24 24 27);
opacity: 0.9;
opacity: 0.8;
background: transparent;

&:hover {
opacity: 1;
Expand Down Expand Up @@ -78,7 +79,9 @@
text-indent: -999px;
display: none;
}

&:is(.dark *) h1 {
background-image: url("/static/img/jinjax-logo-dark.svg");
}
& h2 {
font-size: 2.2rem;
font-weight: 600;
Expand Down
14 changes: 14 additions & 0 deletions docs/static/img/jinjax-logo-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/static/img/jinjax-logo-w.png
Binary file not shown.
1 change: 0 additions & 1 deletion docs/static/img/jinjax-logo-w.svg

This file was deleted.

Binary file removed docs/static/img/jinjax-logo.png
Binary file not shown.
15 changes: 14 additions & 1 deletion docs/static/img/jinjax-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0a32693

Please sign in to comment.