bible270 1.14.0 → 1.15.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7672c35f3d2c4bc89dbc2451b056ddb7117b8b74a1f3a5af5a7e437b4210f63
4
- data.tar.gz: 80c28cef80f5f9dd65b8075a0c1927042883dcd59a600cad1d6971afb3600771
3
+ metadata.gz: 73a1a19dba81da8ae39a2f00b51a4964a0006826428c64590f073e9eeeed790a
4
+ data.tar.gz: f2bf329540f56e22be230c899bc4be5b6cabd21140c595ec42bcd5c0a4b50aef
5
5
  SHA512:
6
- metadata.gz: b1dd804592bee6fd8970eb5db8f7f622f0e9d67c8111a51e4d945ef9ab60c2c5ca65c865e65bb4d21e03ac6501a013f79965f0fd8088da2d45ab5222c42d29cc
7
- data.tar.gz: 162519e4093c163e48d0f9e120960746646f1f84fef816bfb32302cac8f483dd555dbe96d7deec7c43808812466155da458d50f8ad1ceb5d12d005bc9257ef17
6
+ metadata.gz: bdd71f5e6262ec117a990cba9e3258223cd10d335850f42d83eb908d2538dab494aa8442b3518bafc12a5ecd4f9293c1e48e1746fcec9804a75cfc88a0413d24
7
+ data.tar.gz: caf2bc1d453d8b9590b985a7687e352a5f0edc521dc5c40e43541e511d2dbb2e8d35c8f0433acc79c15b5816d4a1975f1396b71c6b26278f8141508c09d13053
data/CHANGELOG.md CHANGED
@@ -4,13 +4,30 @@ Notable changes, following [Keep a Changelog](https://keepachangelog.com/en/1.1.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ### Fixed
8
+
9
+ - standardize dropdown arrows, spacing, keyboard focus, and disabled styling across reflections, filters, Profile, and Admin; keep header theme and reminder-time selectors compact
10
+
11
+ ## [1.15.0] - 2026-11-06
12
+
13
+ ### Added
14
+
15
+ - show Community progress bars and completed-day counts to signed-in readers, including non-admin preview; retain alphabetical order and admin-only management links and written schedule status
16
+ - use muted, theme-matched bar colors, including warm tan for Cedar, with at least 3:1 fill-to-track contrast
17
+ - mark today on each reader's active schedule with a thin line, tooltip, and accessible day description; omit markers for undated, future, and ended schedules
18
+
19
+ Counts include only fully completed days and use one bulk progress query. Visitor listings are unchanged; no migration is required.
20
+
21
+ ## [1.14.0] - 2026-11-06
22
+
7
23
  ### Added
8
24
 
9
- - add a session-only **View as non-admin** toggle to Admin; hide admin-only details and disable admin actions while retaining the Admin tab to switch back
25
+ - add a session-only **View as non-admin** toggle; hide admin-only details and disable admin actions while retaining the Admin tab to switch back. Own check-offs and reflections still work; roles and other sessions are unchanged.
10
26
 
11
27
  ### Changed
12
28
 
13
29
  - shorten the consistency explanation and show it only when sorting by Consistency ranking; keep reader consistency details on every sort
30
+ - align both view-toggle buttons to the right of the Admin label on the same row
14
31
  - shorten the README and changelog while retaining setup instructions, upgrade warnings, and release links
15
32
 
16
33
  ## [1.13.5] - 2026-11-02
@@ -796,7 +813,9 @@ This is the initial public release.
796
813
 
797
814
  - Email sign-in requires working Action Mailer delivery in the host application. Set `config.mailer_from`; delivery is inline by default, or set `email_sign_in_deliver_later` when a queue backend is available.
798
815
 
799
- [Unreleased]: https://github.com/avonderluft/bible270/compare/v1.13.5...main
816
+ [Unreleased]: https://github.com/avonderluft/bible270/compare/v1.15.0...main
817
+ [1.15.0]: https://github.com/avonderluft/bible270/compare/v1.14.0...v1.15.0
818
+ [1.14.0]: https://github.com/avonderluft/bible270/compare/v1.13.5...v1.14.0
800
819
  [1.13.5]: https://github.com/avonderluft/bible270/compare/v1.13.3...v1.13.5
801
820
  [1.13.3]: https://github.com/avonderluft/bible270/compare/v1.13.2...v1.13.3
802
821
  [1.13.2]: https://github.com/avonderluft/bible270/compare/v1.13.1...v1.13.2
data/README.md CHANGED
@@ -22,6 +22,8 @@ The Old Testament and Revelation 22 finish on day 270 alongside Psalm 1. Daily r
22
22
 
23
23
  `Bible270::Plan` generates the schedule deterministically from `Bible270::Versification`; the schedule is not stored in the database. **Progress and reflections are public.**
24
24
 
25
+ Signed-in readers see a small progress bar and completed-day count on Community, including in non-admin preview. The list stays alphabetical; only fully completed days count. A thin line marks today on each reader's active schedule; undated, future, and ended schedules have no marker. Visitors see names and join dates; management links and written ahead/behind status remain admin-only.
26
+
25
27
  ## Requirements
26
28
 
27
29
  - **Ruby >= 3.2** and a **Rails >= 7.2** host app. CI covers selected combinations through Ruby 4.0 / Rails 8.1; check your host's dependencies before upgrading Ruby.
@@ -8,7 +8,10 @@ module Bible270
8
8
  @readers = Reader.with_avatar.to_a.sort_by(&:sort_name)
9
9
  @today_day = current_reader&.today_day
10
10
  @show_admin_progress = b270_admin_view?
11
- @days_completed = Reader.completed_days_by_id if @show_admin_progress
11
+ return unless signed_in?
12
+
13
+ @days_completed = Reader.completed_days_by_id
14
+ @reader_today_days = community_today_days
12
15
  end
13
16
 
14
17
  # The reader's own progress. Deliberately open to visitors: the panel shows an
@@ -46,6 +49,17 @@ module Bible270
46
49
 
47
50
  private
48
51
 
52
+ def community_today_days
53
+ # Resolve the shared schedule once, not with a settings query for every reader.
54
+ shared_start = Setting.run_start_date
55
+ today = Bible270.today
56
+ @readers.to_h do |reader|
57
+ start = (Bible270.config.allow_reader_start_date && reader.started_on) || shared_start
58
+ day = Plan.day_for(today, start, clamp: false)
59
+ [reader.id, day && Plan.valid_day?(day) ? day : nil]
60
+ end
61
+ end
62
+
49
63
  def recent_reflections(reader, limit:)
50
64
  comments = reader.comments.recent.with_thread_details.limit(limit).to_a
51
65
  ids = comments.map(&:id)
@@ -71,7 +71,9 @@
71
71
  <%= form_with url: admin_path, method: :get, class: "b270-admin-reader-sort" do %>
72
72
  <label>
73
73
  <span>Sort readers by</span>
74
- <%= select_tag :sort, options_for_select(@reader_sort_options.map { |value, label| [label, value] }, @reader_sort) %>
74
+ <span class="b270-select-wrap">
75
+ <%= select_tag :sort, options_for_select(@reader_sort_options.map { |value, label| [label, value] }, @reader_sort) %>
76
+ </span>
75
77
  </label>
76
78
  <%= submit_tag "Sort", class: "b270-btn" %>
77
79
  <% end %>
@@ -195,7 +197,9 @@
195
197
  data: { turbo_confirm: "Send this message to the selected recipients?" } do %>
196
198
  <div class="b270-broadcast-audience">
197
199
  <label for="b270-broadcast-audience" class="b270-sr-only">Recipients</label>
198
- <%= select_tag :audience, options_for_select([['Write to everyone', 'everyone'], ['Write to all admins', 'admins']], 'everyone'), id: 'b270-broadcast-audience', class: 'b270-select' %>
200
+ <span class="b270-select-wrap b270-select-wrap--full">
201
+ <%= select_tag :audience, options_for_select([['Write to everyone', 'everyone'], ['Write to all admins', 'admins']], 'everyone'), id: 'b270-broadcast-audience', class: 'b270-select' %>
202
+ </span>
199
203
  </div>
200
204
  <%= text_field_tag :subject, params[:subject], placeholder: "Subject", class: "b270-input" %>
201
205
  <%= text_area_tag :body, params[:body], placeholder: "What would you like to say?", rows: 6 %>
@@ -67,11 +67,13 @@
67
67
 
68
68
  <%= form_with url: admin_reader_version_path(@reader), method: :patch, class: "b270-form" do %>
69
69
  <div class="row">
70
- <%= select_tag :bible_version,
71
- options_for_select([["Site default (#{Bible270.config.bible_version})", ""]] +
72
- Bible270::Translations.options,
73
- @reader.bible_version.to_s),
74
- class: "b270-select", style: "width:auto" %>
70
+ <span class="b270-select-wrap b270-select-wrap--full">
71
+ <%= select_tag :bible_version,
72
+ options_for_select([["Site default (#{Bible270.config.bible_version})", ""]] +
73
+ Bible270::Translations.options,
74
+ @reader.bible_version.to_s),
75
+ class: "b270-select", aria: { label: "Bible translation" } %>
76
+ </span>
75
77
  </div>
76
78
  <%= render "bible270/shared/passage_source", reader: @reader %>
77
79
  <%= submit_tag "Save", class: "b270-btn" %>
@@ -82,11 +84,13 @@
82
84
  <h2 class="b270-subhead" id="b270-theme-heading">Theme</h2>
83
85
  <% if Bible270::Reader.display_mode_column? %>
84
86
  <%= form_with url: admin_reader_theme_path(@reader), method: :patch, class: "b270-emailform" do %>
85
- <%= select_tag :display_mode,
86
- options_for_select(Bible270::Reader::DISPLAY_OPTIONS, @reader.effective_display_mode),
87
- class: "b270-select", aria: { labelledby: "b270-theme-heading", describedby: "b270-theme-hint b270-theme-status" },
88
- data: { b270_theme_url: admin_reader_theme_path(@reader), b270_theme_apply: @reader == current_reader,
89
- b270_saved_theme: @reader.effective_display_mode } %>
87
+ <span class="b270-select-wrap b270-select-wrap--full">
88
+ <%= select_tag :display_mode,
89
+ options_for_select(Bible270::Reader::DISPLAY_OPTIONS, @reader.effective_display_mode),
90
+ class: "b270-select", aria: { labelledby: "b270-theme-heading", describedby: "b270-theme-hint b270-theme-status" },
91
+ data: { b270_theme_url: admin_reader_theme_path(@reader), b270_theme_apply: @reader == current_reader,
92
+ b270_saved_theme: @reader.effective_display_mode } %>
93
+ </span>
90
94
  <p id="b270-theme-hint" class="b270-hint" style="margin:0">
91
95
  System follows the reader's device setting: Papyrus for light, Cedar for dark.
92
96
  </p>
@@ -17,10 +17,12 @@
17
17
  label_text: (comment.reply? ? "Reply" : "Reflection") %>
18
18
  <div class="row">
19
19
  <% unless comment.reply? %>
20
- <%= f.select :track,
21
- options_for_select([["The whole day", ""]] + Bible270::Plan::TRACKS.map { |k, v| [v[:label], k] },
22
- comment.track.to_s),
23
- {}, class: "b270-select", style: "width:auto", aria: { label: "Reading this reflection relates to" } %>
20
+ <span class="b270-select-wrap b270-track-select-wrap">
21
+ <%= f.select :track,
22
+ options_for_select([["The whole day", ""]] + Bible270::Plan::TRACKS.map { |k, v| [v[:label], k] },
23
+ comment.track.to_s),
24
+ {}, class: "b270-select", aria: { label: "Reading this reflection relates to" } %>
25
+ </span>
24
26
  <% end %>
25
27
  <%= f.submit "Save", class: "b270-btn" %>
26
28
  <%= link_to "Cancel", day_path(comment.day, anchor: "comment-#{comment.id}"), class: "b270-linkbtn" %>
@@ -23,10 +23,11 @@
23
23
  placeholder: (posting_reply ? "Write your reply…" : "Share a reflection on today's reading…") %>
24
24
  <p class="b270-draft-status" data-b270-draft-status aria-live="polite"></p>
25
25
  <div class="row">
26
- <%= f.select :track,
27
- options_for_select([["The whole day", ""]] + Bible270::Plan::TRACKS.map { |k, v| [v[:label], k] }),
28
- {}, aria: { label: "Reading this reflection relates to" },
29
- style: "font:inherit;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff" %>
26
+ <span class="b270-select-wrap b270-track-select-wrap">
27
+ <%= f.select :track,
28
+ options_for_select([["The whole day", ""]] + Bible270::Plan::TRACKS.map { |k, v| [v[:label], k] }),
29
+ {}, class: "b270-select", aria: { label: "Reading this reflection relates to" } %>
30
+ </span>
30
31
  <%= f.submit "Post reflection", class: "b270-btn" %>
31
32
  </div>
32
33
  <% end %>
@@ -15,15 +15,19 @@
15
15
  <%= hidden_field_tag :since, @reflections_since_param %>
16
16
  <label>
17
17
  <span>Day</span>
18
- <%= select_tag :day,
19
- options_for_select([["All days", ""]] + @days_with_reflections.map { |day| ["Day #{day}", day] },
20
- @reflection_day) %>
18
+ <span class="b270-select-wrap">
19
+ <%= select_tag :day,
20
+ options_for_select([["All days", ""]] + @days_with_reflections.map { |day| ["Day #{day}", day] },
21
+ @reflection_day) %>
22
+ </span>
21
23
  </label>
22
24
  <label>
23
25
  <span>Reflection by</span>
24
- <%= select_tag :reader_id,
25
- options_for_select([["All readers", ""]] + @reflection_readers.map { |reader| [reader.display_name, reader.id] },
26
- @reflection_reader_id) %>
26
+ <span class="b270-select-wrap">
27
+ <%= select_tag :reader_id,
28
+ options_for_select([["All readers", ""]] + @reflection_readers.map { |reader| [reader.display_name, reader.id] },
29
+ @reflection_reader_id) %>
30
+ </span>
27
31
  </label>
28
32
  <%= submit_tag "Apply", class: "b270-btn" %>
29
33
  <% if @reflection_day || @reflection_reader_id %>
@@ -38,9 +38,11 @@
38
38
  </label>
39
39
  <label class="b270-field">
40
40
  <span>Bible translation</span>
41
- <%= select_tag :bible_version,
42
- options_for_select(Bible270::Translations.options, current_reader.effective_bible_version),
43
- class: "b270-select" %>
41
+ <span class="b270-select-wrap b270-select-wrap--full">
42
+ <%= select_tag :bible_version,
43
+ options_for_select(Bible270::Translations.options, current_reader.effective_bible_version),
44
+ class: "b270-select" %>
45
+ </span>
44
46
  <span class="b270-hint" style="margin:0">Reading links open in this translation.</span>
45
47
  </label>
46
48
  <%= render "bible270/shared/passage_source", reader: current_reader %>
@@ -48,11 +50,13 @@
48
50
  <% if Bible270::Reader.display_mode_column? %>
49
51
  <label class="b270-field">
50
52
  <span>Theme</span>
51
- <%= select_tag :display_mode,
52
- options_for_select(Bible270::Reader::DISPLAY_OPTIONS, @display_mode),
53
- class: "b270-select", aria: { describedby: "b270-display-hint b270-theme-status" },
54
- data: { b270_theme_url: profile_theme_path, b270_theme_apply: true,
55
- b270_saved_theme: current_reader.effective_display_mode } %>
53
+ <span class="b270-select-wrap b270-select-wrap--full">
54
+ <%= select_tag :display_mode,
55
+ options_for_select(Bible270::Reader::DISPLAY_OPTIONS, @display_mode),
56
+ class: "b270-select", aria: { describedby: "b270-display-hint b270-theme-status" },
57
+ data: { b270_theme_url: profile_theme_path, b270_theme_apply: true,
58
+ b270_saved_theme: current_reader.effective_display_mode } %>
59
+ </span>
56
60
  <span id="b270-display-hint" class="b270-hint" style="margin:0">System follows your device's setting: Papyrus for light, Cedar for dark.</span>
57
61
  </label>
58
62
  <p id="b270-theme-status" class="b270-hint" role="status" aria-live="polite" style="margin:0"></p>
@@ -97,13 +101,17 @@
97
101
  <span>at</span>
98
102
  <span class="b270-time-control" role="group" aria-label="Reminder time"
99
103
  aria-describedby="daily-reminder-time-hint">
100
- <%= select_tag :daily_reminder_hour,
101
- options_for_select((0..23).map { |hour| format("%02d", hour) }, reminder_hour),
102
- class: "b270-time-select", required: true, aria: { label: "Hour" } %>
104
+ <span class="b270-select-wrap b270-select-wrap--compact b270-select-wrap--time">
105
+ <%= select_tag :daily_reminder_hour,
106
+ options_for_select((0..23).map { |hour| format("%02d", hour) }, reminder_hour),
107
+ class: "b270-time-select", required: true, aria: { label: "Hour" } %>
108
+ </span>
103
109
  <span class="b270-time-separator" aria-hidden="true">:</span>
104
- <%= select_tag :daily_reminder_minute,
105
- options_for_select(reminder_minutes, reminder_minute),
106
- class: "b270-time-select", required: true, aria: { label: "Minute" } %>
110
+ <span class="b270-select-wrap b270-select-wrap--compact b270-select-wrap--time">
111
+ <%= select_tag :daily_reminder_minute,
112
+ options_for_select(reminder_minutes, reminder_minute),
113
+ class: "b270-time-select", required: true, aria: { label: "Minute" } %>
114
+ </span>
107
115
  <span class="b270-reminder-tooltip" id="daily-reminder-time-hint" role="tooltip">
108
116
  <%= reminder_tooltip %>
109
117
  </span>
@@ -8,15 +8,34 @@
8
8
  <% @readers.each do |r| %>
9
9
  <div class="b270-li">
10
10
  <%= link_to b270_avatar(r, size: 72), reader_path(r), "aria-label": r.display_name %>
11
- <div>
11
+ <div class="b270-community-reader-details">
12
12
  <div class="name"><%= link_to r.display_name, reader_path(r), style: "text-decoration:none" %></div>
13
- <div class="sub">
14
- joined <%= Bible270.local_time(r.created_at).strftime("%b %-d %Y") %><% if @show_admin_progress %>
15
- · <%= link_to "#{@days_completed[r.id]} of #{Bible270::Plan::DAYS} days complete",
16
- admin_reader_path(r), class: "b270-admin-progress" %>
17
- · <%= r.progress_status(completed_days: @days_completed[r.id].to_i) %>
13
+ <div class="sub">joined <%= Bible270.local_time(r.created_at).strftime("%b %-d %Y") %></div>
14
+ <% if @days_completed %>
15
+ <% completed = @days_completed[r.id].to_i %>
16
+ <% today_day = @reader_today_days[r.id] %>
17
+ <div class="b270-reader-progress">
18
+ <div class="b270-bar" role="progressbar" aria-label="<%= r.display_name %>: reading progress"
19
+ aria-valuemin="0" aria-valuemax="<%= Bible270::Plan::DAYS %>" aria-valuenow="<%= completed %>"
20
+ aria-valuetext="<%= completed %> of <%= Bible270::Plan::DAYS %> days complete<%= "; today is day #{today_day}" if today_day %>"
21
+ title="<%= "Today: day #{today_day} of #{Bible270::Plan::DAYS}" if today_day %>">
22
+ <i style="width:<%= completed.fdiv(Bible270::Plan::DAYS) * 100 %>%"></i>
23
+ <% if today_day %>
24
+ <span class="b270-progress-today" aria-hidden="true"
25
+ style="left:clamp(0px, <%= today_day.fdiv(Bible270::Plan::DAYS) * 100 %>%, calc(100% - 1px))"></span>
26
+ <% end %>
27
+ </div>
28
+ <% if @show_admin_progress %>
29
+ <%= link_to "#{completed} / #{Bible270::Plan::DAYS} days", admin_reader_path(r),
30
+ class: "b270-reader-progress-count b270-admin-progress" %>
31
+ <% else %>
32
+ <span class="b270-reader-progress-count"><%= completed %> / <%= Bible270::Plan::DAYS %> days</span>
33
+ <% end %>
34
+ </div>
35
+ <% if @show_admin_progress %>
36
+ <div class="sub b270-community-status"><%= r.progress_status(completed_days: completed) %></div>
18
37
  <% end %>
19
- </div>
38
+ <% end %>
20
39
  </div>
21
40
  </div>
22
41
  <% end %>
@@ -6,13 +6,15 @@
6
6
  <% end %>
7
7
  <% if current_reader && Bible270::Reader.display_mode_column? %>
8
8
  <%= form_with url: profile_theme_path, method: :patch, class: "b270-header-theme" do %>
9
- <%= select_tag :display_mode,
10
- options_for_select(Bible270::Reader::DISPLAY_OPTIONS.map { |label, value| [label.sub(/ \((?:Light|Dark)\)\z/, ""), value] }, current_reader.effective_display_mode),
11
- id: "b270-header-theme", class: "b270-header-theme-select",
12
- aria: { label: "Theme", describedby: "b270-header-theme-status" },
13
- data: { b270_theme_url: profile_theme_path, b270_theme_apply: true,
14
- b270_saved_theme: current_reader.effective_display_mode,
15
- b270_theme_status: "b270-header-theme-status" } %>
9
+ <span class="b270-select-wrap b270-select-wrap--compact">
10
+ <%= select_tag :display_mode,
11
+ options_for_select(Bible270::Reader::DISPLAY_OPTIONS.map { |label, value| [label.sub(/ \((?:Light|Dark)\)\z/, ""), value] }, current_reader.effective_display_mode),
12
+ id: "b270-header-theme", class: "b270-header-theme-select",
13
+ aria: { label: "Theme", describedby: "b270-header-theme-status" },
14
+ data: { b270_theme_url: profile_theme_path, b270_theme_apply: true,
15
+ b270_saved_theme: current_reader.effective_display_mode,
16
+ b270_theme_status: "b270-header-theme-status" } %>
17
+ </span>
16
18
  <%= submit_tag "Save", class: "b270-btn", data: { b270_theme_fallback: true } %>
17
19
  <span id="b270-header-theme-status" class="b270-header-theme-status" role="status" aria-live="polite"></span>
18
20
  <% end %>
@@ -10,6 +10,7 @@
10
10
  --button-surface:#231f18; --button-ink:#ece6da;
11
11
  --teal-fill:#2f6a67; --oxblood-fill:#8a2f3b; --gold-fill:#80631d;
12
12
  --teal-mark:#2f6a67; --oxblood-mark:#8a2f3b; --gold-mark:#80631d;
13
+ --community-progress-fill:#897755;
13
14
  --alert-surface:#f6e4e2; --alert-ink:#7a2b28; --alert-line:#e6c3bf;
14
15
  --notice-surface:#e7efe6; --notice-ink:#2f5d34; --notice-line:#c6dcc6;
15
16
  color-scheme:light;
@@ -41,6 +42,7 @@
41
42
  --button-surface:#29382d; --button-ink:#edf0e9;
42
43
  --teal-fill:#356b60; --oxblood-fill:#905466; --gold-fill:#776023;
43
44
  --teal-mark:#356b60; --oxblood-mark:#905466; --gold-mark:#776023;
45
+ --community-progress-fill:#71826b;
44
46
  --alert-surface:#f5e7e9; --alert-ink:#783f4c; --alert-line:#d9b7c0;
45
47
  --notice-surface:#e3eee0; --notice-ink:#375b37; --notice-line:#b8d1b1;
46
48
  }
@@ -56,6 +58,7 @@
56
58
  --button-surface:#293746; --button-ink:#ecf0f5;
57
59
  --teal-fill:#316977; --oxblood-fill:#86566f; --gold-fill:#7b602b;
58
60
  --teal-mark:#316977; --oxblood-mark:#86566f; --gold-mark:#7b602b;
61
+ --community-progress-fill:#718398;
59
62
  --alert-surface:#f3e7ee; --alert-ink:#754357; --alert-line:#d7bbc9;
60
63
  --notice-surface:#e3eeea; --notice-ink:#355c50; --notice-line:#b7d0c7;
61
64
  }
@@ -72,6 +75,7 @@
72
75
  --button-surface:#201c12; --button-ink:#ded8c5;
73
76
  --teal-fill:#2f5955; --oxblood-fill:#702731; --gold-fill:#695116;
74
77
  --teal-mark:#409594; --oxblood-mark:#a73d50; --gold-mark:#b18b2b;
78
+ --community-progress-fill:#a38d68;
75
79
  --alert-surface:#42282a; --alert-ink:#ffc0b8; --alert-line:#a66d68;
76
80
  --notice-surface:#25382a; --notice-ink:#b6dfb6; --notice-line:#6d956e;
77
81
  }
@@ -88,6 +92,7 @@
88
92
  --button-surface:#102219; --button-ink:#e3e7d5;
89
93
  --teal-fill:#28554b; --oxblood-fill:#6a2c3c; --gold-fill:#62501e;
90
94
  --teal-mark:#4d9d89; --oxblood-mark:#c46c7f; --gold-mark:#b79b45;
95
+ --community-progress-fill:#7e9a7a;
91
96
  --alert-surface:#3e282c; --alert-ink:#ffc1c2; --alert-line:#a87479;
92
97
  --notice-surface:#243b2b; --notice-ink:#c1e2b9; --notice-line:#779c70;
93
98
  }
@@ -104,6 +109,7 @@
104
109
  --button-surface:#0c1829; --button-ink:#e0e7ef;
105
110
  --teal-fill:#245363; --oxblood-fill:#622d49; --gold-fill:#5d4c25;
106
111
  --teal-mark:#4c9eae; --oxblood-mark:#b86382; --gold-mark:#b59a54;
112
+ --community-progress-fill:#8195ad;
107
113
  --alert-surface:#3b2432; --alert-ink:#ffc0cd; --alert-line:#a66c80;
108
114
  --notice-surface:#1e3430; --notice-ink:#b7decc; --notice-line:#6b9787;
109
115
  }
@@ -121,6 +127,7 @@
121
127
  --button-surface:#201c12; --button-ink:#ded8c5;
122
128
  --teal-fill:#2f5955; --oxblood-fill:#702731; --gold-fill:#695116;
123
129
  --teal-mark:#409594; --oxblood-mark:#a73d50; --gold-mark:#b18b2b;
130
+ --community-progress-fill:#a38d68;
124
131
  --alert-surface:#42282a; --alert-ink:#ffc0b8; --alert-line:#a66d68;
125
132
  --notice-surface:#25382a; --notice-ink:#b6dfb6; --notice-line:#6d956e;
126
133
  }
@@ -220,12 +227,12 @@
220
227
  .b270-topbar{display:flex;align-items:center;gap:12px;flex-wrap:nowrap;padding-bottom:20px;border-bottom:1px solid var(--line-soft);margin-bottom:26px}
221
228
  .b270-brand{display:flex;align-items:baseline;gap:14px;margin-right:auto;min-width:0}
222
229
  .b270-header-theme{position:relative;display:flex;align-items:baseline;gap:4px;margin:0;flex:none}
223
- .b270-header-theme-select{font:inherit;font-size:12px;width:6.5em;height:28px;padding:2px;margin:0;
230
+ .b270-header-theme-select{font:inherit;font-size:12px;width:8em;height:28px;padding:2px 6px;margin:0;
224
231
  border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--ink);cursor:pointer}
225
232
  @supports (field-sizing:content){
226
233
  .b270-header-theme-select{field-sizing:content;width:auto}
227
234
  }
228
- .b270-header-theme-select:disabled{cursor:wait;opacity:.7}
235
+ .b270 .b270-select-wrap>.b270-header-theme-select:disabled{cursor:wait}
229
236
  .b270-header-theme-status:not([data-error="true"]){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
230
237
  clip:rect(0,0,0,0);white-space:nowrap;border:0}
231
238
  .b270-header-theme-status[data-error="true"]{position:absolute;z-index:30;right:0;top:calc(100% + 6px);width:220px;max-width:calc(100vw - 28px);
@@ -278,10 +285,10 @@
278
285
  .b270-time-control:active .b270-reminder-tooltip{visibility:visible;opacity:1}
279
286
  .b270-field .b270-reminder-optin input[type=checkbox]{width:auto;margin:0;flex:none}
280
287
  .b270-time-control{grid-template-columns:48px 5px 48px;align-items:center;gap:2px}
281
- .b270-field .b270-time-select{width:48px;height:30px;margin:0;padding:4px 2px;border:1px solid var(--control-line);
288
+ .b270-field .b270-time-select{width:48px;height:30px;margin:0;padding:4px 6px;border:1px solid var(--control-line);
282
289
  border-radius:7px;background:var(--control);color:var(--ink);font:12px/16px system-ui,sans-serif;
283
290
  font-variant-numeric:tabular-nums;text-align:center}
284
- .b270-time-select:focus{outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(165,129,44,.13)}
291
+
285
292
  .b270-time-separator{display:grid;place-items:center;height:30px;font:12px/30px system-ui,sans-serif;color:var(--muted)}
286
293
  .b270-emailform input[type=submit]{justify-self:start}
287
294
  .b270-or{display:flex;align-items:center;gap:12px;margin:22px 0 18px;color:var(--faint);font-size:12px;letter-spacing:.1em;text-transform:uppercase}
@@ -416,6 +423,17 @@
416
423
  .b270-part.done .b270-check svg{opacity:1}
417
424
  .b270-parts-meta{margin-top:10px;font-size:12.5px;color:var(--faint)}
418
425
  .b270-version{font-size:11.5px;color:var(--faint);font-weight:400;letter-spacing:.02em;white-space:nowrap}
426
+ .b270-select-wrap{position:relative;display:inline-block;max-width:100%;min-width:0;color:var(--muted)}
427
+ .b270-select-wrap--full{width:100%}
428
+ .b270-select-wrap--compact{--b270-select-inset:8px;--b270-select-chevron:5px;--b270-select-space:24px}
429
+ .b270-select-wrap--time{--b270-select-inset:7px;--b270-select-space:20px}
430
+ .b270 .b270-select-wrap>select{display:block;-webkit-appearance:none;appearance:none;padding-right:var(--b270-select-space,36px)}
431
+ .b270-select-wrap::after{content:"";position:absolute;right:var(--b270-select-inset,14px);top:50%;
432
+ width:var(--b270-select-chevron,7px);height:var(--b270-select-chevron,7px);
433
+ border-right:2px solid currentColor;border-bottom:2px solid currentColor;
434
+ transform:translateY(-70%) rotate(45deg);pointer-events:none}
435
+ .b270 .b270-select-wrap>select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
436
+ .b270 .b270-select-wrap>select:disabled{cursor:not-allowed;opacity:.7}
419
437
  .b270-select{font:inherit;font-size:14px;padding:10px 30px 10px 12px;border:1px solid var(--control-line);border-radius:9px;background:var(--control);color:var(--ink);width:100%;max-width:100%;text-overflow:ellipsis}
420
438
  .b270-source-choices{display:flex;align-items:center;justify-content:space-between;gap:4px;flex-wrap:nowrap;width:100%;margin:8px 0 2px;color:var(--muted);font-size:clamp(10.5px,3.4vw,12.5px)}
421
439
  .b270-source-choice{display:inline-flex;align-items:center;gap:4px;cursor:pointer;white-space:nowrap}
@@ -536,8 +554,7 @@
536
554
  .b270-mention-option:hover,.b270-mention-option[aria-selected=true]{background:var(--paper);color:var(--gold)}
537
555
  .b270-draft-status{min-height:16px;margin:4px 0 -4px;font-size:11.5px;color:var(--faint)}
538
556
  .b270-form .row{display:flex;align-items:center;gap:10px;margin-top:10px}
539
- /* Override the reflection track selector's inline background and border color. */
540
- .b270-form .row select{max-width:100%;background:var(--control)!important;border-color:var(--control-line)!important;color:var(--ink)}
557
+
541
558
  .b270 .b270-btn{border:none;border-radius:10px;padding:8px 16px;margin-top:4px;font:inherit;font-weight:600;font-size:14px;cursor:pointer;background:var(--button-surface);color:var(--button-ink);text-decoration:none;display:inline-block}
542
559
  .b270 .b270-btn:hover{background:var(--button-hover)}
543
560
 
@@ -563,6 +580,13 @@
563
580
  .b270-li+.b270-li{border-top:1px solid var(--line-soft)}
564
581
  .b270-li .name{font-weight:600}
565
582
  .b270-li .sub{font-size:12.5px;color:var(--faint)}
583
+ .b270-community-reader-details{flex:1;min-width:0;overflow-wrap:anywhere}
584
+ .b270-reader-progress{display:flex;align-items:center;gap:8px;max-width:280px;margin-top:6px;flex-wrap:wrap}
585
+ .b270-reader-progress .b270-bar{position:relative;flex:1 1 80px;min-width:0}
586
+ .b270-reader-progress .b270-bar>i{background:var(--community-progress-fill)}
587
+ .b270-progress-today{position:absolute;top:0;bottom:0;width:1px;background:var(--ink);box-shadow:0 0 0 1px var(--card);pointer-events:none}
588
+ .b270 .b270-reader-progress-count{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted);white-space:nowrap}
589
+ .b270-community-status{margin-top:3px}
566
590
  .b270-li .b270-admin-progress{text-decoration:none}
567
591
  .b270-li .b270-admin-progress:hover,.b270-li .b270-admin-progress:focus-visible{color:var(--gold)}
568
592
  .b270-li .stat{margin-left:auto;text-align:right}
@@ -643,7 +667,7 @@
643
667
  .b270-tm{grid-template-columns:104px 1fr auto}
644
668
  .b270-avatarrow{align-items:flex-start;flex-wrap:wrap}
645
669
  .b270-form .row{align-items:stretch;flex-direction:column}
646
- .b270-form .row select{width:100%}
670
+ .b270-track-select-wrap{width:100%}
647
671
  .b270-form .row .b270-btn{align-self:flex-start}
648
672
  .b270-reading{padding:14px 15px;gap:12px}
649
673
  .b270-reading.multi .b270-cat,.b270-reading.multi .b270-parts-meta{margin-left:38px}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bible270
4
- VERSION = '1.14.0'
4
+ VERSION = '1.15.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bible270
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0
4
+ version: 1.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew vonderLuft