Skip to content

Commit 09261f1

Browse files
committed
Select references with CSS
This commit updates the CSS styling in the `style.css` file to include specific selectors that will hide references based on their rates. By adding CSS rules for references with rates ranging from 1 to 9, these references will now be hidden when displayed on the web page. This modification enhances the visual presentation of references for a better user experience.
1 parent 4e4ac9a commit 09261f1

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
size ?= A6
22
left ?= PAU
33
right ?= NA28
4-
rate ?= 10
54
name ?= pocket-nt
65

76
style := /app/style.css

chapters.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ WITH
1414
) AS refs
1515
FROM cr.cross_references c
1616
LEFT JOIN db1.books_all b ON c.b1 = b.book_number
17-
WHERE c.rate > <RATE>
17+
WHERE c.rate > 0
1818
GROUP BY c.book_number, chapter, verse
1919
ORDER BY rate DESC
2020
),

style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,14 @@ verse[data-verse="1"]:before { display: none; }
3232
verse:before { content: attr(data-verse); font-family: mono; font-weight: 600; font-size: .6em; margin: 0 .5em; vertical-align: super; }
3333

3434
reference { font-family: mono; font-size: .6em; margin: 0 .5em; vertical-align: baseline; display: inline; }
35+
36+
reference[data-rate="1"],
37+
reference[data-rate="2"],
38+
reference[data-rate="3"],
39+
reference[data-rate="4"],
40+
reference[data-rate="5"],
41+
reference[data-rate="6"],
42+
reference[data-rate="7"],
43+
reference[data-rate="8"],
44+
reference[data-rate="9"]
45+
{ display: none; }

0 commit comments

Comments
 (0)