tailwindcss-rails 2.2.0-x86_64-darwin → 2.2.1-x86_64-darwin

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: aa6bb6c071f73439e619c7a1dd4ca4beb31ff824964e82324b955c264e74dd89
4
- data.tar.gz: c5d9bc9742229e908051a8ed8380e3f77ce1af46755ce016922019d847e22e27
3
+ metadata.gz: 730fe0543905ec80f29492d993204c33bd9104c58ed75bc4c070fe589897627a
4
+ data.tar.gz: 713122a0e87e58a451cb5eb0a11100b16d2591a27f773499b43abb2484ded158
5
5
  SHA512:
6
- metadata.gz: eb03a06a680115075b3a0c0888366eb3ae90146b5b33c3d922ed06afb0a25704454c05cbe9d7b385fa8695ee7037a1d3e09dfa238db80ddd82e074da56865ddb
7
- data.tar.gz: e0b338f1bab2224b716739fc467572652a3011db22ac1acc9b4b8d35fafef32f966ccc64d1a182ba8d999196dfff4e74bfd5ece4c9068c69011162634f16463e
6
+ metadata.gz: 9b3ffeee40054195908c548ccd81b99bc12631cf5a01df69b847079ba1660351281b1536ba1264a217bcd17c752dc3e31852611f8a847f28f4beec40131d00f6
7
+ data.tar.gz: daab44a4111c1482ce16f2312140d09ca3625256f32cd4b4bb5bc53e0fd6cb7eb750bf9203751e53c0e9189956b33ae52b19da060a7e7e8b183f89a2d384bf43
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).
Binary file
@@ -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: x86_64-darwin
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
@@ -58,6 +58,8 @@ files:
58
58
  - lib/generators/tailwindcss/controller/controller_generator.rb
59
59
  - lib/generators/tailwindcss/controller/templates/view.html.erb.tt
60
60
  - lib/generators/tailwindcss/mailer/mailer_generator.rb
61
+ - lib/generators/tailwindcss/mailer/templates/layout.html.erb.tt
62
+ - lib/generators/tailwindcss/mailer/templates/layout.text.erb.tt
61
63
  - lib/generators/tailwindcss/mailer/templates/view.html.erb.tt
62
64
  - lib/generators/tailwindcss/mailer/templates/view.text.erb.tt
63
65
  - lib/generators/tailwindcss/scaffold/scaffold_generator.rb