Skip to content

Commit

Permalink
Add a table-border-strength variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Dunn committed Nov 10, 2023
1 parent 305ba2a commit 173de89
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ Note that the base color definitinons change in dark theme.
--warning-fg: color-mix(in srgb, var(--warning-color) 40%, var(--fg));
--danger-fg: color-mix(in srgb, var(--danger-color) 70%, var(--fg));

/*Intensity of table borders is less than normal borders, to balance the density*/
--table-border-strength: 40%;

--control-border-color: color-mix(in srgb, var(--graphical-fg) 35%, rgb(0 0 0 / 0%));
}
```
10 changes: 7 additions & 3 deletions css/barrel.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
--gap: 18px;

/*Borders*/
--border-color: color-mix(in srgb, var(--graphical-fg) 75%, rgb(0 0 0 / 0%));
--border-color: color-mix(in srgb, var(--graphical-fg) 50%, rgb(0 0 0 / 0%));

--border-radius: 1.2rem;
--border-width: 1px;
Expand Down Expand Up @@ -86,6 +86,9 @@

--control-border-color: color-mix(in srgb, var(--graphical-fg) 35%, rgb(0 0 0 / 0%));

/*Intensity of table borders is less than normal borders, to balance the density*/
--table-border-strength: 40%;

/*Calculated helpers*/
--thin-border: 1px solid var(--border-color);
}
Expand Down Expand Up @@ -474,7 +477,9 @@ tr {
}

td {
border-color: color-mix(in srgb, var(--border-color) 10%, transparent);
border-top: none;
border-right: none;
border-color: color-mix(in srgb, var(--border-color) var(--table-border-strength), transparent);
padding: var(--border-width);
width: min-content;
max-width: 45%;
Expand Down Expand Up @@ -507,7 +512,6 @@ table {
border-collapse: separate;
border-spacing: 0;
border-radius: var(--border-radius);
;
border: none;
}

Expand Down
13 changes: 0 additions & 13 deletions css/scrapbook/scrapbook_green.css
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,6 @@ tr:hover {
}


table {
background-color: rgba(240, 248, 255, 0.116);
box-shadow: 5px 5px 12px -8px rgba(0, 0, 0, 0.97);
}

tr.header {
font-weight: bold;
}

th {
background-color: #0000001a;
}



/*This handles the old style "section box", but also top level HTML section elements. It's basicattly for independant sections of content.*/
Expand Down

0 comments on commit 173de89

Please sign in to comment.