demo_mode 3.10.0 → 4.0.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: 903d797309941f76ac1671ee66586425a0d16a3643289093a36fd9c37b31464f
4
- data.tar.gz: d1169c7af02e5ddb4d545ddf26ddec2c86c3ed127d1dec8481d4b129e13afa8e
3
+ metadata.gz: 7bd264ed7e12434d94b75abcdf3738f2ae80832cbdcd429ef00999b27f9e114f
4
+ data.tar.gz: d41eda6c21582382f49235783c5d191aaed3f66d8c375c332e4d0b327f73b7b0
5
5
  SHA512:
6
- metadata.gz: 29e45ab3ab1d7ffd14fd218cfbcb3df4761af30d039775f09491d69c68002e2846c0bac892a63aee4034d2a1fa4456ef4e2f30c468a4005d6514cb2db21ff544
7
- data.tar.gz: de12093c6e85f72283d05146689a8daa34e096e358e1dd4fda4bd04388128abffec5f0b9df12670b6396139a0d94dad58e22bfcfda2ef188097e40e51ffdfa21
6
+ metadata.gz: a012ec618c62bae424ceae953bd777f95dc244948c0e867f9fc548569bb5709fccf62620386bcd6d53cc0a36c953512646ff6c6062869dd357d32fdeafad7b66
7
+ data.tar.gz: 0d9770f52fc391a60a248ffe2d1b644f1e95136b3b7307b2c8415e754ffdae6e718b1442e14590f80ec21468ab7c44ba687c7ce3e35d245aeb3e5e3ef788e155
@@ -55,7 +55,7 @@ class CleverSequence
55
55
  end
56
56
 
57
57
  def exists?(value)
58
- klass.public_send(finder_method, block.call(value))
58
+ klass.respond_to?(finder_method) && klass.public_send(finder_method, block.call(value))
59
59
  end
60
60
 
61
61
  # TODO: Move onto modern finder methods.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DemoMode
4
- VERSION = '3.10.0'
4
+ VERSION = '4.0.1'
5
5
  end
@@ -14,7 +14,6 @@
14
14
 
15
15
  html {
16
16
  color: #333;
17
- font-size: 10px;
18
17
  line-height: 1.15;
19
18
  font-family: var(--font-family);
20
19
  font-smoothing: antialiased;
@@ -33,8 +32,8 @@ body {
33
32
  grid-template-rows: auto 1fr auto;
34
33
  margin: 0 auto;
35
34
  padding: 0 32px;
36
- font-size: 1.6rem;
37
- line-height: 2.4rem;
35
+ font-size: 1rem;
36
+ line-height: 1.5rem;
38
37
  }
39
38
 
40
39
  header,
@@ -46,10 +45,10 @@ footer {
46
45
  }
47
46
 
48
47
  article {
49
- padding-top: 3.2rem;
48
+ padding-top: 2rem;
50
49
  }
51
50
  section {
52
- margin-bottom: 3.2rem;
51
+ margin-bottom: 2rem;
53
52
  }
54
53
 
55
54
  h1,
@@ -78,40 +77,40 @@ hr {
78
77
  border: 0;
79
78
  width: 100%;
80
79
  border-top: 1px solid #e3e3e3;
81
- margin: 1.4rem 0;
80
+ margin: 0.875rem 0;
82
81
  }
83
82
 
84
83
  header {
85
84
  display: grid;
86
85
  grid-template-columns: auto 1fr auto;
87
- gap: 1.6rem;
86
+ gap: 1rem;
88
87
  align-items: center;
89
- height: 6.4rem;
88
+ height: 4rem;
90
89
  }
91
90
 
92
91
  header small {
93
- padding-left: 1.6rem;
92
+ padding-left: 1rem;
94
93
  border-left: 1px solid #e3e3e3;
95
94
  color: #666;
96
- font-size: 1.2rem;
97
- line-height: 1.6rem;
95
+ font-size: 0.75rem;
96
+ line-height: 1rem;
98
97
  }
99
98
 
100
99
  .personas-callout {
101
100
  display: grid;
102
101
  grid-template-columns: repeat(auto-fill, minmax(20em, 1fr));
103
- gap: 3rem;
102
+ gap: 1.875rem;
104
103
  }
105
104
 
106
105
  .personas-callout section {
107
106
  display: grid;
108
107
  grid-template-rows: auto auto auto 1fr auto;
109
- gap: 1rem;
108
+ gap: 0.625rem;
110
109
  justify-items: center;
111
110
  text-align: center;
112
111
  border: 3px solid #e3e3e3;
113
- padding: 3.2rem;
114
- margin-bottom: 2rem;
112
+ padding: 2rem;
113
+ margin-bottom: 1.25rem;
115
114
  }
116
115
  .personas-callout section:hover {
117
116
  border-color: #cdcdcd;
@@ -130,15 +129,15 @@ header small {
130
129
  margin: 0;
131
130
  }
132
131
  .personas-callout ul {
133
- margin: 0 0 0.5rem 0;
132
+ margin: 0 0 0.3125rem 0;
134
133
  padding: 0;
135
134
  list-style-type: none;
136
135
  list-style-position: outside;
137
136
  }
138
137
  .personas-callout li {
139
138
  color: #666;
140
- font-size: 1.4rem;
141
- line-height: 2rem;
139
+ font-size: 0.875rem;
140
+ line-height: 1.25rem;
142
141
  }
143
142
 
144
143
  form,
@@ -148,7 +147,7 @@ textarea,
148
147
  button {
149
148
  display: block;
150
149
  width: 100%;
151
- max-width: 40rem;
150
+ max-width: 25rem;
152
151
  }
153
152
 
154
153
  input,
@@ -156,42 +155,42 @@ select,
156
155
  textarea,
157
156
  button {
158
157
  border: 1px solid #444;
159
- border-radius: 0.3rem;
158
+ border-radius: 0.1875rem;
160
159
  background-color: white;
161
160
  font-family: inherit;
162
- padding: 1.1rem 1.6rem;
163
- font-size: 1.6rem;
164
- line-height: 2.4rem;
165
- margin-bottom: 2rem;
161
+ padding: 0.6875rem 1rem;
162
+ font-size: 1rem;
163
+ line-height: 1.5rem;
164
+ margin-bottom: 1.25rem;
166
165
  color: #222;
167
166
  font-weight: 500;
168
167
  }
169
168
 
170
169
  select {
171
- padding-right: 3.5rem;
170
+ padding-right: 2.1875rem;
172
171
  appearance: none;
173
172
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
174
173
  background-repeat: no-repeat;
175
- background-position: right 1rem center;
174
+ background-position: right 0.625rem center;
176
175
  background-size: 1em;
177
176
  }
178
177
 
179
178
  input[type="submit"],
180
179
  button,
181
180
  a.button {
182
- font-size: 1.6rem;
183
- line-height: 2rem;
181
+ font-size: 1rem;
182
+ line-height: 1.25rem;
184
183
  font-weight: 600;
185
184
  color: white;
186
185
  text-align: center;
187
186
  background-color: var(--primary-color);
188
187
  border: 0;
189
188
  cursor: pointer;
190
- padding: 1.4rem 2.4rem;
191
- margin: 0.8rem 0 0.8rem;
189
+ padding: 0.875rem 1.5rem;
190
+ margin: 0.5rem 0 0.5rem;
192
191
  width: auto;
193
192
  display: inline-block;
194
- border-radius: 0.3rem;
193
+ border-radius: 0.1875rem;
195
194
  }
196
195
  input[type="submit"]:hover,
197
196
  button:hover,
@@ -213,12 +212,12 @@ button.secondary,
213
212
  a.button.secondary {
214
213
  color: #212121;
215
214
  background-color: #ffffff;
216
- border: 0.1rem solid #a3a3a3;
217
- padding: 1.3rem 2.3rem;
218
- padding-top: 1.3rem;
219
- padding-bottom: 1.3rem;
220
- padding-right: 2.4rem;
221
- line-height: 2rem;
215
+ border: 0.0625rem solid #a3a3a3;
216
+ padding: 0.8125rem 1.4375rem;
217
+ padding-top: 0.8125rem;
218
+ padding-bottom: 0.8125rem;
219
+ padding-right: 1.5rem;
220
+ line-height: 1.25rem;
222
221
  }
223
222
  input[type="submit"].secondary:hover,
224
223
  button.secondary:hover,
@@ -231,30 +230,30 @@ a.button.secondary:hover {
231
230
  input[type="submit"].small,
232
231
  button.small,
233
232
  a.button.small {
234
- font-size: 1.4rem;
235
- line-height: 2rem;
233
+ font-size: 0.875rem;
234
+ line-height: 1.25rem;
236
235
  margin-top: 0;
237
- padding: 0.5rem 2.3rem;
236
+ padding: 0.3125rem 1.4375rem;
238
237
  }
239
238
 
240
239
  label {
241
- font-size: 1.6rem;
242
- line-height: 2.4rem;
240
+ font-size: 1rem;
241
+ line-height: 1.5rem;
243
242
  font-weight: 500;
244
243
  color: #222;
245
244
  display: block;
246
- margin-bottom: 0.8rem;
245
+ margin-bottom: 0.5rem;
247
246
  }
248
247
 
249
248
  fieldset {
250
249
  background-color: white;
251
250
  border: 1px solid #e3e3e3;
252
- border-radius: 0.4rem;
251
+ border-radius: 0.25rem;
253
252
  position: relative;
254
253
  width: 100%;
255
254
  max-width: 400px;
256
255
  margin: 0 auto;
257
- padding: 2.4rem;
256
+ padding: 1.5rem;
258
257
  }
259
258
 
260
259
  legend {
@@ -266,8 +265,8 @@ legend {
266
265
  }
267
266
 
268
267
  table {
269
- font-size: 1.6rem;
270
- line-height: 2.4rem;
268
+ font-size: 1rem;
269
+ line-height: 1.5rem;
271
270
  border-collapse: collapse;
272
271
  color: #363636;
273
272
  width: 100%;
@@ -282,22 +281,22 @@ table button {
282
281
  white-space: nowrap;
283
282
  }
284
283
  table select {
285
- font-size: 1.4rem;
286
- line-height: 2rem;
287
- padding: 0.5rem 2.3rem;
284
+ font-size: 0.875rem;
285
+ line-height: 1.25rem;
286
+ padding: 0.3125rem 1.4375rem;
288
287
  }
289
288
 
290
289
  th {
291
- font-size: 1.6rem;
292
- line-height: 2.4rem;
290
+ font-size: 1rem;
291
+ line-height: 1.5rem;
293
292
  font-weight: 500;
294
293
  color: #222;
295
294
  }
296
295
 
297
296
  th,
298
297
  td {
299
- padding: 1.6rem;
300
- min-width: 8rem;
298
+ padding: 1rem;
299
+ min-width: 5rem;
301
300
  border-bottom: 1px solid #eee;
302
301
  text-align: left;
303
302
  white-space: normal;
@@ -310,7 +309,7 @@ td {
310
309
  justify-items: center;
311
310
  align-items: center;
312
311
  align-content: space-evenly;
313
- gap: 1rem;
312
+ gap: 0.625rem;
314
313
  }
315
314
 
316
315
  .center {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: demo_mode
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Griffith
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-19 00:00:00.000000000 Z
11
+ date: 2026-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack