railspress-engine 1.2.0 → 1.2.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: f1ca2f73a89851d3359c2d32b51c5b5a3770e9e5d3c4f81655e5436fcf249fd4
4
- data.tar.gz: 5c8c712b7139a6ab50be2b30831de8320b254a99a96e8f23fa69c0ad4d2ab8ae
3
+ metadata.gz: 620cf1a81acefe35aedfda0894686721073bdad83c405be7b9fcb967df04829d
4
+ data.tar.gz: 6ffab1d40c3dade6d4fed057174754d1caecc854e0415d634d49e160ab8bcc3f
5
5
  SHA512:
6
- metadata.gz: fc61ccdaa5f8af6baa55c5186c07525a5272bb87bf4bec19f09c1ec6bdd710d8107d804a384f4d339a5243a8d44d0ca4dc82655a6328775587a831077567b470
7
- data.tar.gz: d8d931f5f83c225d75b7d939a5251e4d8343c6b223fc7e56d8855024da7c58fae3c3236348e51aafc2e80f144cfc6e2dc40899db430e6da5df87f8b01530dd45
6
+ metadata.gz: dfe7e288c00fefbfbb8d23999bdff5211154ec68e00b79a3e6d7269b957fd99a2d784ea414243399fdfff43a684f635dd3d3be99e05fa31d628341c480e9a3aa
7
+ data.tar.gz: 3ff12ea74a82a33ebb1fe504944540e8ddb72dd599f7e85042c27ea144764ab6ba7116aba693cbabb037ebe474d52b23529f8509dd8db04a155289f37701a232
data/README.md CHANGED
@@ -24,7 +24,7 @@ It manages three kinds of content:
24
24
 
25
25
  Your blog. Chronological content published over time — articles, news, announcements. Categories, tags, draft/published workflow.
26
26
 
27
- - Rich text editing with [Lexxy](https://github.com/aviflombaum/lexxy) + markdown mode toggle
27
+ - Rich text editing with [Lexxy](https://github.com/basecamp/lexxy) + markdown mode toggle
28
28
  - Categories, tags, draft/published workflow
29
29
  - SEO metadata (meta title, meta description)
30
30
  - Reading time auto-calculation
@@ -26,6 +26,9 @@
26
26
 
27
27
  .rp-sidebar-content {
28
28
  padding: var(--rp-space-lg) var(--rp-space-md);
29
+ min-height: 100%;
30
+ display: flex;
31
+ flex-direction: column;
29
32
  }
30
33
 
31
34
  .rp-sidebar-header {
@@ -130,6 +133,75 @@
130
133
  margin: var(--rp-space-md) 0;
131
134
  }
132
135
 
136
+ .rp-sidebar-footer {
137
+ margin-top: auto;
138
+ padding-top: var(--rp-space-md);
139
+ border-top: 1px solid var(--rp-sidebar-hover);
140
+ display: flex;
141
+ flex-direction: column;
142
+ gap: var(--rp-space-xs);
143
+ }
144
+
145
+ .rp-sidebar-version {
146
+ font-size: 0.75rem;
147
+ font-weight: 600;
148
+ letter-spacing: 0.02em;
149
+ text-transform: uppercase;
150
+ color: var(--rp-sidebar-text);
151
+ margin-bottom: var(--rp-space-xs);
152
+ }
153
+
154
+ .rp-sidebar-footer-link {
155
+ display: flex;
156
+ align-items: center;
157
+ gap: var(--rp-space-sm);
158
+ padding: 8px 10px;
159
+ border-radius: var(--rp-radius);
160
+ color: var(--rp-sidebar-text);
161
+ font-size: 0.8125rem;
162
+ font-weight: 500;
163
+ text-decoration: none;
164
+ transition: all 0.15s ease;
165
+ }
166
+
167
+ .rp-sidebar-footer-link:hover {
168
+ background: var(--rp-sidebar-hover);
169
+ color: var(--rp-sidebar-text-active);
170
+ }
171
+
172
+ .rp-sidebar-footer-icon {
173
+ width: 16px;
174
+ height: 16px;
175
+ opacity: 0.8;
176
+ flex-shrink: 0;
177
+ }
178
+
179
+ .rp-sidebar-footer-link:hover .rp-sidebar-footer-icon {
180
+ opacity: 1;
181
+ }
182
+
183
+ .rp-sidebar-footer-text {
184
+ white-space: nowrap;
185
+ overflow: hidden;
186
+ }
187
+
188
+ .rp-sidebar-credit {
189
+ margin: var(--rp-space-sm) 0 0;
190
+ color: var(--rp-sidebar-text);
191
+ font-size: 0.75rem;
192
+ line-height: 1.45;
193
+ }
194
+
195
+ .rp-sidebar-credit-link {
196
+ color: var(--rp-sidebar-text-active);
197
+ text-decoration: none;
198
+ border-bottom: 1px solid transparent;
199
+ }
200
+
201
+ .rp-sidebar-credit-link:hover {
202
+ border-bottom-color: currentColor;
203
+ }
204
+
133
205
  /* Main Content Area */
134
206
  .rp-main {
135
207
  flex: 1;
@@ -195,6 +267,22 @@
195
267
  display: block;
196
268
  }
197
269
 
270
+ .rp-sidebar--collapsed .rp-sidebar-footer {
271
+ align-items: center;
272
+ }
273
+
274
+ .rp-sidebar--collapsed .rp-sidebar-version,
275
+ .rp-sidebar--collapsed .rp-sidebar-footer-text,
276
+ .rp-sidebar--collapsed .rp-sidebar-credit {
277
+ display: none;
278
+ }
279
+
280
+ .rp-sidebar--collapsed .rp-sidebar-footer-link {
281
+ justify-content: center;
282
+ width: 100%;
283
+ padding: 8px;
284
+ }
285
+
198
286
  /* Main content adjustment when sidebar collapsed */
199
287
  .rp-admin-layout--sidebar-collapsed .rp-main {
200
288
  margin-left: var(--rp-sidebar-width-collapsed);
@@ -56,6 +56,21 @@
56
56
  clip: auto;
57
57
  }
58
58
 
59
+ .rp-sidebar--collapsed .rp-sidebar-footer {
60
+ align-items: stretch;
61
+ }
62
+
63
+ .rp-sidebar--collapsed .rp-sidebar-version,
64
+ .rp-sidebar--collapsed .rp-sidebar-footer-text,
65
+ .rp-sidebar--collapsed .rp-sidebar-credit {
66
+ display: block;
67
+ }
68
+
69
+ .rp-sidebar--collapsed .rp-sidebar-footer-link {
70
+ justify-content: flex-start;
71
+ padding: 8px 10px;
72
+ }
73
+
59
74
  .rp-mobile-header {
60
75
  display: flex;
61
76
  }
@@ -103,4 +103,36 @@
103
103
  <span class="rp-nav-text">Main Site</span>
104
104
  <% end %>
105
105
  </nav>
106
+
107
+ <div class="rp-sidebar-footer">
108
+ <div class="rp-sidebar-version">v<%= Railspress::VERSION %></div>
109
+
110
+ <%= link_to "https://railspress.org/guide/", class: "rp-sidebar-footer-link", target: "_blank", rel: "noopener noreferrer", title: "Guide" do %>
111
+ <svg class="rp-sidebar-footer-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
112
+ <path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/>
113
+ <path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5V4.5A2.5 2.5 0 0 1 6.5 2z"/>
114
+ </svg>
115
+ <span class="rp-sidebar-footer-text">Guide</span>
116
+ <% end %>
117
+
118
+ <%= link_to "https://railspress.org/docs/", class: "rp-sidebar-footer-link", target: "_blank", rel: "noopener noreferrer", title: "Docs" do %>
119
+ <svg class="rp-sidebar-footer-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
120
+ <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
121
+ <polyline points="14 2 14 8 20 8"/>
122
+ </svg>
123
+ <span class="rp-sidebar-footer-text">Docs</span>
124
+ <% end %>
125
+
126
+ <%= link_to "https://github.com/aviflombaum/railspress-engine", class: "rp-sidebar-footer-link", target: "_blank", rel: "noopener noreferrer", title: "GitHub" do %>
127
+ <svg class="rp-sidebar-footer-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
128
+ <path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>
129
+ </svg>
130
+ <span class="rp-sidebar-footer-text">GitHub</span>
131
+ <% end %>
132
+
133
+ <p class="rp-sidebar-credit">
134
+ Made with ❤️ by
135
+ <%= link_to "Avi.nyc", "https://avi.nyc", target: "_blank", rel: "noopener noreferrer", class: "rp-sidebar-credit-link" %>
136
+ </p>
137
+ </div>
106
138
  </div>
@@ -1,3 +1,3 @@
1
1
  module Railspress
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railspress-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Avi Flombaum