rails-contact 0.1.4 → 0.1.5
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 +5 -0
- data/app/assets/stylesheets/rails/contact/application.css +9 -16
- data/app/views/rails/contact/edit.html.erb +5 -3
- data/app/views/rails/contact/index.html.erb +1 -1
- data/app/views/rails/contact/new.html.erb +5 -3
- data/app/views/rails/contact/show.html.erb +1 -1
- data/lib/rails/contact/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: f08d1e4fe3f704acfbf960d33948277264f3ebb56ae72999d02a281526eba72b
|
|
4
|
+
data.tar.gz: 746e6e1bc998fc23ef6407eda47f04483c227c8df8ffa7f96fab4fc24d53f755
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 34ad0a97ca7e0eeb7b566e278db0d83b2102fb6e6c3fc67fe3880a33c6fc0cea060c6282f4614834980ff7ed04d4ccec00c8863f09f6c01a92e01b82bc96e05a
|
|
7
|
+
data.tar.gz: 3a8f05a97f69d001580847192a4eebe98284b997cccb230c21e97556d4da504ac4b682e12a8c616cc43d0734e73ef851f450fc3e9736f9bf148979bc4ed626cd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.5
|
|
4
|
+
|
|
5
|
+
- Scope engine stylesheet to contacts content only (`.rails-contact-page`) so host app layout/header styling is not overridden.
|
|
6
|
+
- Add missing utility shims (`block`, `flex-wrap`, `text-base`, `mt-7`) used by contact templates for consistent spacing/labels.
|
|
7
|
+
|
|
3
8
|
## 0.1.4
|
|
4
9
|
|
|
5
10
|
- Default to the host `application` layout when the engine is mounted, with `inherit_host_layout` (default `true`) to opt back into the engine-only layout.
|
|
@@ -2,17 +2,13 @@
|
|
|
2
2
|
*= require_self
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
/*
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
margin:
|
|
9
|
-
padding: 0;
|
|
10
|
-
background: #f8fafc;
|
|
5
|
+
/* Scoped defaults for contact pages only (do not affect host layout chrome) */
|
|
6
|
+
.rails-contact-page {
|
|
7
|
+
max-width: 1100px;
|
|
8
|
+
margin: 1.5rem auto;
|
|
9
|
+
padding: 0 1rem 1.5rem;
|
|
11
10
|
color: #111827;
|
|
12
11
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
body {
|
|
16
12
|
line-height: 1.4;
|
|
17
13
|
}
|
|
18
14
|
|
|
@@ -42,13 +38,16 @@ a:hover {
|
|
|
42
38
|
.mt-2 { margin-top: 0.5rem; }
|
|
43
39
|
.mt-3 { margin-top: 0.75rem; }
|
|
44
40
|
.mt-4 { margin-top: 1rem; }
|
|
41
|
+
.mt-7 { margin-top: 1.75rem; }
|
|
45
42
|
.mb-1 { margin-bottom: 0.25rem; }
|
|
46
43
|
.mb-3 { margin-bottom: 0.75rem; }
|
|
47
44
|
.ml-4 { margin-left: 1rem; }
|
|
48
45
|
.pt-2 { padding-top: 0.5rem; }
|
|
49
46
|
|
|
47
|
+
.block { display: block; }
|
|
50
48
|
.flex { display: flex; }
|
|
51
49
|
.inline-flex { display: inline-flex; }
|
|
50
|
+
.flex-wrap { flex-wrap: wrap; }
|
|
52
51
|
.items-center { align-items: center; }
|
|
53
52
|
.items-end { align-items: flex-end; }
|
|
54
53
|
.items-start { align-items: flex-start; }
|
|
@@ -100,6 +99,7 @@ a:hover {
|
|
|
100
99
|
|
|
101
100
|
.text-xs { font-size: 0.75rem; }
|
|
102
101
|
.text-sm { font-size: 0.875rem; }
|
|
102
|
+
.text-base { font-size: 1rem; }
|
|
103
103
|
.text-2xl { font-size: 1.5rem; }
|
|
104
104
|
.font-medium { font-weight: 500; }
|
|
105
105
|
.font-semibold { font-weight: 600; }
|
|
@@ -169,13 +169,6 @@ table {
|
|
|
169
169
|
border-collapse: collapse;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
/* Layout breathing room */
|
|
173
|
-
body > * {
|
|
174
|
-
max-width: 1100px;
|
|
175
|
-
margin: 1.5rem auto;
|
|
176
|
-
padding: 0 1rem;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
172
|
@media (min-width: 768px) {
|
|
180
173
|
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
181
174
|
.md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<%= render "rails/contact/stylesheet" %>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
<%=
|
|
2
|
+
<div class="rails-contact-page space-y-6">
|
|
3
|
+
<h1>Edit Contact</h1>
|
|
4
|
+
<%= render "rails/contact/form", contact: @contact %>
|
|
5
|
+
<%= link_to "Back", contacts_path %>
|
|
6
|
+
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<%= render "rails/contact/stylesheet" %>
|
|
2
|
-
<div class="space-y-6">
|
|
2
|
+
<div class="rails-contact-page space-y-6">
|
|
3
3
|
<div class="flex items-center justify-between">
|
|
4
4
|
<h1 class="text-2xl font-bold text-gray-900">Contacts</h1>
|
|
5
5
|
<%= link_to "Add Contact", new_contact_path, class: "inline-flex items-center rounded-md bg-blue-600 px-4 py-2 text-sm font-semibold text-white hover:bg-blue-700" %>
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<%= render "rails/contact/stylesheet" %>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
<%=
|
|
2
|
+
<div class="rails-contact-page space-y-6">
|
|
3
|
+
<h1>New Contact</h1>
|
|
4
|
+
<%= render "rails/contact/form", contact: @contact %>
|
|
5
|
+
<%= link_to "Back", contacts_path %>
|
|
6
|
+
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<%= render "rails/contact/stylesheet" %>
|
|
2
|
-
<div class="space-y-6">
|
|
2
|
+
<div class="rails-contact-page space-y-6">
|
|
3
3
|
<div class="flex items-start justify-between">
|
|
4
4
|
<div>
|
|
5
5
|
<h1 class="text-2xl font-bold text-gray-900"><%= @contact.full_name %> <%= "★" if @contact.starred? %></h1>
|