rails_toastify 0.1.4 → 0.1.5

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: ad106eeec4a5dc91967781e1012327953d768abee3af5d5868c72fc8c29706be
4
- data.tar.gz: afa96d9999758b8c2820073ad06474afabaed7d6403b895d0e7f1284df9b3743
3
+ metadata.gz: dbe4093e4b00ca6aed884608e36832d9b4739c4101147ed6fb4f09725132c7d8
4
+ data.tar.gz: bdeae6a73e70c205c253d6e428425e18d130df7b0368708a6430225a9e053ea1
5
5
  SHA512:
6
- metadata.gz: 950fe77e61917edbb1283a7330d76f45fd9a7b952f17eb99548e04080e1c09a5df9c2979ec98afbc71abfec67973b4e1e2009070bbf9139338315f24e597e8a4
7
- data.tar.gz: 746f2e26fe44d665ed3f47adabb9e7105aca988b35841621be478619d784308b096ebd5b9009c9bec29f841cb769d317f6cde42635f59d5bf0dd5702f8f0742c
6
+ metadata.gz: 65d7805c01a912990470de84c7de94abcfb62d0c62fcaa1cb10669dfff05f84c24f014b69657aa497f95d5eca406cc8f73cdf4ab3f8f9dd9872e8d7e68aac78e
7
+ data.tar.gz: a16b9a1874d6cb99b7b6cce8caa1bd0d57b77856a5e55ead272184bdfd82397318a5b1852eb05575cd22afbf5a5db7e6dcbacbb71c2304eeb107d39756927ba9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # 0.1.4
2
2
 
3
+ - Adjustments CSS progress bar and shadow
4
+
5
+ # 0.1.4
6
+
3
7
  - Change CSS
4
8
  - Change JS
5
9
 
@@ -12,13 +12,14 @@
12
12
  align-items: center;
13
13
  background-color: #fff;
14
14
  border-radius: 4px;
15
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
15
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
16
16
  padding: 16px;
17
17
  margin: 8px;
18
18
  color: #333;
19
19
  position: relative;
20
- transition: transform 0.5s ease-in-out;
20
+ transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
21
21
  transform: translateX(100%);
22
+ max-width: 300px;
22
23
  }
23
24
 
24
25
  .toast.show {
@@ -29,20 +30,20 @@
29
30
  transform: translateX(100%);
30
31
  }
31
32
 
32
- .toast--success {
33
- border-bottom: 5px solid #4caf50;
33
+ .toast--success .toast__progress-bar {
34
+ background-color: #4caf50;
34
35
  }
35
36
 
36
- .toast--error {
37
- border-bottom: 5px solid #f44336;
37
+ .toast--error .toast__progress-bar {
38
+ background-color: #f44336;
38
39
  }
39
40
 
40
- .toast--info {
41
- border-bottom: 5px solid #2196f3;
41
+ .toast--info .toast__progress-bar {
42
+ background-color: #2196f3;
42
43
  }
43
44
 
44
- .toast--warning {
45
- border-bottom: 5px solid #ff9800;
45
+ .toast--warning .toast__progress-bar {
46
+ background-color: #ff9800;
46
47
  }
47
48
 
48
49
  .toast__close-button {
@@ -67,7 +68,6 @@
67
68
  left: 0;
68
69
  width: 100%;
69
70
  height: 4px;
70
- background-color: currentColor;
71
71
  animation: progress-bar 5s linear forwards;
72
72
  }
73
73
 
@@ -85,11 +85,8 @@
85
85
  }
86
86
 
87
87
  .toast {
88
- @apply flex items-center bg-white rounded shadow p-4 my-2 text-gray-800 relative;
89
- }
90
-
91
- .toast {
92
- @apply transition-transform duration-500 ease-in-out;
88
+ @apply flex items-center bg-white rounded-lg shadow-lg p-4 my-2 text-gray-800 relative max-w-sm;
89
+ transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
93
90
  transform: translateX(100%);
94
91
  }
95
92
 
@@ -101,20 +98,20 @@
101
98
  transform: translateX(100%);
102
99
  }
103
100
 
104
- .toast--success {
105
- @apply border-b-4 border-green-500;
101
+ .toast--success .toast__progress-bar {
102
+ @apply bg-green-500;
106
103
  }
107
104
 
108
- .toast--error {
109
- @apply border-b-4 border-red-500;
105
+ .toast--error .toast__progress-bar {
106
+ @apply bg-red-500;
110
107
  }
111
108
 
112
- .toast--info {
113
- @apply border-b-4 border-blue-500;
109
+ .toast--info .toast__progress-bar {
110
+ @apply bg-blue-500;
114
111
  }
115
112
 
116
- .toast--warning {
117
- @apply border-b-4 border-yellow-500;
113
+ .toast--warning .toast__progress-bar {
114
+ @apply bg-yellow-500;
118
115
  }
119
116
 
120
117
  .toast__close-button {
@@ -126,7 +123,6 @@
126
123
 
127
124
  .toast__progress-bar {
128
125
  @apply absolute bottom-0 left-0 w-full h-1;
129
- background-color: currentColor;
130
126
  animation: progress-bar 5s linear forwards;
131
127
  }
132
128
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsToastify
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_toastify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elton Santos