bible270 1.13.2 → 1.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -0
- data/app/views/bible270/shared/_styles.html.erb +12 -8
- data/app/views/bible270/shared/_theme_scenery.html.erb +10 -2
- data/lib/bible270/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a50fca728e502ae543a1dadd55bd27b5e3353a196499a5391a18f4dd1b4121d
|
|
4
|
+
data.tar.gz: 2d5f770b546c547e12c0336867d5984dcceacca942c5d5fc50d9bde72f1e77f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 239898b111da5fc90e22e14228062f692032f4a946bf64a1ee8ef6266bc27f9ce1152a50b831ddd926aee3708d463b041ae1196180e0e486ce8885319fad606f
|
|
7
|
+
data.tar.gz: 427676c266d2bb7adb64be25d47b279993ce7070338da2f416f5deec5eed8a96af10d5061ede603c74fc83fac843c67289b5f7e6662381f3aed8973a48c2378c
|
data/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,7 @@ All notable changes to bible270. Format follows [Keep a Changelog](https://keepa
|
|
|
7
7
|
### Fixed
|
|
8
8
|
|
|
9
9
|
- center the Hebrew and Greek background text in the available left and right margins on wide displays, while preserving narrow-screen positioning and phone visibility rules
|
|
10
|
+
- keep Moonlight's Hebrew and Greek word reflections aligned with their responsive text columns without moving the moon or shoreline
|
|
10
11
|
|
|
11
12
|
**[Full Changelog](https://github.com/avonderluft/bible270/compare/v1.13.1...main)**
|
|
12
13
|
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
/* A fixed SVG avoids mobile background-attachment quirks and stays behind all content. */
|
|
129
|
-
.b270-theme-scenery{display:none;--b270-scene-height:clamp(280px,52vh,560px);position:fixed;inset:auto 0 0;width:100%;height:var(--b270-scene-height);z-index:-1;pointer-events:none}
|
|
129
|
+
.b270-theme-scenery{display:none;--b270-scene-height:clamp(280px,52vh,560px);--b270-scripture-inset:10%;--b270-greek-scene-inset:max(5.625%, var(--b270-scene-height) * 90 / 440);--b270-greek-inset:var(--b270-greek-scene-inset);position:fixed;inset:auto 0 0;width:100%;height:var(--b270-scene-height);z-index:-1;pointer-events:none}
|
|
130
130
|
.b270{isolation:isolate}
|
|
131
131
|
.b270 > .b270-theme-scripture{display:block;color:var(--gold)}
|
|
132
132
|
.b270[data-display-mode="dark_blue"] > .b270-theme-scripture{color:#c6d6e9}
|
|
@@ -139,6 +139,7 @@
|
|
|
139
139
|
.b270[data-display-mode="dark_green"] > .b270-theme-scenery[data-scenery="dark_green"],
|
|
140
140
|
.b270[data-display-mode="dark_blue"] > .b270-theme-scenery[data-scenery="dark_blue"],
|
|
141
141
|
.b270[data-display-mode="dark_blue"] > .b270-theme-scenery[data-scenery="hebrew_water"],
|
|
142
|
+
.b270[data-display-mode="dark_blue"] > .b270-theme-scenery[data-scenery="greek_water"],
|
|
142
143
|
.b270[data-display-mode="light"] > .b270-theme-scenery[data-scenery="light"],
|
|
143
144
|
.b270[data-display-mode="system"] > .b270-theme-scenery[data-scenery="light"]{display:block}
|
|
144
145
|
.b270-theme-scenery[data-scenery="light"],.b270-theme-scripture{font-size:clamp(12px,2.2vw,30px)}
|
|
@@ -153,18 +154,20 @@
|
|
|
153
154
|
.b270-theme-scenery[data-scenery="sage_sky"]{height:100%}
|
|
154
155
|
.b270-theme-scenery[data-scenery="mist_sky"]{height:100%}
|
|
155
156
|
.b270-ocean-gulls{transform-box:view-box;transform:translate(calc(100% - 115px),calc(100% - 35px))}
|
|
156
|
-
/*
|
|
157
|
-
.b270-scripture-letters [lang="
|
|
157
|
+
/* Words and reflections share their viewport-relative column positions. */
|
|
158
|
+
.b270-scripture-letters [lang="he"]{transform-box:view-box;transform:translateX(calc(var(--b270-scripture-inset) - 10%))}
|
|
159
|
+
.b270-scripture-letters [lang="el"]{transform-box:view-box;transform:translateX(calc(100% - var(--b270-greek-inset)))}
|
|
158
160
|
.b270-scripture-letters [lang="el"] tspan{font-size:.9em}
|
|
159
161
|
/* Once the side margins can fit the words, center each column between the
|
|
160
162
|
content wrapper and viewport edge. Hebrew already has an SVG x of 10%. */
|
|
161
163
|
@media (min-width:1200px){
|
|
162
|
-
.b270-theme-
|
|
163
|
-
.b270-scripture-letters [lang="he"]{transform-box:view-box;transform:translateX(calc(var(--b270-scripture-inset) - 10%))}
|
|
164
|
-
.b270-scripture-letters [lang="el"]{transform:translateX(calc(100% - var(--b270-scripture-inset)))}
|
|
164
|
+
.b270-theme-scenery{--b270-scripture-inset:calc((100% - var(--b270-content-width)) / 4);--b270-greek-inset:var(--b270-scripture-inset)}
|
|
165
165
|
}
|
|
166
166
|
/* Scale reflected Hebrew with the lake artwork, allowing for its smaller letterforms. */
|
|
167
|
-
|
|
167
|
+
.b270-hebrew-water{font-size:max(2vw, var(--b270-scene-height) * 32 / 440);transform-box:view-box;transform:translate(var(--b270-scripture-inset),calc(100% - max(12.5vw, var(--b270-scene-height) * 200 / 440)))}
|
|
168
|
+
/* Move only the Greek reflection layer, compensating for its original lake
|
|
169
|
+
coordinates after SVG scaling; the moon and shoreline remain stationary. */
|
|
170
|
+
.b270-theme-scenery[data-scenery="greek_water"]{transform-box:border-box;transform:translateX(calc(var(--b270-greek-scene-inset) - var(--b270-greek-inset)))}
|
|
168
171
|
@media (prefers-color-scheme:dark){
|
|
169
172
|
.b270[data-display-mode="system"] > .b270-theme-scenery[data-scenery="light"]{display:none}
|
|
170
173
|
.b270[data-display-mode="system"] > .b270-theme-scenery[data-scenery="dark"]{display:block}
|
|
@@ -174,7 +177,8 @@
|
|
|
174
177
|
@media (max-width:600px){
|
|
175
178
|
.b270-theme-scenery{--b270-scene-height:clamp(180px,30vh,260px)}
|
|
176
179
|
.b270[data-display-mode] > .b270-theme-scripture,
|
|
177
|
-
.b270[data-display-mode] > .b270-theme-scenery[data-scenery="hebrew_water"]
|
|
180
|
+
.b270[data-display-mode] > .b270-theme-scenery[data-scenery="hebrew_water"],
|
|
181
|
+
.b270[data-display-mode] > .b270-theme-scenery[data-scenery="greek_water"]{display:none}
|
|
178
182
|
.b270-mobile-scenery{display:block}
|
|
179
183
|
.b270-papyrus-grid{opacity:.2}
|
|
180
184
|
.b270-papyrus-edges{opacity:.55}
|
|
@@ -419,14 +419,22 @@
|
|
|
419
419
|
<path d="M0 240H1600" stroke="#8fa7c3" stroke-width=".7" opacity=".12" />
|
|
420
420
|
<g clip-path="url(#b270-lake-clip)">
|
|
421
421
|
<ellipse cx="1510" cy="305" rx="145" ry="125" fill="url(#b270-moon-halo)" opacity=".6" />
|
|
422
|
-
|
|
423
|
-
x="0" y="240" width="1600" height="200" mask="url(#b270-greek-reflection)" />
|
|
422
|
+
|
|
424
423
|
<%# Phones use a quiet pool of moonlight instead of the reflected scripture. %>
|
|
425
424
|
<ellipse class="b270-mobile-scenery" cx="1510" cy="332" rx="65" ry="92" fill="url(#b270-moon-mobile-glow)" />
|
|
426
425
|
<%# The rippled letters supply the desktop water texture without straight lines crossing the reflections. %>
|
|
427
426
|
</g>
|
|
428
427
|
</svg>
|
|
429
428
|
|
|
429
|
+
<%# A separate layer lets the reflected Greek follow its column without moving the lake. %>
|
|
430
|
+
<svg class="b270-theme-scenery" data-scenery="greek_water" viewBox="0 0 1600 440" preserveAspectRatio="xMaxYMax slice"
|
|
431
|
+
xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
|
432
|
+
<g clip-path="url(#b270-lake-clip)">
|
|
433
|
+
<rect id="b270-lake-reflection" fill="url(#b270-moon-reflection)"
|
|
434
|
+
x="0" y="240" width="1600" height="200" mask="url(#b270-greek-reflection)" />
|
|
435
|
+
</g>
|
|
436
|
+
</svg>
|
|
437
|
+
|
|
430
438
|
<svg class="b270-theme-scenery" data-scenery="hebrew_water"
|
|
431
439
|
xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false">
|
|
432
440
|
<%# A viewport-based layer keeps the faint reflection beneath the Hebrew column on narrow screens. %>
|
data/lib/bible270/version.rb
CHANGED