x
1
<a target="_blank" class="text-link" href="https://csszero.lazaronixon.com/tasks">Click here to go to the example</a>
1
<%= link_to "Click here to go to the example", main_app.tasks_url, target: "_blank", class: "text-link" %>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
:where(.table) { caption-side: bottom; font-size: var(--text-sm); inline-size: var(--size-full); caption { color: var(--color-text-subtle); margin-block-start: var(--size-4); } thead { color: var(--color-text); } tbody tr { border-block-start-width: var(--border); } tr:hover { background-color: rgb(from var(--color-border-light) r g b / .5); } th { font-weight: var(--font-medium); text-align: start; } th, td { padding: var(--size-2); } tfoot { background-color: rgb(from var(--color-border-light) r g b / .5); border-block-start-width: var(--border); font-weight: var(--font-medium); }}
Java Script is not required or multiple files are needed, check the notes.