tailwindcss-rails 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de196b39f177a23353fe1b2264233a5dc43135997dbe64d977a023f4284ee895
4
- data.tar.gz: 8e4a38a8f018572466852d7c3a7179f07b44715aa2618b7eddf509e2826e21a9
3
+ metadata.gz: 5d6f6d4c54c2a684218a2458df175a28e582d6f7c560dcc9b737b960a67b4a04
4
+ data.tar.gz: 255838f5cd52454d18b0b134159619501063c527c5f150e0b7fee438e9569bed
5
5
  SHA512:
6
- metadata.gz: efeb15889ec6cd234f64d2c2561833d0f3876bbf97c25070577e09be1ee499b1db11b0243f258f6bb3659ebc8e97cf93fe53c150a2b119372c7f1239567bfdf3
7
- data.tar.gz: 51ec5b33d3e065b1c7c2d1f330c5b8b2d654bf6413e072ae3524557e87a2c01ddc8b7638c6d2c0b6144d77c5e30837b781c65f7953c3446f0b7061591b191d0e
6
+ metadata.gz: d032bf128d662b2433bcd7dbc829217d7d6098472d0234aa891d7fb27ba6fbc9d92ddc0a38549688bafa41c361f2c45c4694ecfc7d881aece7960e44c26ffc0a
7
+ data.tar.gz: 7fb5882e288279b5ca2e0dda626421df6528506fe57e0ccec8e24b074a2863fa3193a700096981c478a9044a97115cce8e3703a7fd63b20e1cf6f606bcbad13a
data/README.md CHANGED
@@ -192,6 +192,12 @@ The inline version also works:
192
192
  <section class="bg-[url('image.svg')]">Has the image as it's background</section>
193
193
  ```
194
194
 
195
+ ### Conflict with pre-existing asset pipeline stylesheets
196
+
197
+ If you get a warning `Unrecognized at-rule or error parsing at-rule ‘@tailwind’.` in the browser console after installation, you incorrectly double-process `application.tailwind.css`. This is a misconfiguration, even though the styles will be fully effective in many cases. The file `application.tailwind.css` is installed when running `rails tailwindcss:install` and is placed alongside the common `application.css` in `app/assets/stylesheets`. Because the `application.css` in a newly generated Rails app includes a `require_tree .` directive, the asset pipeline incorrectly processes `application.tailwind.css`, where it should be taken care of by `tailwindcss`. The asset pipeline ignores TailwindCSS's at-directives, and the browser can't process them.
198
+
199
+ To fix the warning, you can either remove the `application.css`, if you don't plan to use the asset pipeline for stylesheets, and instead rely on TailwindCSS completely for styles. This is what this installer assumes. Else, if you do want to keep using the asset pipeline in parallel, make sure to remove the `require_tree .` line from the `application.css`.
200
+
195
201
  ## License
196
202
 
197
203
  Tailwind for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,13 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
+ <style>
6
+ /* Email styles need to be inline */
7
+ </style>
8
+ </head>
9
+
10
+ <body>
11
+ <%%= yield %>
12
+ </body>
13
+ </html>
@@ -15,7 +15,7 @@
15
15
  <div class="my-5">
16
16
  <% if attribute.password_digest? -%>
17
17
  <%%= form.label :password %>
18
- <%%= form.password_field :password %>
18
+ <%%= form.password_field :password, class: "block shadow rounded-md border border-gray-200 outline-none px-3 py-2 mt-2 w-full" %>
19
19
  </div>
20
20
 
21
21
  <div class="my-5">
@@ -1,7 +1,7 @@
1
1
  module Tailwindcss
2
2
  # constants describing the upstream tailwindcss project
3
3
  module Upstream
4
- VERSION = "v3.4.0"
4
+ VERSION = "v3.4.1"
5
5
 
6
6
  # rubygems platform name => upstream release filename
7
7
  NATIVE_PLATFORMS = {
@@ -1,3 +1,3 @@
1
1
  module Tailwindcss
2
- VERSION = "2.2.0"
2
+ VERSION = "2.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailwindcss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-04 00:00:00.000000000 Z
11
+ date: 2024-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -56,6 +56,8 @@ files:
56
56
  - lib/generators/tailwindcss/controller/controller_generator.rb
57
57
  - lib/generators/tailwindcss/controller/templates/view.html.erb.tt
58
58
  - lib/generators/tailwindcss/mailer/mailer_generator.rb
59
+ - lib/generators/tailwindcss/mailer/templates/layout.html.erb.tt
60
+ - lib/generators/tailwindcss/mailer/templates/layout.text.erb.tt
59
61
  - lib/generators/tailwindcss/mailer/templates/view.html.erb.tt
60
62
  - lib/generators/tailwindcss/mailer/templates/view.text.erb.tt
61
63
  - lib/generators/tailwindcss/scaffold/scaffold_generator.rb