From: Aidan Cornelius-Bell Date: Sat, 16 Nov 2024 21:45:28 +0000 (+1030) Subject: dark mode theme blue; some link spacing improvements; comment more legible below... X-Git-Url: https://gitweb.mndrdr.org/?a=commitdiff_plain;h=79e90f6d0143d0d42d3154f87862760fc3e19440;p=arelpe.git dark mode theme blue; some link spacing improvements; comment more legible below link; bundle update --- diff --git a/Gemfile.lock b/Gemfile.lock index 0865f18..662018a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -77,7 +77,7 @@ GEM ast (2.4.2) base64 (0.2.0) bcrypt (3.1.20) - benchmark (0.3.0) + benchmark (0.4.0) bigdecimal (3.1.8) bindex (0.8.1) bootsnap (1.18.4) @@ -112,10 +112,10 @@ GEM railties (>= 4.1.0) responders warden (~> 1.2.3) - devise-two-factor (6.0.0) - activesupport (~> 7.0) + devise-two-factor (6.1.0) + activesupport (>= 7.0, < 8.1) devise (~> 4.0) - railties (~> 7.0) + railties (>= 7.0, < 8.1) rotp (~> 6.0) dotenv (3.1.4) drb (2.2.1) @@ -134,7 +134,7 @@ GEM irb (1.14.1) rdoc (>= 4.0.0) reline (>= 0.4.2) - json (2.7.5) + json (2.8.2) jsonapi-serializer (2.2.0) activesupport (>= 4.2) kaminari (1.2.2) @@ -168,11 +168,11 @@ GEM matrix (0.4.2) mini_mime (1.1.5) minitest (5.25.1) - msgpack (1.7.3) + msgpack (1.7.5) multi_xml (0.7.1) bigdecimal (~> 3.1) mysql2 (0.5.6) - net-imap (0.5.0) + net-imap (0.5.1) date net-protocol net-pop (0.1.2) @@ -196,10 +196,10 @@ GEM racc (~> 1.4) orm_adapter (0.5.0) parallel (1.26.3) - parser (3.3.5.1) + parser (3.3.6.0) ast (~> 2.4.1) racc - psych (5.1.2) + psych (5.2.0) stringio public_suffix (6.0.1) puma (6.4.3) @@ -210,9 +210,8 @@ GEM rack (>= 3.0.0) rack-test (2.1.0) rack (>= 1.3) - rackup (2.1.0) + rackup (2.2.1) rack (>= 3) - webrick (~> 1.8) rails (7.2.2) actioncable (= 7.2.2) actionmailbox (= 7.2.2) @@ -248,14 +247,14 @@ GEM psych (>= 4.0.0) redcarpet (3.6.0) regexp_parser (2.9.2) - reline (0.5.10) + reline (0.5.11) io-console (~> 0.5) responders (3.1.1) actionpack (>= 5.2) railties (>= 5.2) rexml (3.3.9) rotp (6.3.0) - rouge (4.4.0) + rouge (4.5.1) rqrcode (2.2.0) chunky_png (~> 1.0) rqrcode_core (~> 1.0) @@ -270,12 +269,12 @@ GEM rubocop-ast (>= 1.32.2, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 3.0) - rubocop-ast (1.33.0) + rubocop-ast (1.36.1) parser (>= 3.3.1.0) rubocop-minitest (0.36.0) rubocop (>= 1.61, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) - rubocop-performance (1.22.1) + rubocop-performance (1.23.0) rubocop (>= 1.48.1, < 2.0) rubocop-ast (>= 1.31.1, < 2.0) rubocop-rails (2.27.0) @@ -290,7 +289,7 @@ GEM rubocop-rails ruby-progressbar (1.13.0) rubyzip (2.3.2) - securerandom (0.3.1) + securerandom (0.3.2) selenium-webdriver (4.26.0) base64 (~> 0.2) logger (~> 1.4) @@ -304,10 +303,10 @@ GEM actionpack (>= 6.1) activesupport (>= 6.1) sprockets (>= 3.0.0) - stringio (3.1.1) - stripe (13.1.0) + stringio (3.1.2) + stripe (13.1.2) thor (1.3.2) - timeout (0.4.1) + timeout (0.4.2) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) @@ -319,7 +318,6 @@ GEM activemodel (>= 6.0.0) bindex (>= 0.4.0) railties (>= 6.0.0) - webrick (1.9.0) websocket (1.2.11) websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 3435351..e1982d3 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -76,6 +76,7 @@ /* Root variables (Dark mode) */ :root { + /* Original browny-dark mode --post-bg: #2c1e1a; --body-bg: #3d2a24; --quote-bg: #5a3d33; @@ -86,7 +87,19 @@ --body-text: #e8d1c0; --dark-text: #faf0e6; --light-text: #c9ae9c; - --code-text: #f2a76c; + --code-text: #f2a76c; , below new and not really improved Palmy-dark mode: */ + + --post-bg: #1a1f2c; /* Deep blue-grey for content areas */ + --body-bg: #242936; /* Slightly lighter blue-grey for main background */ + --quote-bg: #2d3340; /* Medium blue-grey for quoted content */ + --link-color: #66aaff; /* Bright blue for links */ + --accent-a: #3388dd; /* Primary blue */ + --accent-b: #4499ee; /* Secondary blue */ + --accent-c: #55aaff; /* Tertiary blue */ + --body-text: #c5d1e6; /* Soft blue-white for main text */ + --dark-text: #ffffff; /* Pure white for headers */ + --light-text: #8899bb; /* Muted blue for secondary text */ + --code-text: #77ccff; /* Bright blue for code/special text */ } /* Light mode */ @@ -409,6 +422,10 @@ ul .pinned::before { color: var(--light-text); } +.comment-separator { + margin-left: -1.5em; +} + .bookmark-comment { font-style: italic; color: var(--accent-b); @@ -416,7 +433,11 @@ ul .pinned::before { } .bookmark-item { - padding-bottom: 10px; + padding-bottom: 15px; +} + +.dispatch-item { + padding-bottom: 5px; } table { diff --git a/app/views/layouts/_navigation_buttons.html.erb b/app/views/layouts/_navigation_buttons.html.erb index 2d97d25..61956dc 100644 --- a/app/views/layouts/_navigation_buttons.html.erb +++ b/app/views/layouts/_navigation_buttons.html.erb @@ -1,9 +1,9 @@
- <%= link_to "All", root_path(filter: 'all'), class: "button #{@filter == 'all' ? 'active' : ''}" %> + <%= link_to "Everything", root_path(filter: 'all'), class: "button #{@filter == 'all' ? 'active' : ''}" %> <%= link_to "Dispatches", root_path(filter: 'posts'), class: "button #{@filter == 'posts' ? 'active' : ''}" %> <%= link_to "Bookmarks", root_path(filter: 'bookmarks'), class: "button #{@filter == 'bookmarks' ? 'active' : ''}" %> <%= link_to "About", public_page_path("about"), class: "button #{@page.is_a?(Page) && @page.slug == 'about' ? 'active' : ''}" %> - + <% if !current_user %> <%= link_to "Join mind reader", join_path, class: "button" %> <% else %> @@ -11,7 +11,7 @@ <%= link_to "My emails", mailing_lists_path, class: "button #{controller_name == 'mailing_lists' ? 'active' : ''}" %> <%= link_to "My profile", edit_user_registration_path, class: "button #{controller_name == 'registrations' ? 'active' : ''}" %> <% end %> - + <% if current_user&.admin? %>
<%= link_to "Manage posts", posts_path, class: "button" %> @@ -19,4 +19,4 @@ <%= link_to "Manage API keys", api_keys_path, class: "button" %> <%= link_to "Manage users", user_manager_index_path, class: "button" %> <% end %> -
\ No newline at end of file + diff --git a/app/views/pubview/index.html.erb b/app/views/pubview/index.html.erb index 8758f10..f7c5167 100644 --- a/app/views/pubview/index.html.erb +++ b/app/views/pubview/index.html.erb @@ -3,7 +3,7 @@ <%= image_tag "icon-512.png", class: "logo", alt: "mind reader logo" %> <% end %>

mind reader

-

Aidan’s anti-capitalist posting and sharing project

+

An anti-capitalist blog of dispatches and links from Aidan Cornelius-Bell

<%= render partial: "layouts/navigation_buttons" %> @@ -29,7 +29,7 @@ <% else %> <%= link_to item.title, item.url, target: "_blank" %> - ↗︎ « <%= item.content %> + ↗︎
<%= item.content %>
added <%= item.created_at.strftime('%l:%M%P on %d/%m/%y') if item.created_at.present? %>